summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryenatch <yenatch@gmail.com>2014-02-14 19:35:38 -0500
committeryenatch <yenatch@gmail.com>2014-02-14 19:35:38 -0500
commitb1b084334c6f05e1253acae7ba65c8163d567bcf (patch)
tree7cc609887493ef7806c1786e9917f37df26e793f
parent1439ba6f2a2f94f7a4314c693246519cc383dbf2 (diff)
Let rgbasm handle undefined version constants.
-rw-r--r--blue.asm1
-rw-r--r--constants.asm4
-rw-r--r--red.asm3
-rw-r--r--version.asm20
4 files changed, 22 insertions, 6 deletions
diff --git a/blue.asm b/blue.asm
index abbd4b0f..fe2d9452 100644
--- a/blue.asm
+++ b/blue.asm
@@ -1,2 +1 @@
_BLUE EQU 1
-_RED EQU 0
diff --git a/constants.asm b/constants.asm
index 3496aa6a..85990c48 100644
--- a/constants.asm
+++ b/constants.asm
@@ -1,6 +1,4 @@
-_JAPAN EQU 0
-_GREEN EQU 0
-_YELLOW EQU 0
+INCLUDE "version.asm"
INCLUDE "macros.asm"
diff --git a/red.asm b/red.asm
index 882bf66a..571f24e0 100644
--- a/red.asm
+++ b/red.asm
@@ -1,2 +1 @@
-_RED EQU 1
-_BLUE EQU 0
+_RED EQU 1
diff --git a/version.asm b/version.asm
new file mode 100644
index 00000000..6f80aa1c
--- /dev/null
+++ b/version.asm
@@ -0,0 +1,20 @@
+if !def(_RED)
+_RED EQU 0
+endc
+
+if !def(_BLUE)
+_BLUE EQU 0
+endc
+
+if !def(_JAPAN)
+_JAPAN EQU 0
+endc
+
+if !def(_GREEN)
+_GREEN EQU 0
+endc
+
+if !def(_YELLOW)
+_YELLOW EQU 0
+endc
+