Get rid of globals.asm. Use ::s to export labels between objects.

globals.asm was a hack that:
- gave rgbasm an extra 100k lines to read
- increased reliance on the python preprocessor
- made the makefile a mess
- gave object creation an extra step
- wasn't even necessary

This speeds up build time by at least a third.
This commit is contained in:
yenatch 2014-01-27 16:22:41 -05:00
parent 6bde08504f
commit 1b9ee46af9
277 changed files with 4346 additions and 4358 deletions

View file

@ -1,6 +1,6 @@
; The first of three duplicated sound engines.
Func_9103: ; 0x9103
Func_9103:: ; 0x9103
ld c, CH0
.loop
ld b, $0
@ -1273,7 +1273,7 @@ Func_9858: ; 0x9858
ld d, a
ret
Func_9876: ; 0x9876
Func_9876:: ; 0x9876
ld [$c001], a
cp $ff
jp z, Func_9a34

View file

@ -1,6 +1,6 @@
; The second of three duplicated sound engines.
Func_21879: ; 21879 (8:5879)
Func_21879:: ; 21879 (8:5879)
ld c, CH0
.loop
ld b, $0
@ -1324,7 +1324,7 @@ Func_22017: ; 22017 (8:6017)
ld d, a
ret
Func_22035: ; 22035 (8:6035)
Func_22035:: ; 22035 (8:6035)
ld [$c001], a
cp $ff
jp z, Func_221f3

View file

@ -1,6 +1,6 @@
; The third of three duplicated sound engines.
Func_7d177: ; 7d177 (1f:5177)
Func_7d177:: ; 7d177 (1f:5177)
ld c, CH0
.loop
ld b, $0
@ -1273,7 +1273,7 @@ Func_7d8cc: ; 7d8cc (1f:58cc)
ld d, a
ret
Func_7d8ea: ; 7d8ea (1f:58ea)
Func_7d8ea:: ; 7d8ea (1f:58ea)
ld [$c001], a
cp $ff
jp z, Func_7daa8