line |
op |
sub-op |
operand |
description |
0x0 |
0x70 |
0x02 |
0x0015 |
Loads arbitrary value 21 to X register |
0x1 |
0x50 |
0x02 |
0x0001 |
Loads arbitrary value 1 to A register |
0x2 |
0x02 |
0x06 |
0x0000 |
Prints accumulator value to console |
0x3 |
0x42 |
0x05 |
0x0000 |
Adds B register to A register and outputs to accumulator |
0x4 |
0x02 |
0x06 |
0x0000 |
Prints accumulator value to console |
0x5 |
0x40 |
0x05 |
0x0000 |
Loads B register to A register |
0x6 |
0x02 |
0x06 |
0x0000 |
Prints accumulator value to console |
0x7 |
0x42 |
0x05 |
0x0000 |
Adds B register to A register and outputs to accumulator |
0x8 |
0x02 |
0x06 |
0x0000 |
Prints accumulator value to console |
0x9 |
0x40 |
0x05 |
0x0000 |
Loads B register to A register |
0xA |
0x50 |
0x06 |
0x0000 |
Loads accumulator value to B register |
0xB |
0x7A |
0x00 |
0x0000 |
Flag if X register is equal to zero |
0xC |
0x73 |
0x00 |
0x0000 |
Decrement X register by minimum amount (one) |
0xD |
0xA0 |
0x02 |
0x0007 |
Jump to line 7 if flag not set |