diff options
author | 2011-05-30 03:59:42 +0000 | |
---|---|---|
committer | 2011-05-30 03:59:42 +0000 | |
commit | 277314847c5d91d1fe07cc667630f86a7b1b8941 (patch) | |
tree | 3237e39604aafc7ecefe3b601d7b1ed38706f6ed /src/emu/cpu/v30mz/v30mz.c | |
parent | da488dc93c33bc42697c821ffee209980a4b51e4 (diff) |
GCC 4.6 "Variable assigned but not used" fixes, part 6 (no whatsnew)
Diffstat (limited to 'src/emu/cpu/v30mz/v30mz.c')
-rw-r--r-- | src/emu/cpu/v30mz/v30mz.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/cpu/v30mz/v30mz.c b/src/emu/cpu/v30mz/v30mz.c index d56785e22ad..900a5616376 100644 --- a/src/emu/cpu/v30mz/v30mz.c +++ b/src/emu/cpu/v30mz/v30mz.c @@ -378,12 +378,12 @@ OP( 0x60, i_pusha ) { PUSH(cpustate->regs.w[IY]); CLK(9); } +static unsigned nec_v30mz_popa_tmp; OP( 0x61, i_popa ) { - unsigned tmp; POP(cpustate->regs.w[IY]); POP(cpustate->regs.w[IX]); POP(cpustate->regs.w[BP]); - POP(tmp); + POP(nec_v30mz_popa_tmp); POP(cpustate->regs.w[BW]); POP(cpustate->regs.w[DW]); POP(cpustate->regs.w[CW]); @@ -753,8 +753,8 @@ OP( 0xd3, i_rotshft_wcl ) { } } -OP( 0xd4, i_aam ) { UINT32 mult=FETCH; mult=0; cpustate->regs.b[AH] = cpustate->regs.b[AL] / 10; cpustate->regs.b[AL] %= 10; SetSZPF_Word(cpustate->regs.w[AW]); CLK(17); } -OP( 0xd5, i_aad ) { UINT32 mult=FETCH; mult=0; cpustate->regs.b[AL] = cpustate->regs.b[AH] * 10 + cpustate->regs.b[AL]; cpustate->regs.b[AH] = 0; SetSZPF_Byte(cpustate->regs.b[AL]); CLK(5); } +OP( 0xd4, i_aam ) { FETCH; cpustate->regs.b[AH] = cpustate->regs.b[AL] / 10; cpustate->regs.b[AL] %= 10; SetSZPF_Word(cpustate->regs.w[AW]); CLK(17); } +OP( 0xd5, i_aad ) { FETCH; cpustate->regs.b[AL] = cpustate->regs.b[AH] * 10 + cpustate->regs.b[AL]; cpustate->regs.b[AH] = 0; SetSZPF_Byte(cpustate->regs.b[AL]); CLK(5); } OP( 0xd6, i_setalc ) { cpustate->regs.b[AL] = (CF)?0xff:0x00; CLK(3); logerror("%06x: Undefined opcode (SETALC)\n",PC(cpustate)); } OP( 0xd7, i_trans ) { UINT32 dest = (cpustate->regs.w[BW]+cpustate->regs.b[AL])&0xffff; cpustate->regs.b[AL] = GetMemB(DS, dest); CLK(5); } OP( 0xd8, i_fpo ) { GetModRM; CLK(1); logerror("%06x: Unimplemented floating point control %04x\n",PC(cpustate),ModRM); } |