1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2025-08-08 18:25:10 +00:00

Fix pointer mess.

This commit is contained in:
Radosław Kujawa
2017-01-26 23:27:54 +01:00
parent 8ede93fb0e
commit ea95e3d02c

View File

@@ -15,15 +15,15 @@ ATF_TC_BODY(step1, tc)
b = bus_init(); b = bus_init();
e = rk65c02_init(&b); e = rk65c02_init(&b);
e->regs.PC = ROM_LOAD_ADDR; e.regs.PC = ROM_LOAD_ADDR;
ATF_REQUIRE(bus_load_file(e->bus, ROM_LOAD_ADDR, ATF_REQUIRE(bus_load_file(&b, ROM_LOAD_ADDR,
"test_stepping_step1.rom")); "test_stepping_step1.rom"));
rk65c02_step(e, 1); rk65c02_step(&e, 1);
ATF_CHECK(e->regs.PC == ROM_LOAD_ADDR+1); ATF_CHECK(e.regs.PC == ROM_LOAD_ADDR+1);
rk65c02_step(e, 1); rk65c02_step(&e, 1);
ATF_CHECK(e->regs.PC == ROM_LOAD_ADDR+2); ATF_CHECK(e.regs.PC == ROM_LOAD_ADDR+2);
} }
ATF_TP_ADD_TCS(tp) ATF_TP_ADD_TCS(tp)