EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t1717: Literal symbols with relocations and recursed code runtime sections.


Description
Executable terminates gracefully.
Tested procedures
SymCreateLiteral   SssCreate@RT   SssCreate@LT   PseudoPROC1   PseudoENDPROC1   SssOrderSections  
Source & expected listing t1717.htm.lst
| | EUROASM LIST=ON,DUMP=ON,AUTOALIGN=OFF,DUMPWIDTH=20 | |t1717 PROGRAM FORMAT=COM,MODEL=TINY,WIDTH=16, \ | | LISTMAP=OFF,LISTGLOBALS=OFF,LISTLITERALS=ON |[BIN] |[BIN] ; $=100h. |0000:B8[0000] | MOV AX,=B"ab" ; $=100h. |0003:E8(0000) | CALL S1: ; $=103h. |[SUBPROC] |[SUBPROC] ; $=110h. |0000:B9[0000] |S1:MOV CX,=W Outer: ; $=110h. |0003:E9(0000) | JMP Inner: ; $=113h. |[@RT1] ::::Section changed. |0000: |Outer:PROC1 ; $=118h. |0000:BA[0200] | MOV DX,=W S1 ; $=118h. |[@RT2] ::::Section changed. |0000: | Inner:PROC1 ; $=11Ch. |0000:B8[0000] | MOV AX,=I"STOSW" ; $=11Ch. |0003:E9(0100) | .S2:JMP =I"RET" ; $=11Fh. |0006: | ENDP1 Inner: ; $=122h. |[@RT1] ::::Section changed. |0003:C3 | RET ; $=11Bh. |0004: | ENDP1 Outer: ; $=11Ch. |[BIN] |[BIN] ; $=106h. |0006:BE[0400] | MOV SI,=W Inner.S2: ; $=106h. |0009:E9(0100) | JMP =I"RET" ; $=109h. |[@LT2] ====ListLiterals in section [@LT2]. |0000:[0000] =W Outer: |0002:[0000] =W S1 |0004:[0300] =W Inner.S2: |[@LT1] ====ListLiterals in section [@LT1]. |0000:616200 =B"ab" |[@RT0] ====ListLiterals in section [@RT0]. |0000:AB =I"STOSW" |0001:C3 =I"RET" | | ENDPROGRAM t1717
Expected messages t1717.out
I0180 Assembling source file "t1717.htm". I0270 Assembling source "t1717". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t1717". "t1717.htm"{67} I0510 Assembling program pass 1. "t1717.htm"{67} I0510 Assembling program pass 2. "t1717.htm"{67} I0530 Assembling program pass 3 - final. "t1717.htm"{67} I0660 16bit TINY COM file "t1717.com" created, size=57. "t1717.htm"{98} I0650 Program "t1717" assembled in 3 passes with errorlevel 0. "t1717.htm"{98} I0750 Source "t1717" (125 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t1717.htm.lst" created, size=1631. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t1717. com
0000: B8 36 01 E8 0A 00 BE 34 01 E9 0B 00 90 90 90 90  ¤6·¤¬°¤4·¤·°¤¤¤¤
0010: B9 30 01 E9 06 00 AB C3 BA 32 01 C3 B8 16 01 E9  ¤0·¤·°¤¤¤2·¤¤··¤
0020: F5 FF 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ¤¤°°°°°°°°°°°°°°
0030: 18 01 10 01 1F 01 61 62 00                       ······ab°

▲Back to the top▲