Re: A82: #?%@! Zero Flag! >=(
[Prev][Next][Index][Thread]
Re: A82: #?%@! Zero Flag! >=(
My coding DID work...it was a flaw elsewhere that made things go a little
haywire. Thanks anyway. Oh, and it can only be xor 255, not 256. There
are 2^8=256, but 0 is considered 1, sooo.. =) xor A crashes my
calculator, btw. Don't know why.
-Scoobie
BrettCGI@aol.com writes:
>In a message dated 97-07-03 15:42:06 EDT, you write:
>
><< ; value of A register is 255
> xor 255 ; now A is 0
> or A ; update flags - Zero SHOULD be set
> jr z, LoopNoDraw ; Relative jump to label LoopNoDraw
>since
> Zero ; Flag is set >>
>
>A sure fire way of clearing a is to do this: xor a. That will clear
>it. (I
>think it might have to be xor 256)
>
>-Brett
>Brett CGI@aol.com
>
References: