EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t8210: Macro definition


Tested procedures
MacPrototype   MacFind   MacExpand  
Source & expected listing t8210.htm.lst
| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=20, LISTMACRO=OFF | |t8210 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16, \ | | SECTIONALIGN=0,FILEALIGN=0,IMAGEBASE=0,LISTMAP=OFF,LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT PURPOSE=DATA | |Mac1 %MACRO ; Definition of a macro. | | DB 1 | | %ENDMACRO Mac1 |0000:00 | DB 0 ; Data marker. |0001: | Mac1 ; Expansion of macroinstruction. |0002:02 | DB 2 ; Data marker. | | EUROASM LISTMACRO=ON |0003: | Mac1 | +Mac1 %MACRO ; Definition of a macro. |0003:01 + DB 1 | + %ENDMACRO Mac1 |0004:06 | DB 6 ; Data marker. | | ENDPROGRAM t8210
Expected messages t8210.out
I0180 Assembling source file "t8210.htm". I0270 Assembling source "t8210". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t8210". "t8210.htm"{55} I0510 Assembling program pass 1. "t8210.htm"{55} I0530 Assembling program pass 2 - final. "t8210.htm"{55} I0660 16bit TINY BIN file "t8210.bin" created, size=5. "t8210.htm"{70} I0650 Program "t8210" assembled in 2 passes with errorlevel 0. "t8210.htm"{70} I0750 Source "t8210" (93 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t8210.htm.lst" created, size=901. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t8210. bin
0000: 00 01 02 01 06                                   °····

▲Back to the top▲