EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t8345: Formal variables in %MACRO block


Source file t8345.asm
      EUROASM DUMP=ON, DUMPALL=YES, DUMPWIDTH=32, \
              LIST=ON, LISTVAR=YES, LISTMACRO=YES
t8345 PROGRAM FORMAT=BIN, LISTMAP=OFF, LISTGLOBALS=OFF
Fill %MACRO Where, Stuff=0 ; Definition of macro Fill.
       MOV %Where,%Stuff
     %ENDMACRO Fill
;; Invokations of macro Fill:
   Fill [Counter], Stuff=255 ; Will be assembled as MOV [Counter],255
   Fill EBX                  ; Will be assembled as MOV EBX,0
Counter DW
  ENDPROGRAM t8345
Expected listing t8345.asm.lst
| | EUROASM DUMP=ON, DUMPALL=YES, DUMPWIDTH=32, \ | | LIST=ON, LISTVAR=YES, LISTMACRO=YES | |t8345 PROGRAM FORMAT=BIN, LISTMAP=OFF, LISTGLOBALS=OFF | |Fill %MACRO Where, Stuff=0 ; Definition of macro Fill. | | MOV %Where,%Stuff | | %ENDMACRO Fill | |;; Invokations of macro Fill: |[BIN] ::::Section changed. |0000: | Fill [Counter], Stuff=255 ; Will be assembled as MOV [Counter],255 | +Fill %MACRO Where, Stuff=0 ; Definition of macro Fill. |0000:C706[0C00]FF00 + MOV %Where,%Stuff | !MOV [Counter],255 | + %ENDMACRO Fill |0006: | Fill EBX ; Will be assembled as MOV EBX,0 | +Fill %MACRO Where, Stuff=0 ; Definition of macro Fill. |0006:66BB00000000 + MOV %Where,%Stuff | !MOV EBX,0 | + %ENDMACRO Fill |000C: |Counter DW | | ENDPROGRAM t8345
Expected messages t8345.out
I0180 Assembling source file "t8345.asm". I0270 Assembling source "t8345". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t8345". "t8345.asm"{3} I0510 Assembling program pass 1. "t8345.asm"{3} I0510 Assembling program pass 2. "t8345.asm"{3} I0510 Assembling program pass 3. "t8345.asm"{3} I0530 Assembling program pass 4 - final. "t8345.asm"{3} I0660 16bit TINY BIN file "t8345.bin" created, size=12. "t8345.asm"{11} I0650 Program "t8345" assembled in 4 passes with errorlevel 0. "t8345.asm"{11} I0750 Source "t8345" (11 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t8345.asm.lst" created, size=1357. I0990 EuroAssembler terminated with errorlevel 0.

▲Back to the top▲