forked from jkbenaim/pokemon-stadium-2-debug-menu
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpatch.asm
More file actions
37 lines (30 loc) · 616 Bytes
/
patch.asm
File metadata and controls
37 lines (30 loc) · 616 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// pokeymans trainer, wip
// 2019 jrra
arch n64.cpu
endian msb
include "n64.inc"
origin 0x0
if (REGION==1) {
output "jap.z64", create
insert "np3j0.z64"
constant run_code_fragment(0x80065748)
constant big_unused_function(0x8007bcd0)
constant mode_options(0x800658a4)
} else {
output "usa.z64", create
insert "np3e0.z64"
constant run_code_fragment(0x80064ce8)
constant big_unused_function(0x8007a8a4)
constant mode_options(0x80064e44)
}
constant gamemode_title(1)
seek(big_unused_function)
mode_dbsl:
if (REGION==1) {
insert "jap.bin"
} else {
insert "usa.bin"
}
seek(mode_options)
j mode_dbsl
nop