summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--stadium1/Makefile7
-rw-r--r--stadium1/main.s13
2 files changed, 19 insertions, 1 deletions
diff --git a/stadium1/Makefile b/stadium1/Makefile
index c2d848b..c494184 100644
--- a/stadium1/Makefile
+++ b/stadium1/Makefile
@@ -1,4 +1,9 @@
-all: text.tbl
+all: pokestadium.n64
+
+pokestadium.n64: main.s
+ armips main.s
+
+#all: text.tbl
TBLS = \
text/0x783a50.bin \
diff --git a/stadium1/main.s b/stadium1/main.s
new file mode 100644
index 0000000..8a21711
--- /dev/null
+++ b/stadium1/main.s
@@ -0,0 +1,13 @@
+.n64
+.open baserom.n64,pokestadium.n64,0
+
+; moves legality checker
+.orga 0x2ecb38
+ or v0, s4, r0
+ lbu v1, 0x000a (v0) ; load starting move in v1
+ addiu s0, s0, 1
+ slti at, s0, 4 ; set at to 1 if four moves haven't been checked yet
+ beq v1, r0, 0x2ecb64
+ nop
+
+.close