EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t7307: Compile LIBCOF 16bit Dos linking OMF 16bit Dos


Description
Test creates linkable 16bit LIBCOF file t7307.lib from linkable 16bit OMF module.
See also
LinkerCombinations  
Tested procedures
PflibcofCompile   PfomfLoadPgm  
Source & expected listing t7307.htm.lst
| | EUROASM DEBUG=OFF,PROFILE=OFF,AUTOSEGMENT=ON,LIST=ON, \ | | DUMP=ON,DUMPWIDTH=25,DUMPALL=OFF,CPU=386 | |;; | |t7307OW PROGRAM FORMAT=OMF,MODEL=SMALL,WIDTH=16, \ | | LISTMAP=ON,LISTGLOBALS=ON | | PUBLIC Write.D16 |[CODE] ::::Section changed. |0000: |Write.D16: PROC ; Write ASCIIZ string DS:SI in 16bit DOS. |0000:B402 | MOV AH,02h ; Dos function WRITE CHARACTER FROM DL TO STANDARD OUTPUT. |0002:8A14 |.1:MOV DL,[SI] ; Get one character. |0004:84D2 | TEST DL ; Test if it is the terminating zero. |0006:7405 | JZ .9: ; Go to the end if so. |0008:CD21 | INT 21h ; Call DOS service to write a character. |000A:46 | INC SI ; Let SI point to the next character. |000B:EBF5 | JMP .1: ; Repeat until DL=0. |000D:C3 |.9:RET |000E: | ENDPROC Write.D16: | |ENDPROGRAM t7307OW | **** ListMap "t7307OW.obj",groups=0,segments=1,entry=,stack= | [CODE],RVA=00000000h,size=0000000Eh=14,width=16,align=16,purpose=CODE | **** ListGlobals "t7307OW.obj",Global=0,Public=1,Extern=0,eXport=0,Import=0 | Write.D16,[CODE]:00000000h,scope='P' | |;; | |t7307OB PROGRAM FORMAT=OMF,MODEL=SMALL,WIDTH=16, \ | | LISTMAP=ON,LISTGLOBALS=ON | | PUBLIC Beep.D16 |[CODE] ::::Section changed. |0000: |Beep.D16: PROC ; Echo beep sound in 16bit DOS. |0000:B207 | MOV DL,7 ; BEL character, interpreted as beep sound. |0002:B402 | MOV AH,2 ; DOS function WRITE CHARACTER TO STANDARD OUTPUT. |0004:CD21 | INT 0x21 ; Call DOS service to send a BEL. |0006:C3 | RET ; Return to caller. |0007: | ENDPROC Beep.D16: | |ENDPROGRAM t7307OB | **** ListMap "t7307OB.obj",groups=0,segments=1,entry=,stack= | [CODE],RVA=00000000h,size=00000007h=7,width=16,align=16,purpose=CODE | **** ListGlobals "t7307OB.obj",Global=0,Public=1,Extern=0,eXport=0,Import=0 | Beep.D16,[CODE]:00000000h,scope='P' | |;; | |t7307OE PROGRAM FORMAT=OMF,MODEL=SMALL,WIDTH=16, \ | | LISTMAP=ON,LISTGLOBALS=ON | | PUBLIC Exit.D16 |[CODE] ::::Section changed. |0000: |Exit.D16: PROC ; Terminate program in 16bit DOS. |0000:B8004C | MOV AX,4C00h ; DOS function TERMINATE WITH RETURN CODE IN AL. |0003:CD21 | INT 21h ; Call DOS service to terminate the program. |0005: | ENDPROC Exit.D16: | |ENDPROGRAM t7307OE | **** ListMap "t7307OE.obj",groups=0,segments=1,entry=,stack= | [CODE],RVA=00000000h,size=00000005h=5,width=16,align=16,purpose=CODE | **** ListGlobals "t7307OE.obj",Global=0,Public=1,Extern=0,eXport=0,Import=0 | Exit.D16,[CODE]:00000000h,scope='P' | |;; | |t7307 PROGRAM FORMAT=LIBCOF,MODEL=FLAT,WIDTH=16, \ | | LISTMAP=OFF,LISTGLOBALS=OFF | | LINK t7307OW.obj, t7307OB.obj, t7307OE.obj | |ENDPROGRAM t7307 |# I0560 Linking OMF module ".\t7307OW.obj". |# I0560 Linking OMF module ".\t7307OB.obj". |# I0560 Linking OMF module ".\t7307OE.obj".
Expected messages t7307.out
I0180 Assembling source file "t7307.htm". I0270 Assembling source "t7307". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t7307OW". "t7307.htm"{62} I0510 Assembling program pass 1. "t7307.htm"{62} I0510 Assembling program pass 2. "t7307.htm"{62} I0530 Assembling program pass 3 - final. "t7307.htm"{62} I0660 16bit SMALL OMF file "t7307OW.obj" created, size=104. "t7307.htm"{76} I0650 Program "t7307OW" assembled in 3 passes with errorlevel 0. "t7307.htm"{76} I0470 Assembling program "t7307OB". "t7307.htm"{82} I0510 Assembling program pass 1. "t7307.htm"{82} I0510 Assembling program pass 2. "t7307.htm"{82} I0530 Assembling program pass 3 - final. "t7307.htm"{82} I0660 16bit SMALL OMF file "t7307OB.obj" created, size=96. "t7307.htm"{92} I0650 Program "t7307OB" assembled in 3 passes with errorlevel 0. "t7307.htm"{92} I0470 Assembling program "t7307OE". "t7307.htm"{98} I0510 Assembling program pass 1. "t7307.htm"{98} I0510 Assembling program pass 2. "t7307.htm"{98} I0530 Assembling program pass 3 - final. "t7307.htm"{98} I0660 16bit SMALL OMF file "t7307OE.obj" created, size=94. "t7307.htm"{106} I0650 Program "t7307OE" assembled in 3 passes with errorlevel 0. "t7307.htm"{106} I0470 Assembling program "t7307". "t7307.htm"{112} I0510 Assembling program pass 1. "t7307.htm"{112} I0530 Assembling program pass 2 - final. "t7307.htm"{112} I0560 Linking OMF module ".\t7307OW.obj". "t7307.htm"{115} I0560 Linking OMF module ".\t7307OB.obj". "t7307.htm"{115} I0560 Linking OMF module ".\t7307OE.obj". "t7307.htm"{115} I0660 16bit FLAT LIBCOF file "t7307.lib" created, size=1022. "t7307.htm"{115} I0650 Program "t7307" assembled in 2 passes with errorlevel 0. "t7307.htm"{115} I0750 Source "t7307" (225 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t7307.htm.lst" created, size=3900. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t7307. lib
0000: 21 3C 61 72 63 68 3E 0A 2F 20 20 20 20 20 20 20  !<arch>¬/¯¯¯¯¯¯¯
0010: 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20  ¯¯¯¯¯¯¯¯0¯¯¯¯¯¯¯
0020: 20 20 20 20 30 20 20 20 20 20 30 20 20 20 20 20  ¯¯¯¯0¯¯¯¯¯0¯¯¯¯¯
0030: 31 30 30 36 36 36 20 20 34 34 20 20 20 20 20 20  100666¯¯44¯¯¯¯¯¯
0040: 20 20 60 0A 00 00 00 03 00 00 01 20 00 00 02 20  ¯¯`¬°°°·°°·¯°°·¯
0050: 00 00 03 10 57 72 69 74 65 2E 44 31 36 00 42 65  °°··Write.D16°Be
0060: 65 70 2E 44 31 36 00 45 78 69 74 2E 44 31 36 00  ep.D16°Exit.D16°
0070: 2F 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20  /¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
0080: 30 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20  0¯¯¯¯¯¯¯¯¯¯¯0¯¯¯
0090: 20 20 30 20 20 20 20 20 31 30 30 36 36 36 20 20  ¯¯0¯¯¯¯¯100666¯¯
00A0: 35 34 20 20 20 20 20 20 20 20 60 0A 03 00 00 00  54¯¯¯¯¯¯¯¯`¬·°°°
00B0: 20 01 00 00 20 02 00 00 10 03 00 00 03 00 00 00  ¯·°°¯·°°··°°·°°°
00C0: 02 00 03 00 01 00 42 65 65 70 2E 44 31 36 00 45  ·°·°·°Beep.D16°E
00D0: 78 69 74 2E 44 31 36 00 57 72 69 74 65 2E 44 31  xit.D16°Write.D1
00E0: 36 00 2F 2F 20 20 20 20 20 20 20 20 20 20 20 20  6°//¯¯¯¯¯¯¯¯¯¯¯¯
00F0: 20 20 30 20 20 20 20 20 20 20 20 20 20 20 30 20  ¯¯0¯¯¯¯¯¯¯¯¯¯¯0¯
0100: 20 20 20 20 30 20 20 20 20 20 31 30 30 36 36 36  ¯¯¯¯0¯¯¯¯¯100666
0110: 20 20 32 20 20 20 20 20 20 20 20 20 60 0A 00 0A  ¯¯2¯¯¯¯¯¯¯¯¯`¬°¬
0120: 74 37 33 30 37 4F 57 2F 20 20 20 20 20 20 20 20  t7307OW/¯¯¯¯¯¯¯¯
0130: 30 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20  0¯¯¯¯¯¯¯¯¯¯¯0¯¯¯
0140: 20 20 30 20 20 20 20 20 31 30 30 36 36 36 20 20  ¯¯0¯¯¯¯¯100666¯¯
0150: 31 39 36 20 20 20 20 20 20 20 60 0A 4C 01 01 00  196¯¯¯¯¯¯¯`¬L··°
0160: 00 00 00 00 4A 00 00 00 06 00 00 00 00 00 00 00  °°°°J°°°·°°°°°°°
0170: 43 4F 44 45 00 00 00 00 00 00 00 00 00 00 00 00  CODE°°°°°°°°°°°°
0180: 0E 00 00 00 3C 00 00 00 00 00 00 00 00 00 00 00  ·°°°<°°°°°°°°°°°
0190: 00 00 00 00 20 00 50 60 B4 02 8A 14 84 D2 74 05  °°°°¯°P`¤·¤·¤¤t·
01A0: CD 21 46 EB F5 C3 2E 73 63 61 6C 61 72 73 00 00  ¤!F¤¤¤.scalars°°
01B0: 00 00 FF FF 00 00 03 00 2E 66 69 6C 65 00 00 00  °°¤¤°°·°.file°°°
01C0: 00 00 00 00 FE FF 00 00 67 01 74 37 33 30 37 2E  °°°°¤¤°°g·t7307.
01D0: 68 74 6D 00 00 00 00 00 00 00 00 00 43 4F 44 45  htm°°°°°°°°°CODE
01E0: 00 00 00 00 00 00 00 00 01 00 00 00 03 01 0E 00  °°°°°°°°·°°°···°
01F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0200: 00 00 00 00 04 00 00 00 00 00 00 00 01 00 00 00  °°°°·°°°°°°°·°°°
0210: 02 00 0E 00 00 00 57 72 69 74 65 2E 44 31 36 00  ·°·°°°Write.D16°
0220: 74 37 33 30 37 4F 42 2F 20 20 20 20 20 20 20 20  t7307OB/¯¯¯¯¯¯¯¯
0230: 30 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20  0¯¯¯¯¯¯¯¯¯¯¯0¯¯¯
0240: 20 20 30 20 20 20 20 20 31 30 30 36 36 36 20 20  ¯¯0¯¯¯¯¯100666¯¯
0250: 31 38 30 20 20 20 20 20 20 20 60 0A 4C 01 01 00  180¯¯¯¯¯¯¯`¬L··°
0260: 00 00 00 00 44 00 00 00 06 00 00 00 00 00 00 00  °°°°D°°°·°°°°°°°
0270: 43 4F 44 45 00 00 00 00 00 00 00 00 00 00 00 00  CODE°°°°°°°°°°°°
0280: 07 00 00 00 3C 00 00 00 00 00 00 00 00 00 00 00  ·°°°<°°°°°°°°°°°
0290: 00 00 00 00 20 00 50 60 B2 07 B4 02 CD 21 C3 00  °°°°¯°P`¤·¤·¤!¤°
02A0: 2E 73 63 61 6C 61 72 73 00 00 00 00 FF FF 00 00  .scalars°°°°¤¤°°
02B0: 03 00 2E 66 69 6C 65 00 00 00 00 00 00 00 FE FF  ·°.file°°°°°°°¤¤
02C0: 00 00 67 01 74 37 33 30 37 2E 68 74 6D 00 00 00  °°g·t7307.htm°°°
02D0: 00 00 00 00 00 00 43 4F 44 45 00 00 00 00 00 00  °°°°°°CODE°°°°°°
02E0: 00 00 01 00 00 00 03 01 07 00 00 00 00 00 00 00  °°·°°°···°°°°°°°
02F0: 00 00 00 00 00 00 00 00 00 00 42 65 65 70 2E 44  °°°°°°°°°°Beep.D
0300: 31 36 00 00 00 00 01 00 00 00 02 00 04 00 00 00  16°°°°·°°°·°·°°°
0310: 74 37 33 30 37 4F 45 2F 20 20 20 20 20 20 20 20  t7307OE/¯¯¯¯¯¯¯¯
0320: 30 20 20 20 20 20 20 20 20 20 20 20 30 20 20 20  0¯¯¯¯¯¯¯¯¯¯¯0¯¯¯
0330: 20 20 30 20 20 20 20 20 31 30 30 36 36 36 20 20  ¯¯0¯¯¯¯¯100666¯¯
0340: 31 37 38 20 20 20 20 20 20 20 60 0A 4C 01 01 00  178¯¯¯¯¯¯¯`¬L··°
0350: 00 00 00 00 42 00 00 00 06 00 00 00 00 00 00 00  °°°°B°°°·°°°°°°°
0360: 43 4F 44 45 00 00 00 00 00 00 00 00 00 00 00 00  CODE°°°°°°°°°°°°
0370: 05 00 00 00 3C 00 00 00 00 00 00 00 00 00 00 00  ·°°°<°°°°°°°°°°°
0380: 00 00 00 00 20 00 50 60 B8 00 4C CD 21 00 2E 73  °°°°¯°P`¤°L¤!°.s
0390: 63 61 6C 61 72 73 00 00 00 00 FF FF 00 00 03 00  calars°°°°¤¤°°·°
03A0: 2E 66 69 6C 65 00 00 00 00 00 00 00 FE FF 00 00  .file°°°°°°°¤¤°°
03B0: 67 01 74 37 33 30 37 2E 68 74 6D 00 00 00 00 00  g·t7307.htm°°°°°
03C0: 00 00 00 00 43 4F 44 45 00 00 00 00 00 00 00 00  °°°°CODE°°°°°°°°
03D0: 01 00 00 00 03 01 05 00 00 00 00 00 00 00 00 00  ·°°°···°°°°°°°°°
03E0: 00 00 00 00 00 00 00 00 45 78 69 74 2E 44 31 36  °°°°°°°°Exit.D16
03F0: 00 00 00 00 01 00 00 00 02 00 04 00 00 00        °°°°·°°°·°·°°°

▲Back to the top▲