akkartik / mu

Soul of a tiny new machine. More thorough tests → More comprehensible and rewrite-friendly software → More resilient society.
http://akkartik.name/akkartik-convivial-20200607.pdf
Other
1.35k stars 47 forks source link

@charles-l's solution: add two numbers #21

Closed akkartik closed 5 years ago

akkartik commented 5 years ago

To see the failing tests:

$ ./subx translate 0*.subx add2.subx -o a.elf  &&  ./subx run a.elf test

Feel free to push changes to this branch as you like.

When (when!) you need to debug things, go back and reread https://github.com/akkartik/mu/blob/master/subx/Readme.md#a-few-hints-for-debugging. And, of course, feel free to email me.

charles-l commented 5 years ago

btw -- this is a really good intro to the project (either for contributors or for people new to x86 and its calling conventions). Do you want me to move my code elsewhere so other folks can implement the solution themselves?

akkartik commented 5 years ago

I was thinking about that as well: https://mastodon.social/@akkartik/101994481345011251

But don't worry about it. This branch has your name on it. I'll spin up a new one -- with your test bugfix.

akkartik commented 5 years ago

Spun up another copy: https://github.com/akkartik/mu/pull/24