mirror of
https://github.com/pevans/erc-c.git
synced 2024-11-01 04:04:28 +00:00
Remove next_byte, read_byte; remove opcode from execute
The execute function should just work from the PC register. It might seem to be easier to test by passing an arbitrary opcode into the function, but because so much of the chip's execution is context-sensitive (that is, it expects PC to be pointing at the opcode, to have its operand in front of it, etc.), passing an arbitrary opcode is not really reflective of what needs to be in place for the function to work correctly.
This commit is contained in:
parent
04aab568df
commit
a785eb5665
@ -119,9 +119,7 @@ extern int mos6502_instruction(vm_8bit);
|
||||
extern mos6502 *mos6502_create();
|
||||
extern mos6502_instruction_handler mos6502_get_instruction_handler(vm_8bit);
|
||||
extern vm_16bit mos6502_pop_stack(mos6502 *);
|
||||
extern vm_8bit mos6502_next_byte(mos6502 *);
|
||||
extern vm_8bit mos6502_read_byte(mos6502 *);
|
||||
extern void mos6502_execute(mos6502 *, vm_8bit);
|
||||
extern void mos6502_execute(mos6502 *);
|
||||
extern void mos6502_flash_memory(mos6502 *, vm_segment *);
|
||||
extern void mos6502_free(mos6502 *);
|
||||
extern void mos6502_modify_status(mos6502 *, vm_8bit, vm_8bit);
|
||||
|
Loading…
Reference in New Issue
Block a user