From 6541b6de0a998400166bd6b8cf26ef1b689140dc Mon Sep 17 00:00:00 2001 From: Sami Liedes Date: Wed, 23 Feb 2011 02:13:24 +0200 Subject: [PATCH] Fix compilation with TRACE on. The MOV instruction's TRACE() used the undefined variable vd. Signed-off-by: Sami Liedes --- simavr/sim/sim_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simavr/sim/sim_core.c b/simavr/sim/sim_core.c index 9cbccd3..4025866 100644 --- a/simavr/sim/sim_core.c +++ b/simavr/sim/sim_core.c @@ -688,7 +688,7 @@ uint16_t avr_run_one(avr_t * avr) case 0x2c00: { // MOV 0010 11rd dddd rrrr get_r_dd_10(opcode); uint8_t res = vr; - STATE("mov %s[%02x], %s[%02x] = %02x\n", avr_regname(d), vd, avr_regname(r), vr, res); + STATE("mov %s, %s[%02x] = %02x\n", avr_regname(d), avr_regname(r), vr, res); _avr_set_r(avr, d, res); } break; default: _avr_invalid_opcode(avr); -- 2.39.5