×   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

96A7 Extract Integer result of expression and check for closing bracket

Submitted by Steve Fewell

Description:

This routine calls &ADAC to evaluate the expression contained at the current text
pointer location and check the next character found after the expression (returned in X).
If this character is not a closing bracket ')', then &ADAC generates a "Missing )" error.

exit via routine &96BF (which checks the Return Value Type - converting a Float value to an Integer
and generating Type Mismatch (if the result is a String)).


Disassembly for the Extract Integer result of expression and check for Closing bracket routine

96A7   032 172 173 20 AC AD JSR &ADAC Get result of expression and check for closing bracket
96AA   128 019 80 13 BRA 19 --> Check if Integer (Convert if Float or error if String)

 


 Back to 8BS
Or