Created
February 1, 2015 03:19
-
-
Save jacobmischka/10a5bc4ff51c83db2329 to your computer and use it in GitHub Desktop.
IND
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Indirect */ | |
static void IND() { | |
cpu.indoperaddr = Memory_ReadWord(cpu.PC); | |
if((cpu.indoperaddr & 0x00FF) == 0x00FF){ | |
cpu.operaddr = (WORD)Memory_ReadByte(cpu.indoperaddr) | ((WORD)Memory_ReadByte(cpu.indoperaddr & 0xFF00) << 8); | |
} | |
else | |
cpu.operaddr = Memory_ReadWord(cpu.indoperaddr); | |
cpu.PC += 2; | |
/* TODO: Implement bug */ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment