We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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:
val_text: db '0AH' label0AH:
val_text: db '10' label10:
It doesn't matter if I write
%SET (VAL,10)
%SET (VAL,0AH)
How about...
%SET (VAL,'0AH')
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:
Hello Jon, meanwhile I found out that SET is internally defined as
%*DEFINE(SET(N,V)) (%DEFINE(%N)(%EVAL(%V)))
There is a hidden assembler directive that we made for one customer: EXPDECNUM. This directive should change the MPL expansions to decimal numbers.
This directive works in A166. Thanks for this hint! My old A51 V5.52b doesn't know this directive. Is it included in a newer A51 also? - Heinz