Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MorsGames
GitHub Repository: MorsGames/sm64plus
Path: blob/master/asm/rom_header.s
7854 views
1
/*
2
* Super Mario 64 ROM header
3
* Only the first 0x18 bytes matter to the console.
4
*/
5
6
.byte 0x80, 0x37, 0x12, 0x40 /* PI BSD Domain 1 register */
7
.word 0x0000000F /* Clockrate setting*/
8
.word entry_point /* Entrypoint */
9
10
/* Revision */
11
#ifdef VERSION_SH
12
.word 0x00001448
13
#elif defined(VERSION_EU)
14
.word 0x00001446
15
#else /* NTSC-U and NTSC-J 1.0 */
16
.word 0x00001444
17
#endif
18
19
.word 0x4EAA3D0E /* Checksum 1 */
20
.word 0x74757C24 /* Checksum 2 */
21
.word 0x00000000 /* Unknown */
22
.word 0x00000000 /* Unknown */
23
.ascii "SUPER MARIO 64 PLUS " /* Internal ROM name */
24
.word 0x00000000 /* Unknown */
25
.word 0x0000004E /* Cartridge */
26
.ascii "SM" /* Cartridge ID */
27
28
/* Region */
29
#ifdef VERSION_EU
30
.ascii "P" /* PAL (Europe) */
31
#elif defined(VERSION_US)
32
.ascii "E" /* NTSC-U (North America) */
33
#else
34
.ascii "J" /* NTSC-J (Japan) */
35
#endif
36
37
38
#ifdef VERSION_SH
39
.byte 0x03 /* Version (Shindou) */
40
#else
41
.byte 0x00 /* Version */
42
#endif
43
44