$ ./subx translate 05[0-7]*.subx -o a.elf && ./subx run a.elf test
Email me if you'd like commit access to work on this.
This exercise should get you thinking about arrays and streams of bytes, a couple of foundational data structures for us. It should also focus attention on the couple of instructions in subx help opcodes that operate on r8/m8 values.
The write function is pretty foundational, so many tests now fail in the project as a whole. The above command focuses on the immediately failing tests. If these pass then everything else should, as well.
To see the failing tests:
Email me if you'd like commit access to work on this.
This exercise should get you thinking about arrays and streams of bytes, a couple of foundational data structures for us. It should also focus attention on the couple of instructions in
subx help opcodes
that operate onr8/m8
values.The
write
function is pretty foundational, so many tests now fail in the project as a whole. The above command focuses on the immediately failing tests. If these pass then everything else should, as well.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 ask me questions.