From 6b7298cf8d03df44ec36a880d82270ee63498801 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Kujawa?= Date: Mon, 23 Jan 2017 14:45:46 +0100 Subject: [PATCH] Avoid intermediate variable in AND emulation. --- src/emulation.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/emulation.c b/src/emulation.c index 206b4ac..0430cb5 100644 --- a/src/emulation.c +++ b/src/emulation.c @@ -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);