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

# Test t2602: Pseudoinstruction %IF nesting

Tested procedures
  PseudopcIF PseudopcELSE PseudopcENDIF LstBoolean

Source & expected listing t2602.htm.lst
  `| | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=16 | |t2602 PROGRAM FORMAT=BIN,LISTMAP=OFF,LISTGLOBALS=OFF,IMAGEBASE=0 |[BIN] |[BIN] SEGMENT WIDTH=16,PURPOSE=DATA |0000:11 | DB 0x11 ; Emitted data. |TRUE |Outer %IF 1 |0001:22 | DB 0x22 ; Emitted. |FALSE | %ELSE Outer | | DB 0x33 ; Not emitted. | |Inner %IF 0 | | DB 0x44 ; Not emitted. | | %ELSE Inner | | DB 0x55 ; Not emitted. | | %ENDIF Inner | | DB 0x66 ; Not emitted. | | %ENDIF Outer |0002:77 | DB 0x77 ; Emitted. |FALSE |Outer %IF 0 | | DB 0x88 ; Not emitted. |TRUE | %ELSE Outer |0003:99 | DB 0x99 ; Emitted. |FALSE |Inner %IF 0 | | DB 0xAA ; Not Emitted. |TRUE | %ELSE Inner |0004:BB | DB 0xBB ; Emitted. | | %ENDIF Inner |0005:CC | DB 0xCC ; Emitted. | | %ENDIF Outer |0006:DD | DB 0xDD ; Emitted. | | ENDPROGRAM t2602`

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

Expected output file t2602. bin

      0000: 11 22 77 99 BB CC DD                             ·"w¤¤¤¤

▲Back to the top▲