Make sure to print annotated instruction before execution of it, so that the resulting cpu state reflects the action

git-svn-id: svn+ssh://svn.phoenixbox.net/svn/apple1/trunk@32 64f78de7-aa59-e511-a0e8-0002a5492df0
This commit is contained in:
Daniel Loffgren 2015-09-17 07:28:09 +00:00
parent ee0a0ea896
commit a75d31065c
1 changed files with 1 additions and 1 deletions

View File

@ -70,8 +70,8 @@ int main(int argc, const char * argv[])
FILE *asmfile = fopen("runtime.s", "w");
while (!faulted) {
v6502_step(cpu);
dis6502_printAnnotatedInstruction(asmfile, cpu, cpu->pc);
v6502_step(cpu);
v6502_printCpuState(asmfile, cpu);
}
fclose(asmfile);