Cosmetic fixes for emulator

This commit is contained in:
Nero 2019-10-08 19:54:13 +00:00
parent 7ba68e13f7
commit b641b5b441

View File

@ -268,12 +268,14 @@ void step() {
arith16(opcode >> 3, &RM16, R16(reg)); arith16(opcode >> 3, &RM16, R16(reg));
break; break;
case 0x40 ... 0x47: // INC reg16 case 0x40 ... 0x47: // INC reg16
R16(opcode - 0x40)++; reg=opcode-0x40;
flags.bit.z=!R16(opcode - 0x40); R16(reg)++;
flags.bit.z=!R16(reg);
break; break;
case 0x48 ... 0x4F: // DEC reg16 case 0x48 ... 0x4F: // DEC reg16
R16(opcode - 0x48)--; reg=opcode-0x48;
flags.bit.z=!R16(opcode - 0x48); R16(reg)--;
flags.bit.z=!R16(reg);
break; break;
case 0x50 ... 0x57: // PUSH reg16 case 0x50 ... 0x57: // PUSH reg16
push(R16(opcode-0x50)); push(R16(opcode-0x50));