Hacker News new | ask | show | jobs
by throwaway71271 874 days ago
I love RISC-V assembler.

I did a bit of x86 as stuff 20 years ago but hated it, now I wanted to teach my daughter some c and assembler and was thinking between arm and riscv, but riscv is just a joy to teach (I made a riscv assembler boardgame to help with the task https://punkx.org/overflow/)

Recently I was rewatching Hackers(1995) and I also got excited about the same quote:

> “RISC architecture is going to change everything.” — Acid Burn

After spending some time with esp32s and riscv assembler, I think its more true than before :)

If you havent given it a try yet, there are many articles like the one, and also projects like https://luplab.gitlab.io/rvcodecjs/ or https://riscv.vercel.app/ where you can play with it, or even make your own emulator by learning from other emulators like https://github.com/OpenMachine-ai/tinyfive/blob/main/machine...

this cheatsheet is also very useful: https://www.cl.cam.ac.uk/teaching/1617/ECAD+Arch/files/docs/...

2 comments

Wow... Crazy this boardgame of yours. I'll definitly take a deeper look at this :). Thanks
thanks!
Note this is an older (pre-ratification) cheatsheet.

You can tell because sbreak/scall. They are ebreak/ecall in the final version.

AIUI, the reason the name was changed is that they're not necessarily calls to the supervisor. E.g. they could be calls to machine mode, or the hypervisor. And some chips only implement M mode.