ROMv1.asm.py
Posted: 26 Mar 2024, 08:35
Hello,
I'm studying ROM files and there's a question about that.
I attached a picture. It may be useful to understand my question.
The assembly instruction 'jmp' can do the 'far jump' action, so if 'jmp(Y,'vBlankStart')' is executed, we jump to 'vBlankStart'.
Then can 'SYS_Reset_36' be executed?
Even though the next line of 'jmp()' is already fetched and even executed, we should jump to 'vBlankStart' and do not come back to this line. This is how I understand.
I think 'SYS_Reset_36' part is executed when I do the soft reset, but then how can I reach that line? Ain't I need some code lines to approach there like pointing the line number?
As I browsed the whole code, no line branches to that label.
I need your help
Thx.
I'm studying ROM files and there's a question about that.
I attached a picture. It may be useful to understand my question.
The assembly instruction 'jmp' can do the 'far jump' action, so if 'jmp(Y,'vBlankStart')' is executed, we jump to 'vBlankStart'.
Then can 'SYS_Reset_36' be executed?
Even though the next line of 'jmp()' is already fetched and even executed, we should jump to 'vBlankStart' and do not come back to this line. This is how I understand.
I think 'SYS_Reset_36' part is executed when I do the soft reset, but then how can I reach that line? Ain't I need some code lines to approach there like pointing the line number?
As I browsed the whole code, no line branches to that label.
I need your help
Thx.