Fix compilation with TRACE on.
authorSami Liedes <sliedes@cc.hut.fi>
Wed, 23 Feb 2011 00:13:24 +0000 (02:13 +0200)
committerMichel Pollet <buserror@gmail.com>
Wed, 23 Feb 2011 00:49:14 +0000 (00:49 +0000)
The MOV instruction's TRACE() used the undefined variable vd.

Signed-off-by: Sami Liedes <sliedes@cc.hut.fi>
simavr/sim/sim_core.c

index 9cbccd3..4025866 100644 (file)
@@ -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);