From: Sami Liedes Date: Wed, 23 Feb 2011 00:13:24 +0000 (+0200) Subject: Fix compilation with TRACE on. X-Git-Tag: v1.0a7~17 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=6541b6de0a998400166bd6b8cf26ef1b689140dc;p=sx%2Fsimavr.git Fix compilation with TRACE on. The MOV instruction's TRACE() used the undefined variable vd. Signed-off-by: Sami Liedes --- 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);