Re: A86: checking set flags


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

Re: A86: checking set flags




Thanks, I never thought to use the bit command on the system flags.  I don't
know why I didn't see that.  It is so easy!
Thanks again!!
--------------
Jbrett
tbarwick@esn.net
http://ww2.esn.net/~tbarwick
I just added a TI-86 page, Check it out!!!
-----Original Message-----
From: ComAsYuAre@aol.com <ComAsYuAre@aol.com>
To: assembly-86@lists.ticalc.org <assembly-86@lists.ticalc.org>
Date: Wednesday, September 02, 1998 6:05 PM
Subject: Re: A86: checking set flags


>
>
>In a message dated 9/2/98 18:00:43, tbarwick@esn.net writes:
>
>>I know this is probably a very easy question for all of you, but how do
>>you check which system flags are set and which ones aren't.  Such as how
>>would you check if 3,(iy+5) is set?
>>
>>Thanks,
>
>
>there are 3 commands you need to know for bit manipulation (sounds much
cooler
>than it is!)
>
>set, res, and bit:
>
>set sets a particular bit (1)
>
>ex:
> set 5,(iy+3)
>
>res resets a particular bit (0)
>
>ex:
> res 5,(iy+3)
>
>bit tests a particular bit (z flag set if bit=0, reset if bit=1)
>
>ex:
> bit 5,(iy+3)
> jp z,bit_is_zero
> jp nz,bit_is_one ;not efficient, but used for demonstration
>