Browse Source

Fix RGBDS version incompatibility

master
mid-kid 3 years ago
parent
commit
26c0dd1eab
  1. 4
      source/home/text.asm
  2. 2
      source/main.asm
  3. 8
      source/prog/ezflash_test.asm
  4. 2
      source/prog/serial_test.asm

4
source/home/text.asm

@ -19,7 +19,7 @@ v_font_lowercase: ds 26 tiles
section "home/text.asm", rom0 section "home/text.asm", rom0
print:: prints::
; hl: String ; hl: String
; de: Tilemap position ; de: Tilemap position
ld a, [hli] ld a, [hli]
@ -28,7 +28,7 @@ print::
call lcd_blank_wait ; TODO: Really hackish. call lcd_blank_wait ; TODO: Really hackish.
ld [de], a ld [de], a
inc de inc de
jr print jr prints
print_dec_3digit:: print_dec_3digit::
; a: Number ; a: Number

2
source/main.asm

@ -14,7 +14,7 @@ main::
ld hl, string_something ld hl, string_something
bgcoord de, (screen_width - string_something.end + string_something + 1) / 2, 2 bgcoord de, (screen_width - string_something.end + string_something + 1) / 2, 2
call print call prints
jp _halt_ jp _halt_
string_something: db "SOMETHING$" string_something: db "SOMETHING$"

8
source/prog/ezflash_test.asm

@ -26,17 +26,17 @@ prog_ezflash_test::
ld hl, string_title ld hl, string_title
bgcoord de, (screen_width - string_title.end + string_title + 1) / 2, 2 bgcoord de, (screen_width - string_title.end + string_title + 1) / 2, 2
call print call prints
ld hl, string_write ld hl, string_write
bgcoord de, 2, 5 bgcoord de, 2, 5
call print call prints
ld hl, string_write ld hl, string_write
bgcoord de, 2, 7 bgcoord de, 2, 7
call print call prints
ld hl, string_read ld hl, string_read
bgcoord de, 2, 10 bgcoord de, 2, 10
call print call prints
xor a xor a
ld [w_cursor], a ld [w_cursor], a

2
source/prog/serial_test.asm

@ -13,7 +13,7 @@ prog_serial_test::
ld hl, string_title ld hl, string_title
bgcoord de, (screen_width - string_title.end + string_title + 1) / 2, 2 bgcoord de, (screen_width - string_title.end + string_title + 1) / 2, 2
call print call prints
call serial_init_master call serial_init_master

Loading…
Cancel
Save