summaryrefslogtreecommitdiff
path: root/engine/gfx/set_title_decoration.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/gfx/set_title_decoration.asm')
-rw-r--r--engine/gfx/set_title_decoration.asm33
1 files changed, 33 insertions, 0 deletions
diff --git a/engine/gfx/set_title_decoration.asm b/engine/gfx/set_title_decoration.asm
new file mode 100644
index 0000000..1a4f2fe
--- /dev/null
+++ b/engine/gfx/set_title_decoration.asm
@@ -0,0 +1,33 @@
+INCLUDE "constants.asm"
+
+SECTION "engine/gfx/set_title_decoration.asm", ROMX
+
+SetTitleBGDecorationBorder:
+ ld de, TitleBGDecorationBorder
+ ld hl, vChars2 + $500
+ lb bc, BANK(TitleBGDecorationBorder), 9
+ call Request2bpp
+
+; top row
+ coord hl, 0, 8
+ ld b, $50
+ call .PlaceRow
+
+; bottom row
+ coord hl, 0, 16
+ ld b, $54
+ call .PlaceRow
+ ret
+
+.PlaceRow:
+ xor a
+ ld c, SCREEN_WIDTH
+.loop
+ and $03
+ or b
+ ld [hli], a
+ inc a
+ dec c
+ jr nz, .loop
+ ret
+