×   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

9E07 '>=' 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 carry flag is set then the first value is greater than or equal to the second,
so set the IWA to TRUE; otherwise, the first value is not greater than or equal to the second,
so set the IWA to FALSE.
Exit with A = #&40 (as we are currently handling an Integer value).


Disassembly for the '>=' Operator routine

9E07   230 027 E6 1B INC &1B
9E09   032 201 156 20 C9 9C JSR &9CC9 Compare Values
9E0C   176 179 B0 B3 BCS -77 --> &9DC1 Set TRUE
9E0E   128 178 80 B2 BRA -78 --> &9DC2 Set FALSE

 


 Back to 8BS
Or