Re: A83: invert part of screen


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

Re: A83: invert part of screen




Stupid me...just use Movax's XOR routines with an all-black sprite. Easy
enough.

If you want to invert, say, the top 8 pixels, across the screen, go like
this:

 ld a,0
 push a
 ld e,0
 ld d,8
loop_start:
 pop a
 push d
 ld bc,Sprite
 call SPRXOR
 add a,8
 pop d
 push a
 dec d
 ld a,d
 jp nz loop_start

;Insert Movax's sprite routines here

Sprite:
.db $FF
.db $FF
.db $FF
.db $FF
.db $FF
.db $FF
.db $FF
.db $FF

Not really a good example of perfect code, but it's past midnight here,
soooo...
--------------------------------------------------
"Open your eyes, open your mouths,
close your hands and make a fist"
--------------------------------------------------
"Eternity, my friend, is a long
fucking time."
 - Unknown
--------------------------------------------------
DreAdFaq
DreAdFaq@gamestats.com
http://descent.telefragged.com
http://descent.gamestats.com






Follow-Ups: