Some questions about initialisations
Posted: Fri Oct 24, 2014 3:40 pm
I investigate SF2SCE Rom, and after having identified some in-game routines, I try to follow the code from the start-up up to a battle (the goal is to make a rom that boots directly in a human controled Ryu, with no background, no music, no second player).
There are some things at the very beginning that I don't always understand.
For example (some will follow), the first instructions in the RESET are :
According to CMD's gen-hw document, these are Ctrl registers for port A and B but what does the program expect by reading (and reading a long first) at startup ?
A little further, there's a word read on the VDP Control port (C00004). I read that it reset the flag that governs 16 bit write to it later. Is there another side-effect or can I assume it's the only goal of this read ?
There are some things at the very beginning that I don't always understand.
For example (some will follow), the first instructions in the RESET are :
Code: Select all
tst.l ($A10008).l
bne.s loc_0_800E
tst.w ($A1000C).l
loc_0_800E:
bne.s loc_0_808C
A little further, there's a word read on the VDP Control port (C00004). I read that it reset the flag that governs 16 bit write to it later. Is there another side-effect or can I assume it's the only goal of this read ?