Browse Source

Emulator: Rename decr16 => dec16 as there is only one variant

master
Riyyi 2 years ago
parent
commit
c81db1d3b5
  1. 10
      src/cpu.cpp
  2. 2
      src/cpu.h

10
src/cpu.cpp

@ -74,7 +74,7 @@ void CPU::update()
case 0x06: ldi8(); break;
case 0x08: ldr16(); break;
case 0x0a: ldr8(); break;
case 0x0b: decr16(); break;
case 0x0b: dec16(); break;
case 0x0c: inc(); break;
case 0x0d: dec8(); break;
case 0x0e: ldi8(); break;
@ -85,7 +85,7 @@ void CPU::update()
case 0x16: ldi8(); break;
case 0x18: jrs8(); break;
case 0x1a: ldr8(); break;
case 0x1b: decr16(); break;
case 0x1b: dec16(); break;
case 0x1c: inc(); break;
case 0x1d: dec8(); break;
case 0x1e: ldi8(); break;
@ -97,7 +97,7 @@ void CPU::update()
case 0x26: ldi8(); break;
case 0x28: jrs8(); break;
case 0x2a: lda8(); break;
case 0x2b: decr16(); break;
case 0x2b: dec16(); break;
case 0x2c: inc(); break;
case 0x2d: dec8(); break;
case 0x2e: ldi8(); break;
@ -110,7 +110,7 @@ void CPU::update()
case 0x36: ldi8(); break;
case 0x38: jrs8(); break;
case 0x3a: ldr8(); break;
case 0x3b: decr16(); break;
case 0x3b: dec16(); break;
case 0x3c: inc(); break;
case 0x3d: dec8(); break;
case 0x3e: ldi8(); break;
@ -330,7 +330,7 @@ void CPU::lda8()
}
}
void CPU::decr16()
void CPU::dec16()
{
uint8_t opcode = pcRead();
switch (opcode) {

2
src/cpu.h

@ -33,7 +33,7 @@ public:
void xor8();
// 16-bit
void decr16();
void dec16();
// -------------------------------------
// Bit Operations Instructions

Loading…
Cancel
Save