+ section "end",HOME[1024]
+ nop
+
SECTION "a",HOME[$00]
start: jp main
main:
ld a, $FF
- ld [$FF51],a
+ ld c, $51
+ ld [c], a
-; ld a, $04
-; ld [$FFFF], a
-
ld sp, $DFF0
ld a, $04 ;start timer, 4.096KHz
vbl:
lcdc:
PUSH AF
+ PUSH BC
xor a
ld c, $0F
ld [c], a
+ POP BC
POP AF
reti
ld a, $41 ; print A
call putc
.noprint:
- ld hl, $DF81
+ inc [hl]
ld a, [hl]
- add 1
- ld [hl], a
ld c, $51
ld [c], a
ret z
call putc
jr puts
+