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:
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
There is a hidden assembler directive that we made for one customer: EXPDECNUM. This directive should change the MPL expansions to decimal numbers.
Hello Jon, meanwhile I found out that SET is internally defined as
%*DEFINE(SET(N,V)) (%DEFINE(%N)(%EVAL(%V)))
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:
How about...
%SET (VAL,'0AH')
It doesn't matter if I write
%SET (VAL,10)
%SET (VAL,0AH)
What happens if you try...
View all questions in Keil forum