diff options
Diffstat (limited to 'stadium1/main.s')
-rw-r--r-- | stadium1/main.s | 549 |
1 files changed, 546 insertions, 3 deletions
diff --git a/stadium1/main.s b/stadium1/main.s index 8812d76..7972ea7 100644 --- a/stadium1/main.s +++ b/stadium1/main.s @@ -12,7 +12,263 @@ lw t8,0x4(a0) add a3,a3,a0 -.incbin "baserom.n64",0xC400,0x73C30-0xC400 +.incbin "baserom.n64",0xC400,0x43478-0xC400 + +Normal43478: + jr ra + or $v0,$r0,$r0 + +Fire43478: + jr ra + addiu $v0,$r0,1 + +Water43478: + jr ra + addiu $v0,$r0,2 + +Electric43478: + jr ra + addiu $v0,$r0,3 + +Grass43478: + jr ra + addiu $v0,$r0,4 + +Ice43478: + jr ra + addiu $v0,$r0,5 + +Fighting43478: + jr ra + addiu $v0,$r0,6 + +Poison43478: + jr ra + addiu $v0,$r0,7 + +Ground43478: + jr ra + addiu $v0,$r0,8 + +Flying43478: + jr ra + addiu $v0,$r0,9 + +Psychic43478: + jr ra + addiu $v0,$r0,10 + +Bug43478: + jr ra + addiu $v0,$r0,11 + +Rock43478: + jr ra + addiu $v0,$r0,12 + +Ghost43478: + jr ra + addiu $v0,$r0,13 + +Dragon43478: + jr ra + addiu $v0,$r0,14 + +Invalid43478: + or $v0,$r0,$r0 + jr ra + nop + +.incbin "baserom.n64",0x434FC,0x71BA0-0x434FC + +BaseStats: +.incbin "baserom.n64",0x71BA0,23*152 + .align 16 + +; There are 23 8-byte entries in the following array. +; There are 23 bytes for each entry in the preceding base stats array. +; Coincidence...? +.incbin "baserom.n64",0x72950,8*23 + .align 16 + +Comment165Times: + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + .ascii "comment",0 + +MoveTypeIconData: +.incbin "baserom.n64",0x72F38,12*165 + .align 16 + +MoveData: +.incbin "baserom.n64",0x73700,6*165 + .align 16 + +Pointers73AE0: +.incbin "baserom.n64",0x73AE0,4*83 + .align 16 CharMap: .db 0x20,0x20,0x20,0x20,0x20,0x20,0x20,0x20 ; @@ -48,7 +304,39 @@ CharMap: .db 0xA5,0xD7,0x2E,0x2F,0x2C,0xBE,0x30,0x31 ; ¥ × . / , ♀ 0 1 .db 0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39 ; 2 3 4 5 6 7 8 9 -.incbin "baserom.n64",0x73D30,0x100 +InverseCharMap: + .db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ; + .db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ; + .db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ; + .db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ; + .db 0x00,0xE7,0x00,0x00,0x00,0x00,0x00,0xE0 ; ! ' + .db 0x9A,0x9B,0x00,0xE4,0xF4,0xE3,0xF2,0xF3 ; ( ) + , - . / + .db 0xF6,0xF7,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD ; 0 1 2 3 4 5 6 7 + .db 0xFE,0xFF,0x9C,0x9D,0x00,0x00,0x00,0xE6 ; 8 9 : ; ? + .db 0x00,0x80,0x81,0x82,0x83,0x84,0x85,0x86 ; A B C D E F G + .db 0x87,0x88,0x89,0x8A,0x8B,0x8C,0x8D,0x8E ; H I J K L M N O + .db 0x8F,0x90,0x91,0x92,0x93,0x94,0x95,0x96 ; P Q R S T U V W + .db 0x97,0x98,0x99,0x9E,0x00,0x9F,0x00,0x00 ; X Y Z [ ] + .db 0x00,0xA0,0xA1,0xA2,0xA3,0xA4,0xA5,0xA6 ; a b c d e f g + .db 0xA7,0xA8,0xA9,0xAA,0xAB,0xAC,0xAD,0xAE ; h i j k l m n o + .db 0xAF,0xB0,0xB1,0xB2,0xB3,0xB4,0xB5,0xB6 ; p q r s t u v w + .db 0xB7,0xB8,0xB9,0x00,0x00,0x00,0x00,0x00 ; x y z + .db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ; + .db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ; + .db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ; + .db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ; + .db 0x00,0x00,0x00,0x00,0x00,0xF0,0x00,0x00 ; ¥ + .db 0x00,0xEF,0x00,0x00,0x00,0x00,0x00,0x00 ; ♂ + .db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ; + .db 0x00,0x00,0x00,0x00,0xE1,0xE2,0xF5,0x00 ; ¼ ½ ♀ + .db 0x00,0x00,0x00,0x00,0xC0,0x00,0x00,0x00 ; Ä + .db 0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00 ; + .db 0x00,0x00,0x00,0x00,0x00,0x00,0xC1,0xF1 ; Ö × + .db 0x00,0x00,0x00,0x00,0xC2,0x00,0x00,0xBE ; Ü ß + .db 0xBA,0x00,0xC8,0x00,0xC3,0x00,0x00,0xBF ; à â ä ç + .db 0xBB,0xBC,0xCB,0xC6,0x00,0x00,0xCC,0xC7 ; è é ê ë î ï + .db 0x00,0x00,0x00,0x00,0xC9,0x00,0xC4,0x00 ; ô ö + .db 0x00,0xBD,0x00,0xCA,0xC5,0x00,0x00,0x00 ; ù û ü TMHMMoves: .db MEGA_PUNCH @@ -1578,6 +1866,261 @@ MoveIndices2: .align 16 -.incbin "baserom.n64",0x7D1B0,0x2000000-0x7D1B0 +.incbin "baserom.n64",0x7D1B0,0x7D794-0x7D1B0 + + .dw 0x80000000 + Normal43478 - 0xC00 + .dw 0x80000000 + Fighting43478 - 0xC00 + .dw 0x80000000 + Flying43478 - 0xC00 + .dw 0x80000000 + Poison43478 - 0xC00 + .dw 0x80000000 + Ground43478 - 0xC00 + .dw 0x80000000 + Rock43478 - 0xC00 + .dw 0x80000000 + Invalid43478 - 0xC00 + .dw 0x80000000 + Bug43478 - 0xC00 + .dw 0x80000000 + Ghost43478 - 0xC00 + .dw 0x80000000 + Invalid43478 - 0xC00 + .dw 0x80000000 + Invalid43478 - 0xC00 + .dw 0x80000000 + Invalid43478 - 0xC00 + .dw 0x80000000 + Invalid43478 - 0xC00 + .dw 0x80000000 + Invalid43478 - 0xC00 + .dw 0x80000000 + Invalid43478 - 0xC00 + .dw 0x80000000 + Invalid43478 - 0xC00 + .dw 0x80000000 + Invalid43478 - 0xC00 + .dw 0x80000000 + Invalid43478 - 0xC00 + .dw 0x80000000 + Invalid43478 - 0xC00 + .dw 0x80000000 + Invalid43478 - 0xC00 + .dw 0x80000000 + Fire43478 - 0xC00 + .dw 0x80000000 + Water43478 - 0xC00 + .dw 0x80000000 + Grass43478 - 0xC00 + .dw 0x80000000 + Electric43478 - 0xC00 + .dw 0x80000000 + Psychic43478 - 0xC00 + .dw 0x80000000 + Ice43478 - 0xC00 + .dw 0x80000000 + Dragon43478 - 0xC00 + +.incbin "baserom.n64",0x7D800,0x7F388-0x7D800 + + .db "RSP Gfx ucode F3DEX fifo 2.06 Yoshitaka Yasumoto 1998 Nintendo.",0x0A,0 + .align 4 + +.incbin "baserom.n64",0x7F3D0,0x8D6C0-0x7F3D0 + + .db "POKEMON RED", 0, 0, 0, 0, 0 + .db "POKEMON GREEN", 0, 0xFF, 0xFF + .db "POKEMON BLUE", 0, 0, 0, 0 + .db "POKEMON YELLOW", 0, 0x80 + + ; Pokémon Red + .dh 0x00, 0xD39A, 0x0247 + .dh 0x8000 + .dh 0x8001 + .dh 0x8002 + .dh 0x8003 + .dh 0x01, 0x56C0, 0xA3D6 + .dh 0x02, 0x191C, 0x43C1 + .dh 0x13, 0x9064, 0xE4D6 + .dh 0x1C, 0x71BB, 0xCF58 + .dh 0x04, 0xBD4D, 0x05F0 + .dh 0x06, 0xC161, 0xC100 + .dh 0x10, 0x8D71, 0xFAAE + .dh 0x1F, 0x51C5, 0x7255 + .dh 0x1E, 0xB412, 0x61CC + .dh 0x03, 0xFDAD, 0xAA0C + .dh 0x1A, 0x5438, 0x0CF3 + .dh 0x0E, 0x9920, 0x9773 + .dh 0x0D, 0x0B4E, 0x963E + .dh 0x0F, 0xDD43, 0xE109 + .dh 0x05, 0x7F3A, 0x0834 + .dh 0x07, 0x0E32, 0x0114 + .dh 0x15, 0xE768, 0x1998 + .dh 0x19, 0x2C1F, 0x21E8 + .dh 0x1D, 0x0F3A, 0x7C20 + .dh 0x22, 0x9069, 0xB52E + .dh 0x0B, 0x6581, 0xEFA0 + .dh 0x25, 0x1311, 0x2302 + .dh 0x11, 0x4687, 0x071F + .dh 0x14, 0xC480, 0xBF59 + .dh 0x17, 0x4232, 0x0000 + .dh 0x12, 0xAD8D, 0xC756 + .dh 0x08, 0x5A42, 0x6BF0 + .dh 0x09, 0x9506, 0xF48B + .dh 0x0A, 0x9D35, 0x8D38 + .dh 0x0C, 0x35B9, 0xCC9E + .dh 0x16, 0x8433, 0x07ED + .dh 0x18, 0xDB64, 0xB877 + .dh 0x1B, 0x3082, 0xC560 + .dh 0x20, 0x3A09, 0x6504 + .dh 0x21, 0x437E, 0xB141 + .dh 0x23, 0x3821, 0x3B7F + .dh 0x24, 0x08D6, 0x6CA4 + .dh 0x26, 0x6FCF, 0x00AC + .dh 0x27, 0x326C, 0x67F3 + .dh 0x28, 0x541C, 0x0BC6 + .dh 0x29, 0xFB98, 0xB6F1 + .dh 0x2A, 0xC223, 0x0000 + .dh 0x2B, 0xAC93, 0xE9AE + .dh 0x2C, 0x1F51, 0x0000 + .dh 0x2D, 0x0000, 0x0000 + .dh 0x2E, 0x0000, 0x0000 + .dh 0x2F, 0x0000, 0x0000 + .dh 0x30, 0x0000, 0x0000 + .dh 0x31, 0x0000, 0x0000 + .dh 0x32, 0x0000, 0x0000 + .dh 0x33, 0x0000, 0x0000 + .dh 0x34, 0x0000, 0x0000 + .dh 0x35, 0x0000, 0x0000 + .dh 0x36, 0x0000, 0x0000 + .dh 0x37, 0x0000, 0x0000 + .dh 0x38, 0x0000, 0x0000 + .dh 0x39, 0x0000, 0x0000 + .dh 0x3A, 0x0000, 0x0000 + .dh 0x3B, 0x0000, 0x0000 + .dh 0x3C, 0x0000, 0x0000 + .dh 0x3D, 0x0000, 0x0000 + .dh 0x3E, 0x0000, 0x0000 + .dh 0x3F, 0x0000, 0x0000 + .dh 0, 0 + + ; Pokémon Blue + .dh 0x00, 0xD3E2, 0x024C + .dh 0x8000 + .dh 0x8001 + .dh 0x8002 + .dh 0x8003 + .dh 0x01, 0x57AC, 0xA3DA + .dh 0x02, 0x191C, 0x43C1 + .dh 0x13, 0x9064, 0xE4D6 + .dh 0x1C, 0x71BB, 0xE845 + .dh 0x04, 0xBD4D, 0x05F0 + .dh 0x06, 0xC162, 0xC100 + .dh 0x10, 0x8D71, 0xBE4F + .dh 0x1F, 0x5257, 0x7255 + .dh 0x1E, 0xBC53, 0x61CC + .dh 0x03, 0x025A, 0xAA0D + .dh 0x1A, 0x4F47, 0x0AFD + .dh 0x0E, 0x9920, 0x9773 + .dh 0x0D, 0x0B4E, 0xB88F + .dh 0x0F, 0xDD43, 0xE109 + .dh 0x05, 0x7F3A, 0x0835 + .dh 0x07, 0x0E32, 0x0114 + .dh 0x15, 0xE768, 0x1998 + .dh 0x19, 0x2C1F, 0x21E8 + .dh 0x1D, 0x10D1, 0x7D54 + .dh 0x22, 0x9069, 0xB52E + .dh 0x0B, 0x6581, 0xEFA0 + .dh 0x25, 0x1311, 0x2302 + .dh 0x11, 0x4805, 0x0761 + .dh 0x14, 0xC480, 0xBE6A + .dh 0x17, 0x4232, 0x0000 + .dh 0x12, 0xAD8D, 0xC756 + .dh 0x08, 0x5A42, 0x6BF0 + .dh 0x09, 0x9506, 0xF48B + .dh 0x0A, 0x9D35, 0x8D38 + .dh 0x0C, 0x35B9, 0xCC9E + .dh 0x16, 0x8433, 0x07ED + .dh 0x18, 0xDB64, 0xB877 + .dh 0x1B, 0x3082, 0xC560 + .dh 0x20, 0x3A09, 0x6504 + .dh 0x21, 0x437E, 0xB141 + .dh 0x23, 0x3821, 0x3B7F + .dh 0x24, 0x08D6, 0x6CA4 + .dh 0x26, 0x6FCF, 0x00AC + .dh 0x27, 0x326C, 0x67F3 + .dh 0x28, 0x541C, 0x0BC6 + .dh 0x29, 0xFB98, 0xB6F1 + .dh 0x2A, 0xC223, 0x0000 + .dh 0x2B, 0xAC93, 0xE9AE + .dh 0x2C, 0x1F51, 0x0000 + .dh 0x2D, 0x0000, 0x0000 + .dh 0x2E, 0x0000, 0x0000 + .dh 0x2F, 0x0000, 0x0000 + .dh 0x30, 0x0000, 0x0000 + .dh 0x31, 0x0000, 0x0000 + .dh 0x32, 0x0000, 0x0000 + .dh 0x33, 0x0000, 0x0000 + .dh 0x34, 0x0000, 0x0000 + .dh 0x35, 0x0000, 0x0000 + .dh 0x36, 0x0000, 0x0000 + .dh 0x37, 0x0000, 0x0000 + .dh 0x38, 0x0000, 0x0000 + .dh 0x39, 0x0000, 0x0000 + .dh 0x3A, 0x0000, 0x0000 + .dh 0x3B, 0x0000, 0x0000 + .dh 0x3C, 0x0000, 0x0000 + .dh 0x3D, 0x0000, 0x0000 + .dh 0x3E, 0x0000, 0x0000 + .dh 0x3F, 0x0000, 0x0000 + .dh 0, 0 + + ; Pokémon Yellow + .dh 0x00, 0x73DE, 0x185A + .dh 0x8000 + .dh 0x8001 + .dh 0x8002 + .dh 0x8003 + .dh 0x02, 0x2815, 0x9A70 + .dh 0x08, 0xD027, 0x9080 + .dh 0x01, 0xF9ED, 0xE6F9 + .dh 0x3D, 0x86AD, 0x2E7C + .dh 0x1C, 0x73FE, 0x4DCF + .dh 0x03, 0xDBD0, 0x1341 + .dh 0x10, 0xF591, 0x0000 + .dh 0x04, 0x72C5, 0x44E7 + .dh 0x1E, 0xD7C1, 0x1882 + .dh 0x1F, 0x26D1, 0x5271 + .dh 0x3E, 0x7E93, 0xB3B7 + .dh 0x3C, 0x0FCE, 0xD523 + .dh 0x21, 0x23EF, 0x209C + .dh 0x24, 0x26B1, 0x5298 + .dh 0x3F, 0xD281, 0xD008 + .dh 0x06, 0xD689, 0x4B99 + .dh 0x05, 0x2F0D, 0xABBD + .dh 0x07, 0x02DC, 0xBC1E + .dh 0x15, 0xCB6E, 0xBAD2 + .dh 0x19, 0x2EEE, 0x36B3 + .dh 0x3A, 0x17FA, 0x89D0 + .dh 0x0F, 0xE52F, 0xBA81 + .dh 0x14, 0xDB93, 0x76F3 + .dh 0x29, 0x1936, 0xD90E + .dh 0x13, 0x9064, 0xD590 + .dh 0x28, 0x0655, 0xF747 + .dh 0x0E, 0x4AD9, 0x4C88 + .dh 0x0B, 0xF32A, 0x0922 + .dh 0x17, 0x862F, 0x0000 + .dh 0x27, 0x438E, 0x239B + .dh 0x09, 0x7449, 0xD306 + .dh 0x0A, 0xAE10, 0xD1F5 + .dh 0x0C, 0xF97D, 0xACB2 + .dh 0x0D, 0xE3EE, 0x210B + .dh 0x11, 0xC66A, 0x8738 + .dh 0x12, 0xE2AD, 0x7300 + .dh 0x16, 0x8CF6, 0xDF57 + .dh 0x18, 0x23A8, 0x95A7 + .dh 0x1A, 0x41AD, 0x0B25 + .dh 0x1B, 0x3082, 0xC560 + .dh 0x1D, 0x58B0, 0x8451 + .dh 0x20, 0x97F9, 0x4422 + .dh 0x22, 0x64D9, 0xDD45 + .dh 0x23, 0x03F1, 0x656F + .dh 0x25, 0xD246, 0x63CC + .dh 0x26, 0x36CF, 0x16BB + .dh 0x2A, 0x2249, 0xA700 + .dh 0x2B, 0x77CA, 0x9297 + .dh 0x2C, 0x428A, 0xF613 + .dh 0x2D, 0x0B68, 0x2045 + .dh 0x2E, 0xBA3E, 0xC337 + .dh 0x2F, 0x24D4, 0x988D + .dh 0x30, 0xA832, 0x981C + .dh 0x31, 0xFBCA, 0x505D + .dh 0x32, 0x7976, 0x99F8 + .dh 0x33, 0x6C79, 0x1BC2 + .dh 0x34, 0x350E, 0x7428 + .dh 0x35, 0x19FD, 0x4D4C + .dh 0x36, 0xFBF7, 0xE444 + .dh 0x37, 0xCE4B, 0xDA69 + .dh 0x38, 0x1FF6, 0xDEF8 + .dh 0x39, 0xAEC5, 0x2557 + .dh 0x3B, 0x0000, 0x0000 + .dh 0, 0 + +.incbin "baserom.n64",0x8DBA4,0x2000000-0x8DBA4 .close |