Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- drawSprite_6_Bit:
- ld a,d
- ld b,12
- drawSprite_outerloop:
- inc a \ push af
- push bc
- ld a,e \ out ($10),a \ call lcdwait
- out ($10),a \ call lcdwait
- ld b,2
- drawSprite_innerloop:
- ld a,(hl)
- out ($11),a \ call lcdwait
- djnz drawSprite_innerloop
- pop bc \ pop af
- djnz drawSprite_outerloop
- lcdwait:
- in a,($10) ;bit 7 set if LCD is busy
- rla \ jr c,lcdwait
- ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement