Cosmetic fixes for emulator
This commit is contained in:
parent
7ba68e13f7
commit
b641b5b441
10
utils/emul.c
10
utils/emul.c
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user