gameboy/game/game.asm

23 lines
488 B
NASM

INCLUDE "game/text.asm"
SECTION "Game Loop", ROM0
GameLoop:
.wait
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, .wait ; Jump back to waitVBlank if rLY is less than 144
ld de, HelloWorldStr
call StartText
.mainloop
; Start our game loop
call DrawActiveText
call WaitVBlank
jr .mainloop
Section "Hello wrold string", ROM0
HelloWorldStr:
db "Hello, Worl'd.!?", 0