• A51: mixing C-preprocessor and MPL
    Hi, I'm having difficulties using MPL (macros) and the C-style preprocessor in A51 (6.12). Whenever I use #define (C-style prepro) to declare something and activate MPL (cmdline opt: MPL; uV2: Project...
  • MPL macros in C source
    Is it possible? To use (invoke) a MPL macro in C source. Something like: __asm { ....... %*DEFINE (PackMyData ()) LOCAL end1( MOV R2,[R4] JNB R2.3,%end1 BSET T4IC.7 %end1: MOV R2...
  • 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...
  • Code contains birnay number
    I have a question on Uvsion2 IDE. I read a Quick start manual on page 111. It indicates that the compiler accepts binary constant number. When I used it on my code, the compiler did not seem to take...
  • Library containing an ISR
    Hello, Let me start by saying that I have solved the problem I will describe below in what I consider a not so elegant way. I am curious to know why previous attempt I have made failed so here I...