| Index | Manual | Download | Source | Macros | Embedded word Case ins.
Sitemap | Links | Forum | Tests | Projects

# Test t2800: Pseudoinstruction %MACRO

Tested procedures
  PseudopcMACRO PseudopcENDMACRO PseudopcDROPMACRO

Source & expected listing t2800.htm.lst
  `| |EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=16,LISTMACRO=OFF,LISTVAR=OFF,WARN=2512,WARN=2101 | |t2800 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF,LISTGLOBALS=OFF,IMAGEBASE=0 |[BIN] |[BIN] SEGMENT WIDTH=16, PURPOSE=DATA |0000: | | |Def %MACRO Value ; Definition of macro "Def". | | D %Value | | %ENDMACRO Def |0000: | |0000: | Def "text" ; Expansion of macro "Def". |0004: | Def WORD 0x11 |0006: | | |Def %MACRO ; Intentional redefining of macro "Def". |## W2512 Overwriting macro "Def" previously defined at "t2800.htm"{58}. | | NOP | | %ENDMACRO Def |0006: | |0006: | Def ; Expansion of redefined macro "Def". |0007: | Def WORD 0x11 |0008: | | | %DROPMACRO Def ; Cancel definition of macro "Def". |0008: | |0008: | Def ; "Def" is no longer a macro, it will be treated as a symbol definition. |## W2101 Symbol "Def" was defined but never used. | | ENDPROGRAM t2800`

Expected messages t2800.out
  `I0180 Assembling source file "t2800.htm". I0270 Assembling source "t2800". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t2800". "t2800.htm"{55} I0510 Assembling program pass 1. "t2800.htm"{55} W2512 Overwriting macro "Def" previously defined at "t2800.htm"{58}. "t2800.htm"{65} I0510 Assembling program pass 2. "t2800.htm"{55} W2512 Overwriting macro "Def" previously defined at "t2800.htm"{58}. "t2800.htm"{65} I0530 Assembling program pass 3 - final. "t2800.htm"{55} W2512 Overwriting macro "Def" previously defined at "t2800.htm"{58}. "t2800.htm"{65} W2101 Symbol "Def" was defined but never used. "t2800.htm"{75} I0660 16bit TINY BIN file "t2800.bin" created, size=8. "t2800.htm"{77} I0650 Program "t2800" assembled in 3 passes with errorlevel 2. "t2800.htm"{77} I0750 Source "t2800" (105 lines) assembled in 2 passes with errorlevel 2. I0860 Listing file "t2800.htm.lst" created, size=1158. I0990 EuroAssembler terminated with errorlevel 2.`

Expected output file t2800. bin

      0000: 74 65 78 74 11 00 90 90                          text·°¤¤

▲Back to the top▲