summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIIMarckus <iimarckus@gmail.com>2015-12-10 00:42:13 -0700
committerIIMarckus <iimarckus@gmail.com>2015-12-10 00:46:48 -0700
commit23cf4c823a8caeb032b9cbe364fc534119c6a6b9 (patch)
tree7bff67d567f7e1d460fd229557615face0609a90
parent69eaa2ab991d9cafb0b88d816b46e2fa967d9ffe (diff)
Build a ROM (99.99% incbins).
-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