[A83] Re: 8x8 Sprite Routine(mine)
[Prev][Next][Index][Thread]
[A83] Re: 8x8 Sprite Routine(mine)
HELP!
ok, i can get it to xor the sprite just fine, but sence i'm doing masking, i
also need to do a and to it before i xor it to the screen, so heres the
problem:
with a sprite like this:(i'm just doing and right now)
00011000
00100100
01000010
10011001
10011001
01000010
00100100
00011000
on a black background should result in:
00011000
00100100
01000010
10011001
10011001
01000010
00100100
00011000
but instead i get a blank screen when i run it.
this is the code i'm using to and the image(hl is the pointer to the right
area on the screen, de is the pointer to the sprite):
ld a,(de)
and (hl)
ld (hl),a
can anyone help me?
this works just fine with xor, any help would be appreicated