Conversion instructions test bench

From Zet
Jump to: navigation, search

This example tests these instructions:

  • aaa: 1 (adj), 2 (adj,AF), 3 (nadj), 4 (random), 5 (random)
  • aas: 6 (adj), 7 (adj,AF), 8 (nadj), 9 (random), 10(random)
  • daa: 11(adj:1,3), 12(adj:2,3), 13(adj:4), 14(adj:1), 15(nadj), 16(random), 17(random)
  • das: 18(adj:1,3), 19(adj:2,3), 20(adj:4), 21(adj:1), 22(nadj), 23(random), 24(random)
  • cbw: 25(positive), 26(negative), 27(random)
  • cbw: 28(negative), 29(positive), 30(random)

Code

<embed_code>13_bcdcnv.s</embed_code>

Results

Memory contents at the end should be:

0x00:  0x0100  0x000f  0xff09  0x5d00  0x4706  0xff04  0xfe03  0xff09
0x10:  0xdc00  0x5e05  0x0012  0xff5f  0xff58  0xff91  0x0082  0x0000
0x20:  0x3f00  0x0046  0xff93  0xff98  0xff85  0x0082  0x0534  0x5490
0x30:  0x007f  0x0000  0xff80  0x0000  0xffed  0x0000  0x8000  0xffff
0x40:  0x7fff  0x0000  0x43f1  0x0000  0xXXXX  0xXXXX  0xXXXX  0xXXXX
0x50:  0xXXXX  0xXXXX  0x0097  0x0097  0x0097  0x0097  0x0097  0x0097
0x60:  0x0097  0x0013  0x0086  0x0092  0x0083  0x0097  0x0013  0x0046
0x70:  0x0046  0x0086  0x0092  0x0003  0x0017  0x0017  0x0017  0x0046
0x80:  0x0006  0x0017  0x0013  0x0006  0x0046  0x0006  0x0017  0x0057