Re: A85: Pixel mover
[Prev][Next][Index][Thread]
Re: A85: Pixel mover
> i probably know this but can't think of what the answer is
> why would
>
> add a, $F9
>
> subtract 7 from a?
Because the last bit would overflow the byte and wind up in the carry.
$F9 is what's called a "two's-complement number" of 7: invert all the bits,
then add 1. Repeate to get 7 back.
___Dan_Knapp____The_Mauve_Baron______________________Beep Blip Bonk_______
<dankna@bergen.org><dankna@brain.mics.net> http://users.bergen.org/~dankna
Visit rec.games.video.classic and find out about Pac-Man's contemporaries!
Schooling is not to impart knowledge, but to impart ability.
References: