Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;HL points to start of the data (palette)
- ld de,mpLcdPalette ;Copy palette
- ld bc,2*64
- ldir
- ld de,vram ;HL now points to the image, which is scaled up 4 times when rendered.
- ld b,60
- renderYLoop:
- push bc
- push hl
- ld b,4
- renderDoubleYLoop:
- pop hl
- push hl
- push bc
- ld b,80
- XrenderLoop:
- ld a,(hl)
- ld (de),a
- inc de
- ld (de),a
- inc de
- ld (de),a
- inc de
- ld (de),a
- inc de
- inc hl
- djnz XrenderLoop
- pop bc
- djnz renderDoubleYLoop
- pop af
- pop bc
- djnz renderYLoop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement