Fix DIV of a negative value
Factor out register writes

Register writes always affect the Z/N flags, even when a BL instruction writes
R15.
Rename the I/O functions
Replace gettimeofday by SDL_GetTicks
Press F12 to reset your RISC