mirror of
https://github.com/RyuKojiro/apple1.git
synced 2025-01-15 23:30:46 +00:00
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:
parent
ee0a0ea896
commit
a75d31065c
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user