SDR8 Routine
- SDR_8x8:
- ld a,63
- sub c
- ld c,a
- push hl
- call FindPixel
- ld c,8
- add a,a
- dec a
- ld e,a
- ld a,b
- and %00000111
- inc a
- ld b,a
- SDR_8x8_NewRow:
- ex (sp),hl
- ld a,(hl)
- inc hl
- ex (sp),hl
- push bc
- rlca
- SDR_8x8_PrepByte:
- rrca
- djnz SDR_8x8_PrepByte
- ld d,a
- and e
- or (hl)
- ld (hl),a
- inc hl
- ld a,e
- cpl
- and d
- or (hl)
- ld (hl),a
- ld c,$10-1
- add hl,bc
- pop bc
- dec c
- jr nz,SDR_8x8_NewRow
- pop hl
- ret
More from z80 » Graphics
Find a Pixel // Grayscale // Pixel Manipulation // The Screen // Sprites // SDR8 Routine // Tile Maps // TileGen Routine