mirror of
https://github.com/rkujawa/rk65c02.git
synced 2025-04-20 23:38:10 +00:00
Add function setting the PC for branches.
This commit is contained in:
parent
762f140efd
commit
f5a4f45127
@ -326,6 +326,12 @@ program_counter_increment(rk65c02emu_t *e, instrdef_t *id)
|
||||
e->regs.PC += id->size;
|
||||
}
|
||||
|
||||
void
|
||||
program_counter_branch(rk65c02emu_t *e, int8_t boffset)
|
||||
{
|
||||
e->regs.PC += boffset + 2;
|
||||
}
|
||||
|
||||
/* check whether given instruction modify program counter */
|
||||
bool
|
||||
instruction_modify_pc(instrdef_t *id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user