gameboy/game/game.asm

15 lines
356 B
NASM
Raw Normal View History

2019-06-14 08:36:52 +00:00
INCLUDE "game/string.asm"
SECTION "Game Loop", ROM0
GameLoop:
ld b, 0
ld c, 0
ld hl, HelloWorldStr
call PrintString
.lockup
ld a, [rLY] ; Load the current vertical line being rendered
cp 144 ; Check if we're past VBlank (1 to 144 = carry bit set)
jr c, .lockup ; Jump back to waitVBlank if rLY is less than 144
jr .lockup