Over the weekend I wrote some ARM! Specifically a program to read two numbers from argv, parse, add, convert back to a string, and write back to stdout with a syscall.

I thought it would be peaceful in zen sort of way (it was not) and maybe be a little educational (it was).

This turned out to be a good exercise, going over reading and writing arrays to the stack, looping, function calls and syscalls.

Quick takeaways:

Full gist (quite brittle at points)