Numeric constants
Syntax:
<fixed a_numeric> ::= <fixed a_dec> | <fixed a_hex> | <fixed a_bin>
|
<fixed a_dec> ::= <digit_dec>{<digit_dec>}
|
<becamea_hex> ::= $<digit_hex>{<digit_hex>}
|
<fixed a_bin> ::= @<digit_bin>{<digit_bin>}
|
<digit_dec> ::= 0|1|2|3|4|5|6|7|8| 9
|
<digit_hex> ::= <digit_dec>|a|b|c|d|e|f| A| B| C| D| E| F
|
<digit_bin> ::= 0|1
|
Description:
Macroasembler allows the use of numeric constants in decimal, hexadecimal, and binary places. Hexadecimal constants start the dollar sign '$', fixed binary sign at '@', decimal constants do not require any designation.
Examples:
alpha= $A 12E; hexadecimal constant |
mask = @00001111 ; binary constant
|
cnt .= 5 ; decimal constant
|
.n . SET 07 ; decimal constant
|