EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t2420: Pseudoinstruction INCLUDEHEAD


Description
Inclusion of chaned and nested HEAD/ENDHEAD block from another source file.
Tested procedures
PseudoINCLUDEHEAD  
Included file 1 t2420.i.asm
SI1:DB 0x11 ; Out of head, it will not be included.
H1 HEAD
SI2:DB 0x12
   ENDHEAD H1
SI3:DB 0x13  ; Out of head, it will not be included.
H2 HEAD ; More than one head block.
SI4:DB 0x14
HI2 HEAD ; Head blocks may be nested.
SI5: DB 0x15
    ENDHEAD HI2
SI6:DB 0x16
   ENDHEAD H2
SI7:DB 0x17  ; Out of head, it will not be included.
Source file t2420.asm
 EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=32, LISTINCLUDE=OFF, NOWARN=2101
t2420 PROGRAM FORMAT=BIN,LISTMAP=OFF,LISTGLOBALS=OFF
[BIN] SEGMENT WIDTH=16,PURPOSE=DATA
S1:   DB 0x01
      INCLUDEHEAD t2420.i.asm
S2:   DB 0x02
      %DISPLAY Symbols=S*
 ENDPROGRAM t2420
Expected listing t2420.asm.lst
| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=32, LISTINCLUDE=OFF, NOWARN=2101 | |t2420 PROGRAM FORMAT=BIN,LISTMAP=OFF,LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT WIDTH=16,PURPOSE=DATA |0000:01 |S1: DB 0x01 |0001: | INCLUDEHEAD t2420.i.asm |0001: * INCLUDEHEAD ".\t2420.i.asm" |0005:02 |S2: DB 0x02 | | %DISPLAY Symbols=S* |# D1400 **** %DISPLAY Symbols=S* |# D1450 S1,[BIN]:00000000h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.asm"{4} |# D1450 S2,[BIN]:00000005h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.asm"{6} |# D1450 SI2,[BIN]:00000001h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.i.asm"{3} |# D1450 SI4,[BIN]:00000002h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.i.asm"{7} |# D1450 SI5,[BIN]:00000003h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.i.asm"{9} |# D1450 SI6,[BIN]:00000004h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.i.asm"{11} |# D1790 **** End of %DISPLAY | | ENDPROGRAM t2420
Expected messages t2420.out
I0180 Assembling source file "t2420.asm". I0270 Assembling source "t2420". I0310 Assembling source pass 1. D1400 **** %DISPLAY Symbols=S* "t2420.asm"{7} D1450 STACK,[STACK]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src= "t2420.asm"{7} D1790 **** End of %DISPLAY "t2420.asm"{7} I0330 Assembling source pass 2 - final. I0470 Assembling program "t2420". "t2420.asm"{2} I0510 Assembling program pass 1. "t2420.asm"{2} D1400 **** %DISPLAY Symbols=S* "t2420.asm"{7} D1450 S1,[BIN]:00000000h,type='B',size=1,scope='S',ref='N',fix=N,src="t2420.asm"{4} "t2420.asm"{7} D1450 S2,[BIN]:00000005h,type='B',size=1,scope='S',ref='N',fix=N,src="t2420.asm"{6} "t2420.asm"{7} D1450 SI2,[BIN]:00000001h,type='B',size=1,scope='S',ref='N',fix=N,src="t2420.i.asm"{3} "t2420.asm"{7} D1450 SI4,[BIN]:00000002h,type='B',size=1,scope='S',ref='N',fix=N,src="t2420.i.asm"{7} "t2420.asm"{7} D1450 SI5,[BIN]:00000003h,type='B',size=1,scope='S',ref='N',fix=N,src="t2420.i.asm"{9} "t2420.asm"{7} D1450 SI6,[BIN]:00000004h,type='B',size=1,scope='S',ref='N',fix=N,src="t2420.i.asm"{11} "t2420.asm"{7} D1450 STACK,[STACK]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2420.asm"{2} "t2420.asm"{7} D1790 **** End of %DISPLAY "t2420.asm"{7} I0510 Assembling program pass 2. "t2420.asm"{2} D1400 **** %DISPLAY Symbols=S* "t2420.asm"{7} D1450 S1,[BIN]:00000000h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.asm"{4} "t2420.asm"{7} D1450 S2,[BIN]:00000005h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.asm"{6} "t2420.asm"{7} D1450 SI2,[BIN]:00000001h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.i.asm"{3} "t2420.asm"{7} D1450 SI4,[BIN]:00000002h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.i.asm"{7} "t2420.asm"{7} D1450 SI5,[BIN]:00000003h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.i.asm"{9} "t2420.asm"{7} D1450 SI6,[BIN]:00000004h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.i.asm"{11} "t2420.asm"{7} D1450 STACK,[STACK]:00000000h,type='A',size=0,scope='S',ref='N',fix=Y,src="t2420.asm"{2} "t2420.asm"{7} D1790 **** End of %DISPLAY "t2420.asm"{7} I0530 Assembling program pass 3 - final. "t2420.asm"{2} D1400 **** %DISPLAY Symbols=S* "t2420.asm"{7} D1450 S1,[BIN]:00000000h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.asm"{4} "t2420.asm"{7} D1450 S2,[BIN]:00000005h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.asm"{6} "t2420.asm"{7} D1450 SI2,[BIN]:00000001h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.i.asm"{3} "t2420.asm"{7} D1450 SI4,[BIN]:00000002h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.i.asm"{7} "t2420.asm"{7} D1450 SI5,[BIN]:00000003h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.i.asm"{9} "t2420.asm"{7} D1450 SI6,[BIN]:00000004h,type='B',size=1,scope='S',ref='N',fix=Y,src="t2420.i.asm"{11} "t2420.asm"{7} D1790 **** End of %DISPLAY "t2420.asm"{7} I0660 16bit TINY BIN file "t2420.bin" created, size=6. "t2420.asm"{8} I0650 Program "t2420" assembled in 3 passes with errorlevel 1. "t2420.asm"{8} I0750 Source "t2420" (17 lines) assembled in 2 passes with errorlevel 1. I0860 Listing file "t2420.asm.lst" created, size=1194. I0990 EuroAssembler terminated with errorlevel 1.
Expected output file t2420. bin
0000: 01 12 14 15 16 02                                ······

▲Back to the top▲