New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bank 2 #37

merged 10 commits into from Mar 19, 2018


None yet
1 participant

kemenaran commented Mar 16, 2018

Add disassembly for bank2.

Bank2 was disassembled using the excellent mgbdis disassembler (by @mattcurrie). I added some tweaks to use the same assembly style than the first existing banks, and make more use of declared symbols in variables.

This PR also adds macros for farcalls, and starts bridging bank0 and bank2 together.

kemenaran added some commits Mar 14, 2018

Rename rJOYP to rP1
For compatibility with mgbdis output
Add disassembly for bank2
Generated with `mgbdis --print-hex --uppercase-hex game.gbc`

Symbols added manually:

02:4000 Data_002_4000
02:4000 .data:146
02:45BE Data_002_45BE
02:45BE .data:14B
02:48C5 Data_002_48C5
02:48C5 .data:9B
02:59D4 Data_002_59D4
02:59D4 .data:A5
02:6478 Data_002_6478
02:6478 .data:289
02:786F Data_002_786F
02:786F .data:E
02:7C40 Data_002_7C40
02:7C40 .data:F
bank2: improve disassembly
- Add relative jumps
- Add symbols for function calls to bank0

@kemenaran kemenaran merged commit a17252f into mojobojo:master Mar 19, 2018

@kemenaran kemenaran deleted the kemenaran:add-bank-2 branch Mar 20, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment