Re: A83: inverse sprite


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

Re: A83: inverse sprite




Use this:

;Input:
;	HL->sprite
;	(SprLegnth)=Legnth of sprite in bytes


	ld	a,(SprLength)
	ld	b,a
Inverse:
	ld	a,(hl)
	xor	$FF
	ld	(hl),a
	djnz	Inverse


<<<<<<<<<<<<<<<<<<<<<<<<<+>>>>>>>>>>>>>>>>>>>>>>>>>
       See ya,
       Mastermind

       http://www.bigfoot.com/~mastermind5


On Tue, 3 Nov 1998 16:51:20 -0800 "Chris Hiszpanski" <mecad@scv.net>
writes:
>
>How can I inverse a sprite? That mean if I have:
>00000000
>00011000
>00011000
>00011000
>00011000
>00011000
>00011000
>00000000
>
>how simple get:
>
>11111111
>11100111
>11100111
>11100111
>11100111
>11100111
>11100111
>11111111
>
>James, maybe you could add this to your sprites section of your 
>tutorial?
>
>From: Chris
>mecad@scv.net
>


___________________________________________________________________
You don't need to buy Internet access to use free Internet e-mail.
Get completely free e-mail from Juno at http://www.juno.com/getjuno.html
or call Juno at (800) 654-JUNO [654-5866]