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

# Test t1233: Nested INCLUDEHEAD

Description
  Inclusion of HEAD/ENDHEAD block which contains another INCLUDEHEAD.
Tested procedures
  PseudoINCLUDEHEAD ChunkSubHead ChunkInclude

Included file 1 t1233.i.asm

       DB 0xF1
      i1 HEAD
         INCLUDEHEAD "t1233.j.asm"
         DB 0x31
         INCLUDEHEAD "t1233.k.asm" ; W3470 expected.
         INCLUDE "t1233.j.asm"
         DB 0x41
        ENDHEAD i1
        DB 0xF1

Included file 2 t1233.j.asm

         DB 0x42
      j2 HEAD
         INCLUDEHEAD "t1233.k.asm" ; W3470 expected.
         DB 0x22
        ENDHEAD j2
        DB 0x52

Included file 3 t1233.k.asm

      ; Intentionally there is no HEAD block in this file.
       DB 0xF3

Source file t1233.asm

       EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=32, LISTINCLUDE=ON
      t1233 PROGRAM FORMAT=BIN,WIDTH=16,MODEL=TINY,LISTMAP=OFF,LISTGLOBALS=OFF
      [BIN] SEGMENT WIDTH=16,PURPOSE=DATA
       DB 0x00
       INCLUDEHEAD "t1233.i.asm"
       DB 0x60
       %DISPLAY CHUNKS
       ENDPROGRAM t1233

Expected listing t1233.asm.lst
  `| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=32, LISTINCLUDE=ON | |t1233 PROGRAM FORMAT=BIN,WIDTH=16,MODEL=TINY,LISTMAP=OFF,LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT WIDTH=16,PURPOSE=DATA |0000:00 | DB 0x00 |0001: * INCLUDEHEAD "t1233.i.asm" |0001: * INCLUDEHEAD "./t1233.i.asm" | |i1 HEAD |0001: * INCLUDEHEAD "t1233.j.asm" |0001: * INCLUDEHEAD "./t1233.j.asm" | |j2 HEAD |0001: * INCLUDEHEAD "t1233.k.asm" ; W3470 expected. |0001: * INCLUDEHEAD "./t1233.k.asm" |## W3470 No valid HEAD..ENDHEAD block found in the file "./t1233.k.asm". |0001:22 | DB 0x22 |0002: | ENDHEAD j2 |0002:31 | DB 0x31 |0003: * INCLUDEHEAD "t1233.k.asm" ; W3470 expected. |0003: * INCLUDEHEAD "./t1233.k.asm" |## W3470 No valid HEAD..ENDHEAD block found in the file "./t1233.k.asm". |0003: * INCLUDE "t1233.j.asm" |0003: * INCLUDE "./t1233.j.asm" |0003:42 | DB 0x42 | |j2 HEAD |0004: * INCLUDEHEAD "t1233.k.asm" ; W3470 expected. |0004: * INCLUDEHEAD "./t1233.k.asm" |## W3470 No valid HEAD..ENDHEAD block found in the file "./t1233.k.asm". |0004:22 | DB 0x22 |0005: | ENDHEAD j2 |0005:52 | DB 0x52 |0006:41 | DB 0x41 |0007: | ENDHEAD i1 |0007:60 | DB 0x60 | | %DISPLAY CHUNKS |# D1200 **** %DISPLAY Chunks |# D1210 "t1233.asm",src=envelope,type=source,size=16,contents='t1233: PROGRAM' |# D1210 "t1233.asm"{1..4},src=main,type=source,size=178,contents='EUROASM LIST=ON, DUMP=O~~,PURPOSE=DATA DB 0x00' |# D1210 "t1233.asm"{5},src=main,type=orig,size=28,contents='INCLUDEHEAD "t1233.i.asm"' |# D1210 "./t1233.i.asm",src=main,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.i.asm"' |# D1210 "./t1233.i.asm"{2},src=included,type=source,size=9,contents='i1 HEAD' |# D1210 "./t1233.i.asm"{3},src=included,type=orig,size=30,contents='INCLUDEHEAD "t1233.j.asm"' |# D1210 "./t1233.j.asm",src=included,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.j.asm"' |# D1210 "./t1233.j.asm"{2},src=included,type=source,size=9,contents='j2 HEAD' |# D1210 "./t1233.j.asm"{3},src=included,type=orig,size=48,contents='INCLUDEHEAD "t1233.k.asm" ; W3470 expected.' |# D1210 "./t1233.k.asm",src=included,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.k.asm"' |# D1210 "./t1233.k.asm",src=main,type=W3470,size=13,contents='./t1233.k.asm' |# D1210 "./t1233.j.asm"{4..5},src=included,type=source,size=26,contents='DB 0x22 ENDHEAD j2' |# D1210 "./t1233.i.asm"{4},src=included,type=source,size=12,contents='DB 0x31' |# D1210 "./t1233.i.asm"{5},src=included,type=orig,size=48,contents='INCLUDEHEAD "t1233.k.asm" ; W3470 expected.' |# D1210 "./t1233.k.asm",src=included,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.k.asm"' |# D1210 "./t1233.k.asm",src=main,type=W3470,size=13,contents='./t1233.k.asm' |# D1210 "./t1233.i.asm"{6},src=included,type=source,size=0,contents='' |# D1210 "./t1233.i.asm"{6},src=included,type=orig,size=26,contents='INCLUDE "t1233.j.asm"' |# D1210 "./t1233.j.asm",src=included,type=resolved,size=26,contents='INCLUDE "./t1233.j.asm"' |# D1210 "./t1233.j.asm"{1..2},src=included,type=source,size=21,contents='DB 0x42 j2 HEAD' |# D1210 "./t1233.j.asm"{3},src=included,type=orig,size=48,contents='INCLUDEHEAD "t1233.k.asm" ; W3470 expected.' |# D1210 "./t1233.k.asm",src=included,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.k.asm"' |# D1210 "./t1233.k.asm",src=main,type=W3470,size=13,contents='./t1233.k.asm' |# D1210 "./t1233.j.asm"{4..6},src=included,type=source,size=37,contents='DB 0x22 ENDHEAD j2 DB 0x52' |# D1210 "./t1233.i.asm"{7..8},src=included,type=source,size=26,contents='DB 0x41 ENDHEAD i1' |# D1210 "t1233.asm"{6..8},src=main,type=source,size=47,contents='DB 0x60 %DISPLAY CHUNKS ENDPROGRAM t1233' |# D1210 "t1233.asm",src=envelope,type=source,size=19,contents='ENDPROGRAM t1233:' |# D1790 **** End of %DISPLAY | | ENDPROGRAM t1233`

Expected messages t1233.out
  `I0180 Assembling source file "t1233.asm". I0270 Assembling source "t1233". I0310 Assembling source pass 1. D1200 **** %DISPLAY Chunks "t1233.asm"{7} D1210 "t1233.asm",src=envelope,type=source,size=16,contents='t1233: PROGRAM' "t1233.asm"{7} D1210 "t1233.asm"{1..8},src=main,type=source,size=253,contents='EUROASM LIST=ON, DUMP=O~~UNKS ENDPROGRAM t1233' "t1233.asm"{7} D1210 "t1233.asm",src=envelope,type=source,size=19,contents='ENDPROGRAM t1233:' "t1233.asm"{7} D1790 **** End of %DISPLAY "t1233.asm"{7} I0330 Assembling source pass 2 - final. I0470 Assembling program "t1233". "t1233.asm"{2} I0510 Assembling program pass 1. "t1233.asm"{2} W3470 No valid HEAD..ENDHEAD block found in the file "./t1233.k.asm". W3470 No valid HEAD..ENDHEAD block found in the file "./t1233.k.asm". W3470 No valid HEAD..ENDHEAD block found in the file "./t1233.k.asm". D1200 **** %DISPLAY Chunks "t1233.asm"{7} D1210 "t1233.asm",src=envelope,type=source,size=16,contents='t1233: PROGRAM' "t1233.asm"{7} D1210 "t1233.asm"{1..4},src=main,type=source,size=178,contents='EUROASM LIST=ON, DUMP=O~~,PURPOSE=DATA DB 0x00' "t1233.asm"{7} D1210 "t1233.asm"{5},src=main,type=orig,size=28,contents='INCLUDEHEAD "t1233.i.asm"' "t1233.asm"{7} D1210 "./t1233.i.asm",src=main,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.i.asm"' "t1233.asm"{7} D1210 "./t1233.i.asm"{2},src=included,type=source,size=9,contents='i1 HEAD' "t1233.asm"{7} D1210 "./t1233.i.asm"{3},src=included,type=orig,size=30,contents='INCLUDEHEAD "t1233.j.asm"' "t1233.asm"{7} D1210 "./t1233.j.asm",src=included,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.j.asm"' "t1233.asm"{7} D1210 "./t1233.j.asm"{2},src=included,type=source,size=9,contents='j2 HEAD' "t1233.asm"{7} D1210 "./t1233.j.asm"{3},src=included,type=orig,size=48,contents='INCLUDEHEAD "t1233.k.asm" ; W3470 expected.' "t1233.asm"{7} D1210 "./t1233.k.asm",src=included,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.k.asm"' "t1233.asm"{7} D1210 "./t1233.k.asm",src=main,type=W3470,size=13,contents='./t1233.k.asm' "t1233.asm"{7} D1210 "./t1233.j.asm"{4..5},src=included,type=source,size=26,contents='DB 0x22 ENDHEAD j2' "t1233.asm"{7} D1210 "./t1233.i.asm"{4},src=included,type=source,size=12,contents='DB 0x31' "t1233.asm"{7} D1210 "./t1233.i.asm"{5},src=included,type=orig,size=48,contents='INCLUDEHEAD "t1233.k.asm" ; W3470 expected.' "t1233.asm"{7} D1210 "./t1233.k.asm",src=included,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.k.asm"' "t1233.asm"{7} D1210 "./t1233.k.asm",src=main,type=W3470,size=13,contents='./t1233.k.asm' "t1233.asm"{7} D1210 "./t1233.i.asm"{6},src=included,type=source,size=0,contents='' "t1233.asm"{7} D1210 "./t1233.i.asm"{6},src=included,type=orig,size=26,contents='INCLUDE "t1233.j.asm"' "t1233.asm"{7} D1210 "./t1233.j.asm",src=included,type=resolved,size=26,contents='INCLUDE "./t1233.j.asm"' "t1233.asm"{7} D1210 "./t1233.j.asm"{1..2},src=included,type=source,size=21,contents='DB 0x42 j2 HEAD' "t1233.asm"{7} D1210 "./t1233.j.asm"{3},src=included,type=orig,size=48,contents='INCLUDEHEAD "t1233.k.asm" ; W3470 expected.' "t1233.asm"{7} D1210 "./t1233.k.asm",src=included,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.k.asm"' "t1233.asm"{7} D1210 "./t1233.k.asm",src=main,type=W3470,size=13,contents='./t1233.k.asm' "t1233.asm"{7} D1210 "./t1233.j.asm"{4..6},src=included,type=source,size=37,contents='DB 0x22 ENDHEAD j2 DB 0x52' "t1233.asm"{7} D1210 "./t1233.i.asm"{7..8},src=included,type=source,size=26,contents='DB 0x41 ENDHEAD i1' "t1233.asm"{7} D1210 "t1233.asm"{6..8},src=main,type=source,size=47,contents='DB 0x60 %DISPLAY CHUNKS ENDPROGRAM t1233' "t1233.asm"{7} D1210 "t1233.asm",src=envelope,type=source,size=19,contents='ENDPROGRAM t1233:' "t1233.asm"{7} D1790 **** End of %DISPLAY "t1233.asm"{7} I0530 Assembling program pass 2 - final. "t1233.asm"{2} W3470 No valid HEAD..ENDHEAD block found in the file "./t1233.k.asm". W3470 No valid HEAD..ENDHEAD block found in the file "./t1233.k.asm". W3470 No valid HEAD..ENDHEAD block found in the file "./t1233.k.asm". D1200 **** %DISPLAY Chunks "t1233.asm"{7} D1210 "t1233.asm",src=envelope,type=source,size=16,contents='t1233: PROGRAM' "t1233.asm"{7} D1210 "t1233.asm"{1..4},src=main,type=source,size=178,contents='EUROASM LIST=ON, DUMP=O~~,PURPOSE=DATA DB 0x00' "t1233.asm"{7} D1210 "t1233.asm"{5},src=main,type=orig,size=28,contents='INCLUDEHEAD "t1233.i.asm"' "t1233.asm"{7} D1210 "./t1233.i.asm",src=main,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.i.asm"' "t1233.asm"{7} D1210 "./t1233.i.asm"{2},src=included,type=source,size=9,contents='i1 HEAD' "t1233.asm"{7} D1210 "./t1233.i.asm"{3},src=included,type=orig,size=30,contents='INCLUDEHEAD "t1233.j.asm"' "t1233.asm"{7} D1210 "./t1233.j.asm",src=included,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.j.asm"' "t1233.asm"{7} D1210 "./t1233.j.asm"{2},src=included,type=source,size=9,contents='j2 HEAD' "t1233.asm"{7} D1210 "./t1233.j.asm"{3},src=included,type=orig,size=48,contents='INCLUDEHEAD "t1233.k.asm" ; W3470 expected.' "t1233.asm"{7} D1210 "./t1233.k.asm",src=included,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.k.asm"' "t1233.asm"{7} D1210 "./t1233.k.asm",src=main,type=W3470,size=13,contents='./t1233.k.asm' "t1233.asm"{7} D1210 "./t1233.j.asm"{4..5},src=included,type=source,size=26,contents='DB 0x22 ENDHEAD j2' "t1233.asm"{7} D1210 "./t1233.i.asm"{4},src=included,type=source,size=12,contents='DB 0x31' "t1233.asm"{7} D1210 "./t1233.i.asm"{5},src=included,type=orig,size=48,contents='INCLUDEHEAD "t1233.k.asm" ; W3470 expected.' "t1233.asm"{7} D1210 "./t1233.k.asm",src=included,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.k.asm"' "t1233.asm"{7} D1210 "./t1233.k.asm",src=main,type=W3470,size=13,contents='./t1233.k.asm' "t1233.asm"{7} D1210 "./t1233.i.asm"{6},src=included,type=source,size=0,contents='' "t1233.asm"{7} D1210 "./t1233.i.asm"{6},src=included,type=orig,size=26,contents='INCLUDE "t1233.j.asm"' "t1233.asm"{7} D1210 "./t1233.j.asm",src=included,type=resolved,size=26,contents='INCLUDE "./t1233.j.asm"' "t1233.asm"{7} D1210 "./t1233.j.asm"{1..2},src=included,type=source,size=21,contents='DB 0x42 j2 HEAD' "t1233.asm"{7} D1210 "./t1233.j.asm"{3},src=included,type=orig,size=48,contents='INCLUDEHEAD "t1233.k.asm" ; W3470 expected.' "t1233.asm"{7} D1210 "./t1233.k.asm",src=included,type=resolved,size=30,contents='INCLUDEHEAD "./t1233.k.asm"' "t1233.asm"{7} D1210 "./t1233.k.asm",src=main,type=W3470,size=13,contents='./t1233.k.asm' "t1233.asm"{7} D1210 "./t1233.j.asm"{4..6},src=included,type=source,size=37,contents='DB 0x22 ENDHEAD j2 DB 0x52' "t1233.asm"{7} D1210 "./t1233.i.asm"{7..8},src=included,type=source,size=26,contents='DB 0x41 ENDHEAD i1' "t1233.asm"{7} D1210 "t1233.asm"{6..8},src=main,type=source,size=47,contents='DB 0x60 %DISPLAY CHUNKS ENDPROGRAM t1233' "t1233.asm"{7} D1210 "t1233.asm",src=envelope,type=source,size=19,contents='ENDPROGRAM t1233:' "t1233.asm"{7} D1790 **** End of %DISPLAY "t1233.asm"{7} I0660 16bit TINY BIN file "t1233.bin" created, size=8. "t1233.asm"{8} I0650 Program "t1233" assembled in 2 passes with errorlevel 3. "t1233.asm"{8} I0750 Source "t1233" (20 lines) assembled in 2 passes with errorlevel 3. I0860 Listing file "t1233.asm.lst" created, size=4609. I0990 EuroAssembler terminated with errorlevel 3.`

Expected output file t1233. bin

      0000: 00 22 31 42 22 52 41 60                          °"1B"RA`

▲Back to the top▲