Hacker News new | ask | show | jobs
by snvzz 720 days ago
We did something similar back in the day, some 20 years ago, in an introductory course, although obviously not in RISC-V assembly.

It honestly strikes me as too trivial an exercise for masters-level.

1 comments

The separate architecture put it over the edge for me, personally. I’m barely competent at C (especially back then) and may have been able to just manage had it been on native arch.

It did force me to get decent with bitshifts, which is always a useful skill. I found this [0] article about doing so with the 68000, and adapted it.

[0]: https://web.archive.org/web/20210225221011/https://www.atari...

The "in this arbitrary programming language we've never used before" was a common occurrence. At some point, we were given a PDF manual of some MIPS clone as well as a simulator.

In University, you were supposed to just pick these skills up all by yourself.