From: d83@ath.forthnet.gr (Don Schullian)
Subject: Re: 'CF' & Interrupt List
On Sun, 17 May 1998 23:00:48 GMT, pb@excelsior.xs4all.nl.REMOVE-THIS (Marc
an
den Dikkenberg) wrote:
>
>I'm using Ralf Brown's interrupt list to do some low-level thing with
>PowerBasic... So far,e verything works the way it should.
>
>I'm wondering about one thing, though: in a lot of entries, a 'CF' is
>mentioned, mostly for detecting whether or not the operation was succesful.
>'CF set on error' / 'CF clear if succesful'
>
>Are they talking about CX, part of CX, or something totally different?
>As far as I'm aware, there is no 'CF' register... Or is there?
Nope, CF is the carry flag. It is BIT 0 of REG(0) so to test if CF is set
IF ( REG(0) AND 1 ) = 1 THEN .....
____ _ ____ ____ _____
| _ \ / \ / ___) __ | ___)(_ _)
| |_) / _ \ \____\/ \| _) | |
|____//_/ \_\(____/\__/|_| |_|
Reply to: d83@ath.forthnet.gr
www.basicguru.com/schullian
*** QwkNews (tm) v2.1
* [TN71] alt.lang.powerbasic POWER_BAS Gateway
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/560.2)
|