diff options
| author | Tauwasser <Tauwasser@tauwasser.eu> | 2018-06-03 04:09:36 +0200 |
|---|---|---|
| committer | Tauwasser <Tauwasser@tauwasser.eu> | 2018-06-03 04:21:48 +0200 |
| commit | b0cb7a159d36c486b351df277b3c3b6613f17757 (patch) | |
| tree | cf6d4950cb49b6b7dab9fb30533212679e3a479e /home/util.asm | |
| parent | 2de77265514915f3f20d067088f966dbef9f8af1 (diff) | |
gfx: re-organize some graphics and disassemble gfx load code
All graphics were split so that proper labels could be placed.
Font was not split, because that was nicely handled using the
charmap constants.
If proper lengths should also be handled using automatic calculation
using labels, some graphics would need further splitting up
in order to place labels.s
Signed-off-by: Tauwasser <Tauwasser@tauwasser.eu>
Diffstat (limited to 'home/util.asm')
| -rw-r--r-- | home/util.asm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/home/util.asm b/home/util.asm new file mode 100644 index 0000000..bfc4ce4 --- /dev/null +++ b/home/util.asm @@ -0,0 +1,13 @@ +INCLUDE "constants.asm" + +SECTION "Misc Utility Functions", ROM0[$3429] + +AddNTimes:: ; 3429 (0:3429) + and a + ret z +.asm_342b + add hl, bc + dec a + jr nz, .asm_342b + ret +; 0x3430
\ No newline at end of file |
