xor di and cpu flags

This commit is contained in:
2025-01-30 18:38:29 -07:00
parent 6a82e9fa03
commit 1bf98447a3
6 changed files with 38 additions and 9 deletions

View File

@ -11,13 +11,11 @@ instruction instructions[0x100] = {
[0xAF] = {IN_XOR, AM_R, RT_A},
[0xC3] = {IN_JP, AM_D16},
[0xF3] = {IN_DI},
};
instruction *instruction_by_opcode(u8 opcode) {
if (instructions[opcode].type == IN_NONE) {
return NULL;
}
return &instructions[opcode];
}