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

# Test t2573: Pseudoinstruction %COMMENT% mismatched nesting.

Description
  Intentionaly mismatched %COMMENT nesting.

Source & expected listing t2573.htm.lst
  `| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=16 | |t2573 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF,LISTGLOBALS=OFF,IMAGEBASE=0 |[BIN] |[BIN] SEGMENT WIDTH=16,PURPOSE=DATA |0000:EE | DB 0xEE ; Emitted data. | |Outer %COMMENT | | DB 0xCC ; Commented-out data (not emitted). | | %ENDCOMMENT Outer |0001:EE | DB 0xEE ; Emitted data. | |Outer %COMMENT | | DB 0xCC ; Commented-out data (not emitted). | |Inner %COMMENT | | DB 0xDD ; Double-commented-out data (not emitted). | | %ENDCOMMENT Outer ; Intentionally mismatched nesting. |### E7110 Wrong nesting, expected "%ENDCOMMENT Inner". |0002:CC | DB 0xCC ; Commented-out data (not emitted with proper nesting). | | %ENDCOMMENT Outer |### E7120 Wrong nesting, unexpected %ENDCOMMENT. |0003:EE | DB 0xEE ; Emitted data. | | ENDPROGRAM t2573`

Expected messages t2573.out
  `I0180 Assembling source file "t2573.htm". I0270 Assembling source "t2573". I0310 Assembling source pass 1. E7110 Wrong nesting, expected "%ENDCOMMENT Inner". "t2573.htm"{58} E7120 Wrong nesting, unexpected %ENDCOMMENT. "t2573.htm"{61} I0330 Assembling source pass 2 - final. I0470 Assembling program "t2573". "t2573.htm"{47} I0510 Assembling program pass 1. "t2573.htm"{47} E7110 Wrong nesting, expected "%ENDCOMMENT Inner". "t2573.htm"{58} E7120 Wrong nesting, unexpected %ENDCOMMENT. "t2573.htm"{61} I0530 Assembling program pass 2 - final. "t2573.htm"{47} E7110 Wrong nesting, expected "%ENDCOMMENT Inner". "t2573.htm"{58} E7120 Wrong nesting, unexpected %ENDCOMMENT. "t2573.htm"{61} I0660 16bit TINY BIN file "t2573.bin" created, size=4. "t2573.htm"{64} I0650 Program "t2573" assembled in 2 passes with errorlevel 7. "t2573.htm"{64} I0750 Source "t2573" (93 lines) assembled in 2 passes with errorlevel 7. I0860 Listing file "t2573.htm.lst" created, size=1070. I0990 EuroAssembler terminated with errorlevel 7.`

Expected output file t2573. bin

      0000: EE EE CC EE                                      ¤¤¤¤

▲Back to the top▲