LinkOfTime
New member
Hi
I am building an emulator of the old GameBoy system.
Now, while trying to run a game (Tetris - Rom only), I ran into a problem. There is a "call (FFB6H)" instruction in the code (in address 247H - part of the ROM).Now, in that called procedure (in address FFB6H), there is the value 0, meaning, instruction "nop" and there isn't a ret instuction somewhere near that address to take the CPU back from the procedure... and that's impossible...
So I compared the values that are supposed to be at that address (FFB6H) and at the 247H address with a different, working emulator that I downloaded...
Well, the "call (FFB6H)" instruction is there in the right place, but, in address FFB6H there are different values that, in Assembly code, actually make sense...
Well, those values aren't loaded to that address (FFB6H - which is, by the way, in the internal RAM memory space) from the beginning, they are put there some when but I don't know how or when...
I hope you understand my problem and could find a solution to it and help me with it...
Thanks in advance for trying to help me
I am building an emulator of the old GameBoy system.
Now, while trying to run a game (Tetris - Rom only), I ran into a problem. There is a "call (FFB6H)" instruction in the code (in address 247H - part of the ROM).Now, in that called procedure (in address FFB6H), there is the value 0, meaning, instruction "nop" and there isn't a ret instuction somewhere near that address to take the CPU back from the procedure... and that's impossible...
So I compared the values that are supposed to be at that address (FFB6H) and at the 247H address with a different, working emulator that I downloaded...
Well, the "call (FFB6H)" instruction is there in the right place, but, in address FFB6H there are different values that, in Assembly code, actually make sense...
Well, those values aren't loaded to that address (FFB6H - which is, by the way, in the internal RAM memory space) from the beginning, they are put there some when but I don't know how or when...
I hope you understand my problem and could find a solution to it and help me with it...
Thanks in advance for trying to help me