EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t7112: Compile LIBOMF 16bit Dos linking LIBCOF 16bit Dos


Description
Test creates linkable 16bit LIBOMF file t7112.lib from linkable 16bit LIBCOF module.
See also
LinkerCombinations  
Tested procedures
PflibomfCompile   PflibcofLoadPgm  
Source & expected listing t7112.htm.lst
| | EUROASM DEBUG=OFF,PROFILE=OFF,AUTOSEGMENT=ON,LIST=ON, \ | | DUMP=ON,DUMPWIDTH=25,DUMPALL=OFF,CPU=386 | |;; | |t7112CW PROGRAM FORMAT=COFF,MODEL=FLAT,WIDTH=16, \ | | LISTMAP=ON,LISTGLOBALS=ON | | PUBLIC Write.D16 |[.text] ::::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 t7112CW | **** ListMap "t7112CW.obj",groups=0,segments=1,entry=,stack= | [.text],RVA=00000000h,size=0000000Eh=14,width=16,align=0010h,purpose=CODE | **** ListGlobals "t7112CW.obj",Global=0,Public=1,Extern=0,eXport=0,Import=0 | Write.D16,[.text]:00000000h,scope='P' | |;; | |t7112CB PROGRAM FORMAT=COFF,MODEL=FLAT,WIDTH=16, \ | | LISTMAP=ON,LISTGLOBALS=ON | | PUBLIC Beep.D16 |[.text] ::::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 t7112CB | **** ListMap "t7112CB.obj",groups=0,segments=1,entry=,stack= | [.text],RVA=00000000h,size=00000007h=7,width=16,align=0010h,purpose=CODE | **** ListGlobals "t7112CB.obj",Global=0,Public=1,Extern=0,eXport=0,Import=0 | Beep.D16,[.text]:00000000h,scope='P' | |;; | |t7112CE PROGRAM FORMAT=COFF,MODEL=FLAT,WIDTH=16, \ | | LISTMAP=ON,LISTGLOBALS=ON | | PUBLIC Exit.D16 |[.text] ::::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 t7112CE | **** ListMap "t7112CE.obj",groups=0,segments=1,entry=,stack= | [.text],RVA=00000000h,size=00000005h=5,width=16,align=0010h,purpose=CODE | **** ListGlobals "t7112CE.obj",Global=0,Public=1,Extern=0,eXport=0,Import=0 | Exit.D16,[.text]:00000000h,scope='P' | |;; | |t7112C PROGRAM FORMAT=LIBCOF,MODEL=FLAT,WIDTH=16, \ | | LISTMAP=OFF,LISTGLOBALS=OFF | | LINK t7112CW.obj, t7112CB.obj, t7112CE.obj | |ENDPROGRAM t7112C |# I0560 Linking COFF module ".\t7112CW.obj". |# I0560 Linking COFF module ".\t7112CB.obj". |# I0560 Linking COFF module ".\t7112CE.obj". | |;; | |t7112 PROGRAM FORMAT=LIBOMF,MODEL=SMALL,WIDTH=16, \ | | LISTMAP=OFF,LISTGLOBALS=OFF | | GLOBAL Write.D16, Exit.D16 ; Intentionally omitted Beep.D16. | | LINK t7112C.lib | |ENDPROGRAM t7112 |# I0560 Linking LIBCOF module ".\t7112C.lib".
Expected messages t7112.out
I0180 Assembling source file "t7112.htm". I0270 Assembling source "t7112". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t7112CW". "t7112.htm"{62} I0510 Assembling program pass 1. "t7112.htm"{62} I0510 Assembling program pass 2. "t7112.htm"{62} I0530 Assembling program pass 3 - final. "t7112.htm"{62} I0660 16bit FLAT COFF file "t7112CW.obj" created, size=238. "t7112.htm"{76} I0650 Program "t7112CW" assembled in 3 passes with errorlevel 0. "t7112.htm"{76} I0470 Assembling program "t7112CB". "t7112.htm"{82} I0510 Assembling program pass 1. "t7112.htm"{82} I0510 Assembling program pass 2. "t7112.htm"{82} I0530 Assembling program pass 3 - final. "t7112.htm"{82} I0660 16bit FLAT COFF file "t7112CB.obj" created, size=162. "t7112.htm"{92} I0650 Program "t7112CB" assembled in 3 passes with errorlevel 0. "t7112.htm"{92} I0470 Assembling program "t7112CE". "t7112.htm"{98} I0510 Assembling program pass 1. "t7112.htm"{98} I0510 Assembling program pass 2. "t7112.htm"{98} I0530 Assembling program pass 3 - final. "t7112.htm"{98} I0660 16bit FLAT COFF file "t7112CE.obj" created, size=160. "t7112.htm"{106} I0650 Program "t7112CE" assembled in 3 passes with errorlevel 0. "t7112.htm"{106} I0470 Assembling program "t7112C". "t7112.htm"{112} I0510 Assembling program pass 1. "t7112.htm"{112} I0530 Assembling program pass 2 - final. "t7112.htm"{112} I0560 Linking COFF module ".\t7112CW.obj". "t7112.htm"{115} I0560 Linking COFF module ".\t7112CB.obj". "t7112.htm"{115} I0560 Linking COFF module ".\t7112CE.obj". "t7112.htm"{115} I0660 16bit FLAT LIBCOF file "t7112C.lib" created, size=968. "t7112.htm"{115} I0650 Program "t7112C" assembled in 2 passes with errorlevel 0. "t7112.htm"{115} I0470 Assembling program "t7112". "t7112.htm"{120} I0510 Assembling program pass 1. "t7112.htm"{120} I0510 Assembling program pass 2. "t7112.htm"{120} I0530 Assembling program pass 3 - final. "t7112.htm"{120} I0560 Linking LIBCOF module ".\t7112C.lib". "t7112.htm"{124} I0660 16bit SMALL LIBOMF file "t7112.lib" created, size=1536. "t7112.htm"{124} I0650 Program "t7112" assembled in 3 passes with errorlevel 0. "t7112.htm"{124} I0750 Source "t7112" (271 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t7112.htm.lst" created, size=4321. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t7112. lib
0000: F0 0D 00 00 02 00 00 02 00 01 00 00 00 00 00 00  ¤·°°·°°·°·°°°°°°
0010: 82 09 00 07 74 37 31 31 32 43 57 95 88 10 00 00  ¤·°·t7112CW¤¤·°°
0020: 00 45 75 72 6F 41 73 73 65 6D 62 6C 65 72 2F 88  °EuroAssembler/¤
0030: 05 00 00 9D 33 66 3D 96 08 00 00 05 2E 74 65 78  ·°°¤3f=¤·°°·.tex
0040: 74 6A 98 07 00 68 0E 00 02 01 00 E8 90 10 00 00  tj¤·°h·°··°¤¤·°°
0050: 01 09 57 72 69 74 65 2E 44 31 36 00 00 00 72 A0  ··Write.D16°°°r¤
0060: 12 00 01 00 00 B4 02 8A 14 84 D2 74 05 CD 21 46  ·°·°°¤·¤·¤¤t·¤!F
0070: EB F5 C3 53 8A 09 00 00 00 00 00 00 00 00 00 6D  ¤¤¤S¤·°°°°°°°°°m
0080: 82 09 00 07 74 37 31 31 32 43 42 AA 88 10 00 00  ¤·°·t7112CB¤¤·°°
0090: 00 45 75 72 6F 41 73 73 65 6D 62 6C 65 72 2F 88  °EuroAssembler/¤
00A0: 05 00 00 9D 33 66 3D 96 08 00 00 05 2E 74 65 78  ·°°¤3f=¤·°°·.tex
00B0: 74 6A 98 07 00 68 07 00 02 01 00 EF 90 0F 00 00  tj¤·°h·°··°¤¤·°°
00C0: 01 08 42 65 65 70 2E 44 31 36 00 00 00 03 A0 0B  ··Beep.D16°°°·¤·
00D0: 00 01 00 00 B2 07 B4 02 CD 21 C3 34 8A 11 00 00  °·°°¤·¤·¤!¤4¤·°°
00E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 65  °°°°°°°°°°°°°°°e
00F0: 82 09 00 07 74 37 31 31 32 43 45 A7 88 10 00 00  ¤·°·t7112CE¤¤·°°
0100: 00 45 75 72 6F 41 73 73 65 6D 62 6C 65 72 2F 88  °EuroAssembler/¤
0110: 05 00 00 9D 33 66 3D 96 08 00 00 05 2E 74 65 78  ·°°¤3f=¤·°°·.tex
0120: 74 6A 98 07 00 68 05 00 02 01 00 F1 90 0F 00 00  tj¤·°h·°··°¤¤·°°
0130: 01 08 45 78 69 74 2E 44 31 36 00 00 00 E5 A0 09  ··Exit.D16°°°¤¤·
0140: 00 01 00 00 B8 00 4C CD 21 64 8A 03 00 00 00 73  °·°°¤°L¤!d¤·°°°s
0150: F1 AD 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ¤¤°°°°°°°°°°°°°°
0160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
01A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
01B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
01C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
01D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
01E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
01F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 62  °°°°°°°°°°°°°°°b
0200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 13 00  °°°°°°°°°°°°°°·°
0210: 00 19 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °·°°°°°°°°°°°°°°
0220: 00 00 00 00 00 1F 08 42 65 65 70 2E 44 31 36 08  °°°°°··Beep.D16·
0230: 00 00 08 45 78 69 74 2E 44 31 36 0F 00 00 00 00  °°·Exit.D16·°°°°
0240: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0250: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0260: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0270: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0280: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
02A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
02B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
02C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
02D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
02E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
02F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0300: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0310: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0320: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0330: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0340: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0350: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0360: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0370: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0380: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0390: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
03A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
03B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
03C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
03D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
03E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
03F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0400: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0410: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0420: 00 00 13 00 00 19 09 57 72 69 74 65 2E 44 31 36  °°·°°··Write.D16
0430: 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ·°°°°°°°°°°°°°°°
0440: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0450: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0460: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0470: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0480: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0490: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
04A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
04B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
04C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
04D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
04E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
04F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0500: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0510: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0520: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0530: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0540: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0550: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0560: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0570: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0580: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0590: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
05A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
05B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
05C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
05D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
05E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
05F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°

▲Back to the top▲