Addition instructions test bench
From Zet
This example tests these instructions:
- add
- adc
- inc
Code
<embed_code>14_add.s</embed_code>
Results
Memory contents at the end should be:
0x00: 0xffff 0x0000 0xfffe 0xffff 0x0002 0x0003 0x8000 0x7fff 0x10: 0xb2ad 0x93f5 0xf245 0xff00 0x03fe 0x7f80 0x8003 0x807f 0x20: 0xa600 0xff2c 0x01ff 0xff00 0xffff 0x02ff 0x0400 0x0000 0x30: 0xff80 0xf97f 0x61fb 0x46bf 0x017f 0xffff 0x8004 0x047f 0x40: 0x7f80 0x0080 0x8db9 0x0000 0x8000 0x7413 0x0080 0xXXb6 0x50: 0xXXXX 0xXXXX 0xXXXX 0xXXXX 0xXXXX 0xXXXX 0x0083 0x0057 0x60: 0x0893 0x0003 0x0897 0x0057 0x0087 0x0803 0x0892 0x0002 0x70: 0x0097 0x0013 0x0003 0x0083 0x0086 0x0807 0x0896 0x0002 0x80: 0x0097 0x0013 0x0803 0x0803 0x0892 0x0006 0x0093 0x0057 0x90: 0x0082 0x0086 0x0083 0x0807 0x0896 0x0006 0x0093 0x0057