···3737 ; Turn the LCD off
3838 xor a
3939 ld [rLCDC], a
4040+4141+ ; Load our common text font into VRAM
4242+ call LoadTextFontIntoVRAM
40434144 ; Turn the LCD on
4245 ld a, LCDCF_ON | LCDCF_BGON | LCDCF_OBJON
···11+SECTION "Text", ROM0
22+33+textFontTileData: INCBIN "src/generated/backgrounds/text-font.2bpp"
44+textFontTileDataEnd:
55+66+LoadTextFontIntoVRAM::
77+ ; Copy the tile data
88+ ld de, textFontTileData
99+ ld hl, $9000
1010+ ld bc, textFontTileDataEnd - textFontTileData
1111+ jp CopyDEIntoMemoryAtHL
1212+ ret
1313+1414+DrawTextTilesLoop::
1515+ ; Check for the end of string character 255
1616+ ld a, [hl]
1717+ cp 255
1818+ ret z
1919+2020+ ; Write the current character (in hl) to the address
2121+ ; on the tilemap (in de)
2222+ ld a, [hl]
2323+ ld [de], a
2424+2525+ inc hl
2626+ inc de
2727+2828+ ; move to the next character and next background tile
2929+ jp DrawTextTilesLoop