EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t2700: Pseudoinstruction %WHILE


Tested procedures
PseudopcWHILE   PseudopcENDWHILE  
Source & expected listing t2700.htm.lst
| |EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=20, LISTREPEAT=ON | |t2700 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF,LISTGLOBALS=OFF,IMAGEBASE=0 |[BIN] |[BIN] SEGMENT PURPOSE=DATA |0000:00 | DB 0 ; Ordinary instruction. |31 |%Cnt %SETA 1 ; Initialization of control %variable. |TRUE |Cnt %WHILE %Cnt <= 3 ; Definition of %WHILE block. |0001:01 | DB %Cnt ; Repeated instruction. |32 |%Cnt %SETA %Cnt + 1 ; Mandatory modification of control %variable. | + %ENDWHILE Cnt |TRUE +Cnt %WHILE %Cnt <= 3 ; Definition of %WHILE block. |0002:02 + DB %Cnt ; Repeated instruction. |33 +%Cnt %SETA %Cnt + 1 ; Mandatory modification of control %variable. | + %ENDWHILE Cnt |TRUE +Cnt %WHILE %Cnt <= 3 ; Definition of %WHILE block. |0003:03 + DB %Cnt ; Repeated instruction. |34 +%Cnt %SETA %Cnt + 1 ; Mandatory modification of control %variable. | + %ENDWHILE Cnt |FALSE +Cnt %WHILE %Cnt <= 3 ; Definition of %WHILE block. | + DB %Cnt ; Repeated instruction. | +%Cnt %SETA %Cnt + 1 ; Mandatory modification of control %variable. | | %ENDWHILE Cnt |0004: |; The %WHILE/%ENDWHILE block once again, repated listing disabled. | | EUROASM LISTREPEAT=OFF |TRUE |Cnt %WHILE %Cnt <= 6 ; Definition of %WHILE block. |0004:04 | DB %Cnt ; Repeated instruction. |35 |%Cnt %SETA %Cnt + 1 ; Mandatory modification of control %variable. | | %ENDWHILE Cnt |0007: | |0007:FF | DB 0xFF ; Data marker. | | ENDPROGRAM t2700
Expected messages t2700.out
I0180 Assembling source file "t2700.htm". I0270 Assembling source "t2700". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t2700". "t2700.htm"{52} I0510 Assembling program pass 1. "t2700.htm"{52} I0530 Assembling program pass 2 - final. "t2700.htm"{52} I0660 16bit TINY BIN file "t2700.bin" created, size=8. "t2700.htm"{80} I0650 Program "t2700" assembled in 2 passes with errorlevel 0. "t2700.htm"{80} I0750 Source "t2700" (103 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t2700.htm.lst" created, size=1916. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t2700. bin
0000: 00 01 02 03 04 05 06 FF                          °······¤

▲Back to the top▲