Re: Arbitrary code execution in Gold/Silver UE using the Coin Case
Posted by: ISSOtm
Date: 2017-10-26 12:15:34
None of that really bothers me. The most tedious part has to be done either way (typing in the code). I could see the advantages though, either way I'll probably be forced into using it as support for coin case wavers.
TM25 is also much more convenient when developing code, since you don't have to fix the stack - which also requires SMC'ing an `inc sp` in. Thus more boxes can be used, leading to more powerful codes.
Speaking of fixing the stack, I wonder why this wouldn't work :
xor a
ld [$F199], a ; Menu lag-less
add sp, $FF ; dec sp
pop de ; Incurs an additional pop
pop de
pop de
pop de
or a
ret nc
instead of the classic
xor a
ld [$F199],a
pop de
pop de
inc sp
pop de
or a
ret nc
(Note : if for some reason "add sp, $FF" is infeasible, "ld hl, sp+$FF" followed by "ld sp, hl" should be possible)
The point of this setup is that it still fixes the stack, but doesn't require SMC anymore. So it could be moved to a later box ?