×   Main Menu ALL The 8BS News Manuals (New menu) Links Worth a Look Tools Disc and Basic Webring Site Map 8BS Guestbook Old Guest Book Me The Barnsley Rovers   
8-Bit Software

The BBC and Master Computer Public Domain Library

9DEC '<>' operator

Submitted by Steve Fewell

Description:

Increment the Text Pointer B offset (so that the next character is the character
after the '>').

Call &9CC9 to Compare the current value with the second value and set the flags
according to which value is greater, or whether the values are equal.

If the zero flag is not set then the values are not equal, so set the IWA to TRUE.
Otherwise, set the IWA to FALSE.
Exit with A = #&40 (as we are currently handling an Integer value).


Disassembly for the '<>' Operator routine

9DEC   230 027 E6 1B INC &1B
9DEE   032 201 156 20 C9 9C JSR &9CC9 Compare Values
9DF1   208 206 D0 CE BNE -50 --> &9DC1 Set TRUE
9DF3   128 205 80 CD BRA -51 --> &9DC2 Set FALSE

 


 Back to 8BS
Or