EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t2881: Pseudoinstruction %SETX


Tested procedures
PseudopcSETX   PseudopcSET2  
Source file t2881.asm
      EUROASM LIST=ON,DUMP=ON,DUMPALL=YES,DUMPWIDTH=20, \
              AUTOALIGN=OFF,LISTVAR=ON,LISTREPEAT=ON
t2881 PROGRAM FORMAT=BIN,LISTMAP=OFF,LISTGLOBALS=OFF
  %Var1 %SET  A
  %Var2 %SET  B
 %%Var3 %SETX C
;;
n %FOR 1..3
    %Name      %SET2 %%Var%n
    %%Letter%n %SETX %Name
  %ENDFOR n
;;
  DB "%Letter1","%Letter2","%Letter3"
        %DISPLAY UserVariables
      ENDPROGRAM t2881
Expected listing t2881.asm.lst
| | EUROASM LIST=ON,DUMP=ON,DUMPALL=YES,DUMPWIDTH=20, \ | | AUTOALIGN=OFF,LISTVAR=ON,LISTREPEAT=ON | |t2881 PROGRAM FORMAT=BIN,LISTMAP=OFF,LISTGLOBALS=OFF |41 | %Var1 %SET A |42 | %Var2 %SET B |43 | %%Var3 %SETX C | |;; |31 |n %FOR 1..3 |41 | %Name %SET2 %%Var%n | !%Name %SET2 %Var1 |41 | %%Letter%n %SETX %Name | !%Letter1 %SETX A | + %ENDFOR n |32 +n %FOR 1..3 |42 + %Name %SET2 %%Var%n | !%Name %SET2 %Var2 |42 + %%Letter%n %SETX %Name | !%Letter2 %SETX B | + %ENDFOR n |33 +n %FOR 1..3 |43 + %Name %SET2 %%Var%n | !%Name %SET2 %Var3 |43 + %%Letter%n %SETX %Name | !%Letter3 %SETX C | + %ENDFOR n | +n %FOR 1..3 | + %Name %SET2 %%Var%n | + %%Letter%n %SETX %Name | | %ENDFOR n | |;; |[DATA] ::::Section changed. |0000:414243 | DB "%Letter1","%Letter2","%Letter3" | !DB "A","B","C" | | %DISPLAY UserVariables | !%DISPLAY UserVariables |# D1750 **** %DISPLAY UserVariables=%* |# D1770 name="%Letter1",value="A",size=1 |# D1770 name="%Letter2",value="B",size=1 |# D1770 name="%Letter3",value="C",size=1 |# D1770 name="%Name",value="C",size=1 |# D1770 name="%Var1",value="A",size=1 |# D1770 name="%Var2",value="B",size=1 |# D1770 name="%Var3",value="C",size=1 |# D1790 **** End of %DISPLAY | | ENDPROGRAM t2881
Expected messages t2881.out
I0180 Assembling source file "t2881.asm". I0270 Assembling source "t2881". I0310 Assembling source pass 1. D1750 **** %DISPLAY UserVariables=%* "t2881.asm"{14} D1790 **** End of %DISPLAY "t2881.asm"{14} I0330 Assembling source pass 2 - final. I0470 Assembling program "t2881". "t2881.asm"{3} I0510 Assembling program pass 1. "t2881.asm"{3} D1750 **** %DISPLAY UserVariables=%* "t2881.asm"{14} D1770 name="%Letter1",value="A",size=1 "t2881.asm"{14} D1770 name="%Letter2",value="B",size=1 "t2881.asm"{14} D1770 name="%Letter3",value="C",size=1 "t2881.asm"{14} D1770 name="%Name",value="C",size=1 "t2881.asm"{14} D1770 name="%Var1",value="A",size=1 "t2881.asm"{14} D1770 name="%Var2",value="B",size=1 "t2881.asm"{14} D1770 name="%Var3",value="C",size=1 "t2881.asm"{14} D1790 **** End of %DISPLAY "t2881.asm"{14} I0530 Assembling program pass 2 - final. "t2881.asm"{3} D1750 **** %DISPLAY UserVariables=%* "t2881.asm"{14} D1770 name="%Letter1",value="A",size=1 "t2881.asm"{14} D1770 name="%Letter2",value="B",size=1 "t2881.asm"{14} D1770 name="%Letter3",value="C",size=1 "t2881.asm"{14} D1770 name="%Name",value="C",size=1 "t2881.asm"{14} D1770 name="%Var1",value="A",size=1 "t2881.asm"{14} D1770 name="%Var2",value="B",size=1 "t2881.asm"{14} D1770 name="%Var3",value="C",size=1 "t2881.asm"{14} D1790 **** End of %DISPLAY "t2881.asm"{14} I0660 16bit TINY BIN file "t2881.bin" created, size=3. "t2881.asm"{15} I0650 Program "t2881" assembled in 2 passes with errorlevel 1. "t2881.asm"{15} I0750 Source "t2881" (15 lines) assembled in 2 passes with errorlevel 1. I0860 Listing file "t2881.asm.lst" created, size=1925. I0990 EuroAssembler terminated with errorlevel 1.

▲Back to the top▲