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