This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

MPL RADIX

Hello,

is it possible to set the output radix of MPL of A166
from hex to decimal?
Currently this code

%SET (VAL,10)
val_text:	db	'%VAL'
label%VAL:
is expanded to
val_text:	db	'0AH'
label0AH: 
instead of
val_text:	db	'10'
label10: 

I haven't found any RADIX command for MPL in the documentation.
In the A166 manual all MPL examples are shown in decimal
notation.

- Heinz

Parents
  • Hello Jon,

    this is a syntax error. SET requires a numeric value, no string expression. I can use the MPL define as in

    %DEFINE (VAL) (10)
    Label%VAL:
    
    But in this case VAL is a string and can't be used in numeric expressions.
    BTW, what I want is that MPL expands %VAL to decimal 10 and not the hex 0AH as it does.

    - Heinz

Reply
  • Hello Jon,

    this is a syntax error. SET requires a numeric value, no string expression. I can use the MPL define as in

    %DEFINE (VAL) (10)
    Label%VAL:
    
    But in this case VAL is a string and can't be used in numeric expressions.
    BTW, what I want is that MPL expands %VAL to decimal 10 and not the hex 0AH as it does.

    - Heinz

Children
No data