A85: Re: Code for Put_Pixel


[Prev][Next][Index][Thread]

A85: Re: Code for Put_Pixel




Here's the FIND_PIXEL code: (I dunno whether it's the original, just cut it
out of Balloon)

BitTable:
.db $80,$40,$20,$10,$08,$04,$02,$01

MY_FIND_PIXEL:
dec C
ld HL, &BitTable
ld D, 0
ld A, B
and 7
ld E, A
add HL, DE
ld E, (HL)
ld H, D
srl B
srl B
srl B
ld A, C
add A, A
add A, A
ld L, A
add HL, HL
add HL, HL
ld A, E
ld E, B
add HL, DE
ld  DE, GRAPH_MEM
add HL, DE
ret

Hope this helps.


BTW, I recently worked a bit on a new version of XC-1701. I may release it
soon, but I'm too busy/lazy to make new levels.
    Andreas



Follow-Ups: