diff --git a/Source/Assembler/assembly.c b/Source/Assembler/assembly.c index 6b535c6..213c9a7 100644 --- a/Source/Assembler/assembly.c +++ b/Source/Assembler/assembly.c @@ -37,11 +37,9 @@ Instruction instruction_set[] = { {0x23, "INCB"}, {0x24, "DECA"}, {0x25, "DECB"}, - {0x26, "LDA"}, - {0x27, "LDB"}, - {0x28, "INIA"}, - {0x29, "INIB"}, - {0x2F, "CCF"}, + {0x26, "INIA"}, + {0x27, "INIB"}, + {0x28, "CCF"}, // Stack Operations: {0x30, "PSHQ"}, {0x31, "PSHA"}, diff --git a/Source/Emulator/cpu.c b/Source/Emulator/cpu.c index 7f60232..8ce7443 100644 --- a/Source/Emulator/cpu.c +++ b/Source/Emulator/cpu.c @@ -235,24 +235,16 @@ uint8_t executeOperation(uint8_t Instruction, CPURegisters *cpu) { cpu->B--; break; case 0x26: - // LDA - Load the byte referenced by the Data Pointer to A. - cpu->A = cpu->Data[cpu->DataPointer]; - break; - case 0x27: - // LDB - Load the byte referenced by the Data Pointer to B. - cpu->B = cpu->Data[cpu->DataPointer]; - break; - case 0x28: // INIA - Initialize A Immediately from Program Memory. cpu->ProgramCounter++; cpu->A = cpu->Program[cpu->ProgramCounter]; break; - case 0x29: + case 0x27: // INIB - Initialize A Immediately from Program Memory. cpu->ProgramCounter++; cpu->B = cpu->Program[cpu->ProgramCounter]; break; - case 0x2F: + case 0x28: // CCF - Clear the Carry Flag. cpu->Status &= ~0x01; break;