Ax51 User's GuideAx51 Introduction Assembling Programs Writing Assembly Programs Control Statements Macro Processor Standard Macro Processor Standard Macro Controls Defining Standard Macros Calling Standard Macros Local Symbols Exiting a Macro Built-in Macros REPT IRP IRPC Standard Macro Operators NUL Operator & Operator < and > Operators % Operator ;; Operator ! Operator MPL Macro Processor MPL Macro Overview MPL Meta Character Defining MPL Macros Calling MPL Macros Local Symbols Expressions Common Functions Bracket Function Comment Function Escape Function METACHAR Function SET Function EVAL Function Comparison Functions Conditional Functions EXIT Function IF Function REPEAT Function WHILE Function Console I/O Functions String Functions LEN Function MATCH Function SUBSTR Function Advanced Literal Delimiters Blank Delimiters Identifier Delimiters Literal and Normal Modes C Preprocessor Exceptions Side-Effects Predefined Macros Examples Error Messages Appendix
Console I/O Functions
The IN and OUT MPL functions may be used to perform console I/O.
The IN function prompts for input from the console. When called, the IN function displays two greater-than characters ('>>') and waits for input. The IN function is expanded as the text entered on the console. The syntax for the IN function is:
The OUT function writes a specified text string to the console. The OUT function is expanded as a null string. The syntax for the OUT function is:
%OUT (Enter Baud Rate) %SET (BAUD_RATE,%IN) BAUD_RATE = %BAUD_RATE
Enter Baud Rate>>
BAUD_RATE = 19200
of your data.