Abusing the Harvard Architecture in Nand2Tetris Assembly
ashdnazg.github.io·2h·
Discuss: Hacker News
Flag this post

Every now and then, when one writes assembly code by hand, one notices opportunities for optimisation.

Some are concise and elegant, it’s usually a good idea to use those.

Some are complicated or convoluted, you might use them if the benefit they bring is significant.

Then there are those who are outright ludicrous. You’d never use these in any production code, but if you think of one, you’re definitely going to jokingly suggest it to your coworkers just to see their horrified faces. Or maybe write about them in a blog post.

Nand2Tetris? #

I attempted to write this post assuming no prior knowledge of Nand2Tetris. In case you are familiar with the course and its assembly language, feel free to skip to the Challenges.

[Nand2Tetris](https:/…

Similar Posts

Loading similar posts...