EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t2402: Pseudoinstruction INCLUDE recursively fixed program name


Description
Source file recursively includes itsef. Only option EUROASM MAXINCLUSIONS=3 will stop the recursion. Embedded program name is fixed, assembled object files overwite one another.
Tested procedures
PseudoINCLUDE   ChunkInclude  
Source file t2402.asm
 EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=20,LISTINCLUDE=ON,MAXINCLUSIONS=3 ;
t2402 PROGRAM FORMAT=BIN, LISTMAP=OFF, LISTGLOBALS=OFF
[BIN] SEGMENT PURPOSE=DATA
      DB 0x11
      INCLUDE t2402.asm
      DB 0x99
      ENDPROGRAM t2402
Expected listing t2402.asm.lst
| | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=20,LISTINCLUDE=ON,MAXINCLUSIONS=3 ; | |t2402 PROGRAM FORMAT=BIN, LISTMAP=OFF, LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT PURPOSE=DATA |0000:11 | DB 0x11 |0001: * INCLUDE t2402.asm |0001: * INCLUDE ".\t2402.asm" | | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=20,LISTINCLUDE=ON,MAXINCLUSIONS=3 ; | |t2402 PROGRAM FORMAT=BIN, LISTMAP=OFF, LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT PURPOSE=DATA |0000:11 | DB 0x11 |0001: * INCLUDE t2402.asm |0001: * INCLUDE ".\t2402.asm" | | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=20,LISTINCLUDE=ON,MAXINCLUSIONS=3 ; | |t2402 PROGRAM FORMAT=BIN, LISTMAP=OFF, LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT PURPOSE=DATA |0000:11 | DB 0x11 |0001: * INCLUDE t2402.asm |0001: * INCLUDE ".\t2402.asm" | | EUROASM LIST=ON,DUMP=ON,DUMPWIDTH=20,LISTINCLUDE=ON,MAXINCLUSIONS=3 ; | |t2402 PROGRAM FORMAT=BIN, LISTMAP=OFF, LISTGLOBALS=OFF |[BIN] |[BIN] SEGMENT PURPOSE=DATA |0000:11 | DB 0x11 |0001: * INCLUDE t2402.asm |### E6916 ".\t2402.asm" - number of included files exceeded MaxInclusions. |0001:99 | DB 0x99 | | ENDPROGRAM t2402 |[BIN] ::::Section changed. |0001:99 | DB 0x99 | | ENDPROGRAM t2402 |## W3990 Overwriting previously generated output file "t2402.bin". |[BIN] ::::Section changed. |0001:99 | DB 0x99 | | ENDPROGRAM t2402 |## W3990 Overwriting previously generated output file "t2402.bin". |[BIN] ::::Section changed. |0001:99 | DB 0x99 | | ENDPROGRAM t2402 |## W3990 Overwriting previously generated output file "t2402.bin".
Expected messages t2402.out
I0180 Assembling source file "t2402.asm". I0270 Assembling source "t2402". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t2402". "t2402.asm"{2} I0510 Assembling program pass 1. "t2402.asm"{2} I0530 Assembling program pass 2 - final. "t2402.asm"{2} I0470 Assembling program "t2402". "t2402.asm"{2} I0510 Assembling program pass 1. "t2402.asm"{2} I0530 Assembling program pass 2 - final. "t2402.asm"{2} I0470 Assembling program "t2402". "t2402.asm"{2} I0510 Assembling program pass 1. "t2402.asm"{2} I0530 Assembling program pass 2 - final. "t2402.asm"{2} I0470 Assembling program "t2402". "t2402.asm"{2} I0510 Assembling program pass 1. "t2402.asm"{2} E6916 ".\t2402.asm" - number of included files exceeded MaxInclusions. I0530 Assembling program pass 2 - final. "t2402.asm"{2} E6916 ".\t2402.asm" - number of included files exceeded MaxInclusions. I0660 16bit TINY BIN file "t2402.bin" created, size=2. "t2402.asm"{7} I0650 Program "t2402" assembled in 2 passes with errorlevel 6. "t2402.asm"{7} W3990 Overwriting previously generated output file "t2402.bin". "t2402.asm"{7} I0660 16bit TINY BIN file "t2402.bin" created, size=2. "t2402.asm"{7} I0650 Program "t2402" assembled in 2 passes with errorlevel 3. "t2402.asm"{7} W3990 Overwriting previously generated output file "t2402.bin". "t2402.asm"{7} I0660 16bit TINY BIN file "t2402.bin" created, size=2. "t2402.asm"{7} I0650 Program "t2402" assembled in 2 passes with errorlevel 3. "t2402.asm"{7} W3990 Overwriting previously generated output file "t2402.bin". "t2402.asm"{7} I0660 16bit TINY BIN file "t2402.bin" created, size=2. "t2402.asm"{7} I0650 Program "t2402" assembled in 2 passes with errorlevel 3. "t2402.asm"{7} I0750 Source "t2402" (24 lines) assembled in 2 passes with errorlevel 6. I0860 Listing file "t2402.asm.lst" created, size=2039. I0990 EuroAssembler terminated with errorlevel 6.
Expected output file t2402. bin
0000: 11 99                                             ·•

▲Back to the top▲