1 | the following will go into the custom .romhdr section which will be placed at
2 | address 100h of the binary by the linker (see megadrive.ld).
6 #define GAMENAME "life"
12 .ascii "SEGA MEGA DRIVE (C)MINDLAPSE2022"
16 .fill 48 - (hdr_game_dom_end - hdr_game_dom),1,32 | pad to 48 bytes with spaces
20 .fill 48 - (hdr_game_int_end - hdr_game_int),1,32 | pad to 48 bytes with spaces
21 .ascii "GM" | it's a game (who cares what it is?)
22 .ascii "0000000-" | product code
23 .ascii VERSTR | version string
25 .ascii "J " | I/O support (joypad)
26 .long 0 | start address of ROM
27 .long _rom_end | last address of ROM
28 .long 0xff0000 | start address of RAM
29 .long 0xffffff | last address of RAM
30 .long 0 | SRAM enabled(?)
32 .long 0 | start address of SRAM
33 .long 0 | last address of SRAM
36 .fill 40,1,32 | notes (fill with spaces for now TODO)
37 .ascii "JUE " | country codes