sm64

A Super Mario 64 decompilation
Log | Files | Refs | README | LICENSE

rom_header.s (1369B)


      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_CN)
     14     .word  0x0000144C
     15 #elif defined(VERSION_EU)
     16     .word  0x00001446
     17 #else /* NTSC-U and NTSC-J 1.0 */
     18     .word  0x00001444
     19 #endif
     20 
     21 #ifdef VERSION_CN
     22     .fill 0x30
     23 #else
     24 
     25 .word  0x4EAA3D0E               /* Checksum 1 */
     26 .word  0x74757C24               /* Checksum 2 */
     27 .word  0x00000000               /* Unknown */
     28 .word  0x00000000               /* Unknown */
     29 #ifdef VERSION_SH
     30 .ascii "SUPERMARIO64        "   /* Internal ROM name */
     31 #else
     32 .ascii "SUPER MARIO 64      "   /* Internal ROM name */
     33 #endif
     34 .word  0x00000000               /* Unknown */
     35 .word  0x0000004E               /* Cartridge */
     36 .ascii "SM"                     /* Cartridge ID */
     37 
     38 /* Region */
     39 #ifdef VERSION_EU
     40     .ascii "P"                  /* PAL (Europe) */
     41 #elif defined(VERSION_US)
     42     .ascii "E"                  /* NTSC-U (North America) */
     43 #else
     44     .ascii "J"                  /* NTSC-J (Japan) */
     45 #endif
     46 
     47 
     48 #ifdef VERSION_SH
     49     .byte  0x03                 /* Version (Shindou) */
     50 #else
     51     .byte  0x00                 /* Version */
     52 #endif
     53 
     54 #endif