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

# Test t7221: Macro with %SHIFT

Source & expected listing t7221.htm.lst
  `| | EUROASM DUMP=ON, DUMPALL=YES, DUMPWIDTH=16, \ | | LIST=ON, LISTVAR=NO, LISTMACRO=YES | |t7221 PROGRAM FORMAT=BIN, LISTMAP=OFF, LISTGLOBALS=OFF |[DATA] |[DATA] | |Sample %MACRO | | DB %1 | | %SHIFT | | DB %1 | | %SHIFT 0 | | DB %1 | | %SHIFT 1 | | DB %1 | | %SHIFT 2 | | DB %1 | | %SHIFT 4 | | DB %1 | | %SHIFT -5 | | DB %1 | | %ENDMACRO Sample | |;; |0000: |Sample 0x11,0x22,0x33,0x44,0x55,0x66,0x77 ; Expected expansion: DB 0x11,0x22,0x22,0x33,0x55,,0x44 | +Sample %MACRO |0000:11 + DB %1 | + %SHIFT |0001:22 + DB %1 | + %SHIFT 0 |0002:22 + DB %1 | + %SHIFT 1 |0003:33 + DB %1 | + %SHIFT 2 |0004:55 + DB %1 | + %SHIFT 4 |0005: + DB %1 | + %SHIFT -5 |0005:44 + DB %1 | + %ENDMACRO Sample | | ENDPROGRAM t7221`

Expected messages t7221.out
  `I0180 Assembling source file "t7221.htm". I0270 Assembling source "t7221". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t7221". "t7221.htm"{43} I0510 Assembling program pass 1. "t7221.htm"{43} I0530 Assembling program pass 2 - final. "t7221.htm"{43} I0660 16bit TINY BIN file "t7221.bin" created, size=6. "t7221.htm"{77} I0650 Program "t7221" assembled in 2 passes with errorlevel 0. "t7221.htm"{77} I0750 Source "t7221" (95 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t7221.htm.lst" created, size=1390. I0990 EuroAssembler terminated with errorlevel 0.`

▲Back to the top▲