EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t1220: Suboperation of included files


Description
Inclusion of suboperated files.
Tested procedures
PseudoINCLUDE   ChunkSuboperate  
Included file 1 t1220.i.asm
DB 0x11
DB 0x12,0x13
DB 0x14;DB 0x15
DB 0x16,0x17
DB 0x18,0x19

Source file t1220.asm
 EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=32, LISTINCLUDE=ON
t1220 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF,LISTGLOBALS=OFF
[BIN] SEGMENT WIDTH=16,PURPOSE=DATA
 DB 0x00
 INCLUDE "t1220.i.asm"{3..4} ; 3rd and 4th lines only.
 DB 0x01
 INCLUDE "t1220.i.asm"{%&-2..%&} ; Last 2 lines only.
 DB 0x02
 INCLUDE "t1220.i.asm"{3}[9..] ; Substring starting with 9th character of 3rd line only (DB 0x15).
 DB 0x03
 %DISPLAY CHUNKS
 ENDPROGRAM t1220
Expected listing t1220.asm.lst
| | EUROASM LIST=ON, DUMP=ON, DUMPWIDTH=32, LISTINCLUDE=ON | |t1220 PROGRAM FORMAT=BIN,MODEL=TINY,WIDTH=16,LISTMAP=OFF,LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT WIDTH=16,PURPOSE=DATA |0000:00 | DB 0x00 |0001: * INCLUDE "t1220.i.asm"{3..4} ; 3rd and 4th lines only. |0001: * INCLUDE ".\t1220.i.asm"{3..4} |0001:14 |DB 0x14;DB 0x15 |0002:1617 |DB 0x16,0x17 |0004:01 | DB 0x01 |0005: * INCLUDE "t1220.i.asm"{%&-2..%&} ; Last 2 lines only. |0005: * INCLUDE ".\t1220.i.asm"{%&-2..%&} |0005:1617 |DB 0x16,0x17 |0007:1819 |DB 0x18,0x19 |0009: | |0009:02 | DB 0x02 |000A: * INCLUDE "t1220.i.asm"{3}[9..] ; Substring starting with 9th character of 3rd line only (DB 0x15). |000A: * INCLUDE ".\t1220.i.asm"{3}[9..] |000A:15 |DB 0x15 |000B:03 | DB 0x03 | | %DISPLAY CHUNKS |# D1200 **** %DISPLAY Chunks |# D1210 "t1220.asm",src=envelope,type=source,size=16,contents='t1220: PROGRAM' |# D1210 "t1220.asm"{1..4},src=main,type=source,size=178,contents='EUROASM LIST=ON, DUM~~RPOSE=DATA DB 0x00' |# D1210 "t1220.asm"{5},src=main,type=orig,size=56,contents='INCLUDE "t1220.i.asm~~ and 4th lines only.' |# D1210 ".\t1220.i.asm",src=main,type=resolved,size=32,contents='INCLUDE ".\t1220.i.asm"{3..4}' |# D1210 ".\t1220.i.asm"{3..4},src=included,type=source,size=31,contents='DB 0x14;DB 0x15 DB 0x16,0x17' |# D1210 "t1220.asm"{6},src=main,type=source,size=10,contents='DB 0x01' |# D1210 "t1220.asm"{7},src=main,type=orig,size=55,contents='INCLUDE "t1220.i.asm~~; Last 2 lines only.' |# D1210 ".\t1220.i.asm",src=main,type=resolved,size=36,contents='INCLUDE ".\t1220.i.asm"{%&-2..%&}' |# D1210 ".\t1220.i.asm"{4..6},src=included,type=source,size=30,contents='DB 0x16,0x17 DB 0x18,0x19' |# D1210 "t1220.asm"{8},src=main,type=source,size=10,contents='DB 0x02' |# D1210 "t1220.asm"{9},src=main,type=orig,size=100,contents='INCLUDE "t1220.i.asm~~line only (DB 0x15).' |# D1210 ".\t1220.i.asm",src=main,type=resolved,size=34,contents='INCLUDE ".\t1220.i.asm"{3}[9..]' |# D1210 ".\t1220.i.asm"{3},src=included,type=source,size=9,contents='DB 0x15' |# D1210 "t1220.asm"{10..12},src=main,type=source,size=47,contents='DB 0x03 %DISPLAY C~~S ENDPROGRAM t1220' |# D1210 "t1220.asm",src=envelope,type=source,size=19,contents='ENDPROGRAM t1220:' |# D1790 **** End of %DISPLAY | | ENDPROGRAM t1220
Expected messages t1220.out
I0180 Assembling source file "t1220.asm". I0270 Assembling source "t1220". I0310 Assembling source pass 1. D1200 **** %DISPLAY Chunks "t1220.asm"{11} D1210 "t1220.asm",src=envelope,type=source,size=16,contents='t1220: PROGRAM' "t1220.asm"{11} D1210 "t1220.asm"{1..12},src=main,type=source,size=456,contents='EUROASM LIST=ON, DUM~~S ENDPROGRAM t1220' "t1220.asm"{11} D1210 "t1220.asm",src=envelope,type=source,size=19,contents='ENDPROGRAM t1220:' "t1220.asm"{11} D1790 **** End of %DISPLAY "t1220.asm"{11} I0330 Assembling source pass 2 - final. I0470 Assembling program "t1220". "t1220.asm"{2} I0510 Assembling program pass 1. "t1220.asm"{2} D1200 **** %DISPLAY Chunks "t1220.asm"{11} D1210 "t1220.asm",src=envelope,type=source,size=16,contents='t1220: PROGRAM' "t1220.asm"{11} D1210 "t1220.asm"{1..4},src=main,type=source,size=178,contents='EUROASM LIST=ON, DUM~~RPOSE=DATA DB 0x00' "t1220.asm"{11} D1210 "t1220.asm"{5},src=main,type=orig,size=56,contents='INCLUDE "t1220.i.asm~~ and 4th lines only.' "t1220.asm"{11} D1210 ".\t1220.i.asm",src=main,type=resolved,size=32,contents='INCLUDE ".\t1220.i.asm"{3..4}' "t1220.asm"{11} D1210 ".\t1220.i.asm"{3..4},src=included,type=source,size=31,contents='DB 0x14;DB 0x15 DB 0x16,0x17' "t1220.asm"{11} D1210 "t1220.asm"{6},src=main,type=source,size=10,contents='DB 0x01' "t1220.asm"{11} D1210 "t1220.asm"{7},src=main,type=orig,size=55,contents='INCLUDE "t1220.i.asm~~; Last 2 lines only.' "t1220.asm"{11} D1210 ".\t1220.i.asm",src=main,type=resolved,size=36,contents='INCLUDE ".\t1220.i.asm"{%&-2..%&}' "t1220.asm"{11} D1210 ".\t1220.i.asm"{4..6},src=included,type=source,size=30,contents='DB 0x16,0x17 DB 0x18,0x19' "t1220.asm"{11} D1210 "t1220.asm"{8},src=main,type=source,size=10,contents='DB 0x02' "t1220.asm"{11} D1210 "t1220.asm"{9},src=main,type=orig,size=100,contents='INCLUDE "t1220.i.asm~~line only (DB 0x15).' "t1220.asm"{11} D1210 ".\t1220.i.asm",src=main,type=resolved,size=34,contents='INCLUDE ".\t1220.i.asm"{3}[9..]' "t1220.asm"{11} D1210 ".\t1220.i.asm"{3},src=included,type=source,size=9,contents='DB 0x15' "t1220.asm"{11} D1210 "t1220.asm"{10..12},src=main,type=source,size=47,contents='DB 0x03 %DISPLAY C~~S ENDPROGRAM t1220' "t1220.asm"{11} D1210 "t1220.asm",src=envelope,type=source,size=19,contents='ENDPROGRAM t1220:' "t1220.asm"{11} D1790 **** End of %DISPLAY "t1220.asm"{11} I0530 Assembling program pass 2 - final. "t1220.asm"{2} D1200 **** %DISPLAY Chunks "t1220.asm"{11} D1210 "t1220.asm",src=envelope,type=source,size=16,contents='t1220: PROGRAM' "t1220.asm"{11} D1210 "t1220.asm"{1..4},src=main,type=source,size=178,contents='EUROASM LIST=ON, DUM~~RPOSE=DATA DB 0x00' "t1220.asm"{11} D1210 "t1220.asm"{5},src=main,type=orig,size=56,contents='INCLUDE "t1220.i.asm~~ and 4th lines only.' "t1220.asm"{11} D1210 ".\t1220.i.asm",src=main,type=resolved,size=32,contents='INCLUDE ".\t1220.i.asm"{3..4}' "t1220.asm"{11} D1210 ".\t1220.i.asm"{3..4},src=included,type=source,size=31,contents='DB 0x14;DB 0x15 DB 0x16,0x17' "t1220.asm"{11} D1210 "t1220.asm"{6},src=main,type=source,size=10,contents='DB 0x01' "t1220.asm"{11} D1210 "t1220.asm"{7},src=main,type=orig,size=55,contents='INCLUDE "t1220.i.asm~~; Last 2 lines only.' "t1220.asm"{11} D1210 ".\t1220.i.asm",src=main,type=resolved,size=36,contents='INCLUDE ".\t1220.i.asm"{%&-2..%&}' "t1220.asm"{11} D1210 ".\t1220.i.asm"{4..6},src=included,type=source,size=30,contents='DB 0x16,0x17 DB 0x18,0x19' "t1220.asm"{11} D1210 "t1220.asm"{8},src=main,type=source,size=10,contents='DB 0x02' "t1220.asm"{11} D1210 "t1220.asm"{9},src=main,type=orig,size=100,contents='INCLUDE "t1220.i.asm~~line only (DB 0x15).' "t1220.asm"{11} D1210 ".\t1220.i.asm",src=main,type=resolved,size=34,contents='INCLUDE ".\t1220.i.asm"{3}[9..]' "t1220.asm"{11} D1210 ".\t1220.i.asm"{3},src=included,type=source,size=9,contents='DB 0x15' "t1220.asm"{11} D1210 "t1220.asm"{10..12},src=main,type=source,size=47,contents='DB 0x03 %DISPLAY C~~S ENDPROGRAM t1220' "t1220.asm"{11} D1210 "t1220.asm",src=envelope,type=source,size=19,contents='ENDPROGRAM t1220:' "t1220.asm"{11} D1790 **** End of %DISPLAY "t1220.asm"{11} I0660 16bit TINY BIN file "t1220.bin" created, size=12. "t1220.asm"{12} I0650 Program "t1220" assembled in 2 passes with errorlevel 1. "t1220.asm"{12} I0750 Source "t1220" (15 lines) assembled in 2 passes with errorlevel 1. I0860 Listing file "t1220.asm.lst" created, size=2806. I0990 EuroAssembler terminated with errorlevel 1.
Expected output file t1220. bin
0000: 00 14 16 17 01 16 17 18 19 02 15 03              °···········

▲Back to the top▲