Re: LZ: Help with a routine
[Prev][Next][Index][Thread]
Re: LZ: Help with a routine
On Thu, 19 Sep 1996, Ryan Myers wrote:
> I need to know how to use the BIT opcode... the specific routine requires me
> to test the MSB (first bit) of a byte and branch if it is 1. Can someone
> please fill me in?
For RAM, there are two forms you can use:
BIT 1,(HL)
BIT 1,(IX + offset) ; or you can use IY instead.
This will set the Z flag to 1 if the bit you're testing is a 0.
HTH,
Dan Knapp
/***********************************
* Daniel Knapp *
* FeatherWate Software *
* email: dankna@bergen.org *
* *
* Whose account this is, *
* I think I know. *
* The sysop is in Berkely, though. *
* She will not see me typing here, *
* To watch this Mac *
* Refuse to go. *
***********************************/
References: