[A83] Re: Putsprite w/o xor


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

[A83] Re: Putsprite w/o xor




using or instead of xor wouldn't work for what he wants.  If he had or in
his example, the screen would remain completly black instead of getting
this:
0011110011111111
0100001011111111
0100001011111111
0100001011111111
0100001011111111
0100001011111111
0100001011111111
0011110011111111
if the screen was originally all white, 'and' would do the exact
opposite-you would end up with a completly white screen after the
putsprite.  he needs a bitmasked sprite routine.

----------------------------------------------
Original Message
From: ""<SOCCERK121@aol.com>
Subject: [A83] Re: Putsprite w/o xor
Date: Thu, 12 Apr 2001 19:52:12 EDT

>use an and/or routine.  it copies your data directly to the buffer.  the 
>easiest way I have found to do this, is by copying joe w's routine and 
>modifying it:
>1) look in ionf.z80 for the putsprite routine
>2) copy it into your program
>3) where you find "xor e" and "xor d", replace with:
>and e
>or e
>and....
>and d
>or d
>
>then, call that routine instead of putsprite!
>
>email with anymore probs
>
>
>
>

_____________________________________________
Free email with personality! Over 200 domains!
http://www.MyOwnEmail.com