mirror of
https://github.com/rkujawa/rk65c02.git
synced 2025-01-10 18:29:53 +00:00
Clean up.
This commit is contained in:
parent
b498da3ac8
commit
bcedb50e48
@ -32,16 +32,11 @@ rk65c02_start(rk65c02emu_t *e) {
|
|||||||
i = instruction_fetch(e->bus, e->regs.PC);
|
i = instruction_fetch(e->bus, e->regs.PC);
|
||||||
id = instruction_decode(i.opcode);
|
id = instruction_decode(i.opcode);
|
||||||
|
|
||||||
// instruction_execute(e, i);
|
|
||||||
if (id.emul != NULL)
|
if (id.emul != NULL)
|
||||||
id.emul(e, &i);
|
id.emul(e, &i);
|
||||||
else
|
else
|
||||||
printf("unimplemented opcode %X\n", i.opcode);
|
printf("unimplemented opcode %X\n", i.opcode);
|
||||||
|
|
||||||
|
|
||||||
/* if (i.opcode == 0xDB) // STP
|
|
||||||
e->state = STOPPED;*/
|
|
||||||
|
|
||||||
e->regs.PC += id.size;
|
e->regs.PC += id.size;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user