; 2. Output tile data ld hl,FontData ; Location of tile data ld bc,FontDataEnd-FontData ; Counter for number of bytes to write WriteTilesLoop: ld a,(hl) ; Get data byte out ($be),a ; Output it inc hl ; Add one to hl so it points to the next data byte dec bc ; Decrement the counter and repeat until it's zero ld a,b or c jp nz,WriteTilesLoop