1
0
mirror of https://github.com/pevans/erc-c.git synced 2025-08-09 11:25:04 +00:00

Update tests to include register info

This commit is contained in:
Peter Evans
2018-03-13 00:12:52 -05:00
parent 5dcc25f5eb
commit 19d006e9a3

View File

@@ -211,7 +211,7 @@ Test(mos6502_dis, opcode)
mos6502_set(cpu, 1, 0x38); mos6502_set(cpu, 1, 0x38);
bytes = mos6502_dis_opcode(cpu, stream, 0); bytes = mos6502_dis_opcode(cpu, stream, 0);
assert_buf("0000:29 38 AND #$38\n"); assert_buf("0000:29 38 AND #$38 ; A:00 X:00 Y:00 P:C7<NV___IZC> S:FF\n");
cr_assert_eq(bytes, 2); cr_assert_eq(bytes, 2);
} }
@@ -230,7 +230,7 @@ Test(mos6502_dis, scan)
// I'm honestly not sure. There are definitely times (e.g. during // I'm honestly not sure. There are definitely times (e.g. during
// runtime operation) when you don't want it to, but as a standalone // runtime operation) when you don't want it to, but as a standalone
// disassembler, it feels less useful when PC isn't emulated. // disassembler, it feels less useful when PC isn't emulated.
assert_buf("0000:29 38 AND #$38\n" assert_buf("0000:29 38 AND #$38 ; A:00 X:00 Y:00 P:C7<NV___IZC> S:FF\n"
"0002:88 DEY \n" "0002:88 DEY ; A:00 X:00 Y:00 P:C7<NV___IZC> S:FF\n"
"0003:6C 34 12 JMP ($1234)\n"); "0003:6C 34 12 JMP ($1234) ; A:00 X:00 Y:00 P:C7<NV___IZC> S:FF\n");
} }