1
0
mirror of https://github.com/pevans/erc-c.git synced 2024-12-30 06:29:48 +00:00

Zero out last_addr and cycles

This fixes a super-annoying bug in the unit-test suite where we would
fail randomly because sometimes last_addr would have garbage in it.
This commit is contained in:
Peter Evans 2017-12-05 18:41:34 -06:00
parent 631451afe5
commit eaaf63a069

View File

@ -149,6 +149,8 @@ mos6502_create()
cpu->memory = vm_segment_create(MOS6502_MEMSIZE);
cpu->last_addr = 0;
cpu->cycles = 0;
cpu->PC = 0;
cpu->A = 0;
cpu->X = 0;