Re: Pokemon Crystal Remote Code Execution
Posted by: Torchickens
Date: 2019-11-28 11:43:53
The Problem is that it does like that : https://ibb.co/pRmGYwH
any fix
CTRL + G works but on the code it just shows -
As it's not automatic and sometimes BGB starts at the wrong place, the trick is to right click at the start of your code I think (i.e. D322 here) and access it via Go to; then BGB will update it.
Edit: In this case the display won't change because D321 was a one byte instruction (though if it was 2 bytes it would require right clicking method). Your code currently grabs FFD3, puts it into "a" and then puts "a" in D059 (instant encounter) (in contrast with e.g. 3E 15 at the start, which compiles as ld a,15 where 15 can be replaced with any value). When a is on the left side of the code it is storing something into the "a" register.
Additionally hope this may help https://iimarckus.org/etc/asmopcodes.txt