1
0
mirror of https://github.com/rkujawa/rk65c02.git synced 2024-12-11 18:49:16 +00:00

Avoid intermediate variable in AND emulation.

This commit is contained in:
Radosław Kujawa 2017-01-23 14:45:46 +01:00
parent aee947ad1f
commit 6b7298cf8d

View File

@ -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);