mirror of
https://github.com/rkujawa/rk65c02.git
synced 2024-12-23 07:30:31 +00:00
Avoid intermediate variable in AND emulation.
This commit is contained in:
parent
aee947ad1f
commit
6b7298cf8d
@ -6,10 +6,7 @@
|
||||
void
|
||||
emul_and(rk65c02emu_t *e, void *id, instruction_t *i)
|
||||
{
|
||||
uint8_t rv;
|
||||
|
||||
rv = e->regs.A & (instruction_data_read_1(e, (instrdef_t *) id, i));
|
||||
e->regs.A = rv;
|
||||
e->regs.A &= (instruction_data_read_1(e, (instrdef_t *) id, i));
|
||||
|
||||
instruction_status_adjust_zero(e, e->regs.A);
|
||||
instruction_status_adjust_negative(e, e->regs.A);
|
||||
|
Loading…
Reference in New Issue
Block a user