https://github.com/icebreaker/floppybird/blob/master/src/mai...
Nicely structured code! I'm almost tempted to port it to amd64, just for fun. After all we really don't need any more x86/16bit example code, we need more amd64 code! :-)
https://github.com/icebreaker/floppybird/blob/master/src/mai...
Nicely structured code! I'm almost tempted to port it to amd64, just for fun. After all we really don't need any more x86/16bit example code, we need more amd64 code! :-)
As mentioned by agumonkey, it feels a little bit like Forth.
In fact, I seem to recall a rather excellent tutorial on 68000 assembly featured very similar structure (even if I never finished it -- at the time I was defeated by my own bugs and the fact that those bugs, without an MMU or memory protection, could easily crash the entire machine. It was rather demotivating...).
For another example, see the original source of Apple II DOS, posted here a while back:
http://www.computerhistory.org/atchm/apple-ii-dos-source-cod...
Fundamentally I don't think the structure of the code is all that different? (Please correct me if I'm oversimplifying, or missing something).
Like a compiler? >:)