here:
Code: Select all
ORG 40000
CALL $daf
;ld a,$16
;rst 16
;ld a,0
;rst 16
;ld a,0
;rst 16
LD A,33
ld b,8
ld c,0
ld d,0
LOOP:
CP 165
RET Z
PUSH AF
RST 16
;ld a,8
;rst 16
ld a,$10
rst 16
ld a,b
add a,-1
rst 16
ld a,$11
rst 16
ld a,c
rst 16
inc c
;ld a,$13
;rst 16
;ld a,d
;rst 16
pop af
INC A
djnz loop
ld b,8
ld c,0
;inc d
jr loop
* look at the bits of code that i have commented out at the bottom