EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t1230: Chained and nested HEAD..ENDHEAD


Description
Inclusion of multiple HEAD/ENDHEAD blocks.
Tested procedures
PseudoINCLUDEHEAD   PseudoHEAD   PseudoENDHEAD   ChunkSubHead  
Included file 1 t1230.i.asm
 DB 0x11
i1 HEAD ; Single HEAD..ENDHEAD block.
   DB 0x12
  ENDHEAD i1
  DB 0x13

Included file 2 t1230.j.asm
   DB 0x21
j1 HEAD
    DB 0x22
  j2 HEAD ; Nested second HEAD..ENDHEAD block.
      DB 0x23
     ENDHEAD j2
    DB 0x24
   ENDHEAD j1
  DB 0x25
Included file 3 t1230.k.asm
   DB 0x31
k1 HEAD
    DB 0x32
   ENDHEAD k1
   DB 0x33
k2 HEAD ; Chained second HEAD..ENDHEAD block.
    DB 0x34
   ENDHEAD k2
   DB 0x35
Source file t1230.asm
 EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=32, LISTINCLUDE=ON
t1230 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF,LISTGLOBALS=OFF
[BIN] SEGMENT WIDTH=16,PURPOSE=DATA
 DB 0x00
 INCLUDEHEAD1 "t1230.i.asm"
 DB 0x01
 INCLUDEHEAD1 "t1230.j.asm"
 DB 0x02
 INCLUDEHEAD1 "t1230.?.asm" ; Only file "t1230.k.asm" is left not-included-yet.
 DB 0x03
 %DISPLAY CHUNKS
 ENDPROGRAM t1230
Expected listing t1230.asm.lst
| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=32, LISTINCLUDE=ON | |t1230 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF,LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT WIDTH=16,PURPOSE=DATA |0000:00 | DB 0x00 |0001: * INCLUDEHEAD1 "t1230.i.asm" |0001: * INCLUDEHEAD1 ".\t1230.i.asm" | |i1 HEAD ; Single HEAD..ENDHEAD block. |0001:12 | DB 0x12 |0002: | ENDHEAD i1 |0002:01 | DB 0x01 |0003: * INCLUDEHEAD1 "t1230.j.asm" |0003: * INCLUDEHEAD1 ".\t1230.j.asm" | |j1 HEAD |0003:22 | DB 0x22 | | j2 HEAD ; Nested second HEAD..ENDHEAD block. |0004:23 | DB 0x23 |0005: | ENDHEAD j2 |0005:24 | DB 0x24 |0006: | ENDHEAD j1 |0006:02 | DB 0x02 |0007: * INCLUDEHEAD1 "t1230.?.asm" ; Only file "t1230.k.asm" is left not-included-yet. |0007: * INCLUDEHEAD1 ".\t1230.i.asm" |0007: * INCLUDEHEAD1 ".\t1230.j.asm" |0007: * INCLUDEHEAD1 ".\t1230.k.asm" | |k1 HEAD |0007:32 | DB 0x32 |0008: | ENDHEAD k1 | |k2 HEAD ; Chained second HEAD..ENDHEAD block. |0008:34 | DB 0x34 |0009: | ENDHEAD k2 |0009:03 | DB 0x03 | | %DISPLAY CHUNKS |# D1200 **** %DISPLAY Chunks |# D1210 "t1230.asm",src=envelope,type=source,size=16,contents='t1230: PROGRAM' |# D1210 "t1230.asm"{1..4},src=main,type=source,size=178,contents='EUROASM LIST=~~ATA DB 0x00' |# D1210 "t1230.asm"{5},src=main,type=orig,size=29,contents='INCLUDEHEAD1 "t1230.i.asm"' |# D1210 ".\t1230.i.asm",src=main,type=resolved,size=31,contents='INCLUDEHEAD1 ".\t1230.i.asm"' |# D1210 ".\t1230.i.asm"{2..4},src=included,type=source,size=65,contents='i1 HEAD ; Sin~~ ENDHEAD i1' |# D1210 "t1230.asm"{6},src=main,type=source,size=10,contents='DB 0x01' |# D1210 "t1230.asm"{7},src=main,type=orig,size=29,contents='INCLUDEHEAD1 "t1230.j.asm"' |# D1210 ".\t1230.j.asm",src=main,type=resolved,size=31,contents='INCLUDEHEAD1 ".\t1230.j.asm"' |# D1210 ".\t1230.j.asm"{2..8},src=included,type=source,size=130,contents='j1 HEAD ~~ ENDHEAD j1' |# D1210 "t1230.asm"{8},src=main,type=source,size=10,contents='DB 0x02' |# D1210 "t1230.asm"{9},src=main,type=orig,size=81,contents='INCLUDEHEAD1 ~~included-yet.' |# D1210 ".\t1230.i.asm",src=main,type=skipped,size=31,contents='INCLUDEHEAD1 ".\t1230.i.asm"' |# D1210 ".\t1230.j.asm",src=main,type=skipped,size=31,contents='INCLUDEHEAD1 ".\t1230.j.asm"' |# D1210 ".\t1230.k.asm",src=main,type=resolved,size=31,contents='INCLUDEHEAD1 ".\t1230.k.asm"' |# D1210 ".\t1230.k.asm"{2..4},src=included,type=source,size=37,contents='k1 HEAD ~~ ENDHEAD k1' |# D1210 ".\t1230.k.asm"{6..8},src=included,type=source,size=75,contents='k2 HEAD ; Cha~~ ENDHEAD k2' |# D1210 "t1230.asm"{10..12},src=main,type=source,size=47,contents='DB 0x03 %DI~~PROGRAM t1230' |# D1210 "t1230.asm",src=envelope,type=source,size=19,contents='ENDPROGRAM t1230:' |# D1790 **** End of %DISPLAY | | ENDPROGRAM t1230
Expected messages t1230.out
I0180 Assembling source file "t1230.asm". I0270 Assembling source "t1230". I0310 Assembling source pass 1. D1200 **** %DISPLAY Chunks "t1230.asm"{11} D1210 "t1230.asm",src=envelope,type=source,size=16,contents='t1230: PROGRAM' "t1230.asm"{11} D1210 "t1230.asm"{1..12},src=main,type=source,size=384,contents='EUROASM LIST=~~PROGRAM t1230' "t1230.asm"{11} D1210 "t1230.asm",src=envelope,type=source,size=19,contents='ENDPROGRAM t1230:' "t1230.asm"{11} D1790 **** End of %DISPLAY "t1230.asm"{11} I0330 Assembling source pass 2 - final. I0470 Assembling program "t1230". "t1230.asm"{2} I0510 Assembling program pass 1. "t1230.asm"{2} D1200 **** %DISPLAY Chunks "t1230.asm"{11} D1210 "t1230.asm",src=envelope,type=source,size=16,contents='t1230: PROGRAM' "t1230.asm"{11} D1210 "t1230.asm"{1..4},src=main,type=source,size=178,contents='EUROASM LIST=~~ATA DB 0x00' "t1230.asm"{11} D1210 "t1230.asm"{5},src=main,type=orig,size=29,contents='INCLUDEHEAD1 "t1230.i.asm"' "t1230.asm"{11} D1210 ".\t1230.i.asm",src=main,type=resolved,size=31,contents='INCLUDEHEAD1 ".\t1230.i.asm"' "t1230.asm"{11} D1210 ".\t1230.i.asm"{2..4},src=included,type=source,size=65,contents='i1 HEAD ; Sin~~ ENDHEAD i1' "t1230.asm"{11} D1210 "t1230.asm"{6},src=main,type=source,size=10,contents='DB 0x01' "t1230.asm"{11} D1210 "t1230.asm"{7},src=main,type=orig,size=29,contents='INCLUDEHEAD1 "t1230.j.asm"' "t1230.asm"{11} D1210 ".\t1230.j.asm",src=main,type=resolved,size=31,contents='INCLUDEHEAD1 ".\t1230.j.asm"' "t1230.asm"{11} D1210 ".\t1230.j.asm"{2..8},src=included,type=source,size=130,contents='j1 HEAD ~~ ENDHEAD j1' "t1230.asm"{11} D1210 "t1230.asm"{8},src=main,type=source,size=10,contents='DB 0x02' "t1230.asm"{11} D1210 "t1230.asm"{9},src=main,type=orig,size=81,contents='INCLUDEHEAD1 ~~included-yet.' "t1230.asm"{11} D1210 ".\t1230.i.asm",src=main,type=skipped,size=31,contents='INCLUDEHEAD1 ".\t1230.i.asm"' "t1230.asm"{11} D1210 ".\t1230.j.asm",src=main,type=skipped,size=31,contents='INCLUDEHEAD1 ".\t1230.j.asm"' "t1230.asm"{11} D1210 ".\t1230.k.asm",src=main,type=resolved,size=31,contents='INCLUDEHEAD1 ".\t1230.k.asm"' "t1230.asm"{11} D1210 ".\t1230.k.asm"{2..4},src=included,type=source,size=37,contents='k1 HEAD ~~ ENDHEAD k1' "t1230.asm"{11} D1210 ".\t1230.k.asm"{6..8},src=included,type=source,size=75,contents='k2 HEAD ; Cha~~ ENDHEAD k2' "t1230.asm"{11} D1210 "t1230.asm"{10..12},src=main,type=source,size=47,contents='DB 0x03 %DI~~PROGRAM t1230' "t1230.asm"{11} D1210 "t1230.asm",src=envelope,type=source,size=19,contents='ENDPROGRAM t1230:' "t1230.asm"{11} D1790 **** End of %DISPLAY "t1230.asm"{11} I0530 Assembling program pass 2 - final. "t1230.asm"{2} D1200 **** %DISPLAY Chunks "t1230.asm"{11} D1210 "t1230.asm",src=envelope,type=source,size=16,contents='t1230: PROGRAM' "t1230.asm"{11} D1210 "t1230.asm"{1..4},src=main,type=source,size=178,contents='EUROASM LIST=~~ATA DB 0x00' "t1230.asm"{11} D1210 "t1230.asm"{5},src=main,type=orig,size=29,contents='INCLUDEHEAD1 "t1230.i.asm"' "t1230.asm"{11} D1210 ".\t1230.i.asm",src=main,type=resolved,size=31,contents='INCLUDEHEAD1 ".\t1230.i.asm"' "t1230.asm"{11} D1210 ".\t1230.i.asm"{2..4},src=included,type=source,size=65,contents='i1 HEAD ; Sin~~ ENDHEAD i1' "t1230.asm"{11} D1210 "t1230.asm"{6},src=main,type=source,size=10,contents='DB 0x01' "t1230.asm"{11} D1210 "t1230.asm"{7},src=main,type=orig,size=29,contents='INCLUDEHEAD1 "t1230.j.asm"' "t1230.asm"{11} D1210 ".\t1230.j.asm",src=main,type=resolved,size=31,contents='INCLUDEHEAD1 ".\t1230.j.asm"' "t1230.asm"{11} D1210 ".\t1230.j.asm"{2..8},src=included,type=source,size=130,contents='j1 HEAD ~~ ENDHEAD j1' "t1230.asm"{11} D1210 "t1230.asm"{8},src=main,type=source,size=10,contents='DB 0x02' "t1230.asm"{11} D1210 "t1230.asm"{9},src=main,type=orig,size=81,contents='INCLUDEHEAD1 ~~included-yet.' "t1230.asm"{11} D1210 ".\t1230.i.asm",src=main,type=skipped,size=31,contents='INCLUDEHEAD1 ".\t1230.i.asm"' "t1230.asm"{11} D1210 ".\t1230.j.asm",src=main,type=skipped,size=31,contents='INCLUDEHEAD1 ".\t1230.j.asm"' "t1230.asm"{11} D1210 ".\t1230.k.asm",src=main,type=resolved,size=31,contents='INCLUDEHEAD1 ".\t1230.k.asm"' "t1230.asm"{11} D1210 ".\t1230.k.asm"{2..4},src=included,type=source,size=37,contents='k1 HEAD ~~ ENDHEAD k1' "t1230.asm"{11} D1210 ".\t1230.k.asm"{6..8},src=included,type=source,size=75,contents='k2 HEAD ; Cha~~ ENDHEAD k2' "t1230.asm"{11} D1210 "t1230.asm"{10..12},src=main,type=source,size=47,contents='DB 0x03 %DI~~PROGRAM t1230' "t1230.asm"{11} D1210 "t1230.asm",src=envelope,type=source,size=19,contents='ENDPROGRAM t1230:' "t1230.asm"{11} D1790 **** End of %DISPLAY "t1230.asm"{11} I0660 16bit TINY BIN file "t1230.bin" created, size=10. "t1230.asm"{12} I0650 Program "t1230" assembled in 2 passes with errorlevel 1. "t1230.asm"{12} I0750 Source "t1230" (25 lines) assembled in 2 passes with errorlevel 1. I0860 Listing file "t1230.asm.lst" created, size=3648. I0990 EuroAssembler terminated with errorlevel 1.
Expected output file t1230. bin
0000: 00 12 01 22 23 24 02 32 34 03                    °··"#$·24·

▲Back to the top▲