Skip to content
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

Comment and parse cart header #5

Open
taylus opened this issue Aug 16, 2020 · 1 comment
Open

Comment and parse cart header #5

taylus opened this issue Aug 16, 2020 · 1 comment

Comments

@taylus
Copy link
Owner

taylus commented Aug 16, 2020

e.g.

;---------------------------------------
; Cartridge header                     ;    https://gbdev.gg8.se/wiki/articles/The_Cartridge_Header
;---------------------------------------
nop                               ;$0100    ;entry point        
jp $0150                          ;$0101    ;jump over header data to de-facto entry point
db $ce, $ed, $66, $66, $cc, $0d   ;$0104    ;begin Nintendo logo tile data               |
db $00, $0b, $03, $73, $00, $83   ;$010a                                                 |
db $00, $0c, $00, $0d, $00, $08   ;$0110                                                 |
db $11, $1f, $88, $89, $00, $0e   ;$0116                                                 |
db $dc, $cc, $6e, $e6, $dd, $dd   ;$011c                                                 |
db $d9, $99, $bb, $bb, $67, $63   ;$0122                                                 |
db $6e, $0e, $ec, $cc, $dd, $dc   ;$0128                                                 |
db $99, $9f, $bb, $b9, $33, $3e   ;$012e    ;end Nintendo logo tile data                 |
db "TETRIS"                       ;$0134    ;title                                       |
db 0, 0, 0, 0, 0, 0, 0, 0, 0      ;$013a    ;title padding (15 chars)                    |
db $00                            ;$0143                                                 |
db $00                            ;$0144                                                 |
db $00                            ;$0145                                                 |
db $00                            ;$0146                                                 |
db $00                            ;$0147                                                 |
db $00                            ;$0148                                                 |
db $00                            ;$0149                                                 |
db $00                            ;$014a                                                 |
db $01                            ;$014b                                                 |
db $01                            ;$014c                                                 |
db $0a                            ;$014d                                                 |
db $16                            ;$014e                                                 |
db $bf                            ;$014f                                                 |
jp $020c                          ;$0150    <--------------------------------------------+
call $29e3                        ;$0153
@taylus
Copy link
Owner Author

taylus commented Aug 16, 2020

Maybe print the title and other header data to the console while decompiling?
https://gbdev.gg8.se/wiki/articles/The_Cartridge_Header

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant