EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t7103: Compile LIBOMF 16bit Dos linking OMF 16bit Dos


Description
Test creates linkable 16bit LIBOMF file t7103.lib from linkable 16bit OMF module.
See also
LinkerCombinations  
Tested procedures
PflibomfCompile   PfomfLoadPgm  
Source & expected listing t7103.htm.lst
| | EUROASM DEBUG=OFF,PROFILE=OFF,AUTOSEGMENT=ON,LIST=ON, \ | | DUMP=ON,DUMPWIDTH=25,DUMPALL=OFF,CPU=386 | |;; | |t7103OW 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 t7103OW | **** ListMap "t7103OW.obj",groups=0,segments=1,entry=,stack= | [CODE],RVA=00000000h,size=0000000Eh=14,width=16,align=0010h,purpose=CODE | **** ListGlobals "t7103OW.obj",Global=0,Public=1,Extern=0,eXport=0,Import=0 | Write.D16,[CODE]:00000000h,scope='P' | |;; | |t7103OB 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 t7103OB | **** ListMap "t7103OB.obj",groups=0,segments=1,entry=,stack= | [CODE],RVA=00000000h,size=00000007h=7,width=16,align=0010h,purpose=CODE | **** ListGlobals "t7103OB.obj",Global=0,Public=1,Extern=0,eXport=0,Import=0 | Beep.D16,[CODE]:00000000h,scope='P' | |;; | |t7103OE 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 t7103OE | **** ListMap "t7103OE.obj",groups=0,segments=1,entry=,stack= | [CODE],RVA=00000000h,size=00000005h=5,width=16,align=0010h,purpose=CODE | **** ListGlobals "t7103OE.obj",Global=0,Public=1,Extern=0,eXport=0,Import=0 | Exit.D16,[CODE]:00000000h,scope='P' | |;; | |t7103 PROGRAM FORMAT=LIBOMF,MODEL=SMALL,WIDTH=16, \ | | LISTMAP=OFF,LISTGLOBALS=OFF | | LINK t7103OW.obj, t7103OB.obj, t7103OE.obj | |ENDPROGRAM t7103 |# I0560 Linking OMF module ".\t7103OW.obj". |# I0560 Linking OMF module ".\t7103OB.obj". |# I0560 Linking OMF module ".\t7103OE.obj".
Expected messages t7103.out
I0180 Assembling source file "t7103.htm". I0270 Assembling source "t7103". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t7103OW". "t7103.htm"{62} I0510 Assembling program pass 1. "t7103.htm"{62} I0510 Assembling program pass 2. "t7103.htm"{62} I0530 Assembling program pass 3 - final. "t7103.htm"{62} I0660 16bit SMALL OMF file "t7103OW.obj" created, size=104. "t7103.htm"{76} I0650 Program "t7103OW" assembled in 3 passes with errorlevel 0. "t7103.htm"{76} I0470 Assembling program "t7103OB". "t7103.htm"{82} I0510 Assembling program pass 1. "t7103.htm"{82} I0510 Assembling program pass 2. "t7103.htm"{82} I0530 Assembling program pass 3 - final. "t7103.htm"{82} I0660 16bit SMALL OMF file "t7103OB.obj" created, size=96. "t7103.htm"{92} I0650 Program "t7103OB" assembled in 3 passes with errorlevel 0. "t7103.htm"{92} I0470 Assembling program "t7103OE". "t7103.htm"{98} I0510 Assembling program pass 1. "t7103.htm"{98} I0510 Assembling program pass 2. "t7103.htm"{98} I0530 Assembling program pass 3 - final. "t7103.htm"{98} I0660 16bit SMALL OMF file "t7103OE.obj" created, size=94. "t7103.htm"{106} I0650 Program "t7103OE" assembled in 3 passes with errorlevel 0. "t7103.htm"{106} I0470 Assembling program "t7103". "t7103.htm"{112} I0510 Assembling program pass 1. "t7103.htm"{112} I0530 Assembling program pass 2 - final. "t7103.htm"{112} I0560 Linking OMF module ".\t7103OW.obj". "t7103.htm"{115} I0560 Linking OMF module ".\t7103OB.obj". "t7103.htm"{115} I0560 Linking OMF module ".\t7103OE.obj". "t7103.htm"{115} I0660 16bit SMALL LIBOMF file "t7103.lib" created, size=1536. "t7103.htm"{115} I0650 Program "t7103" assembled in 2 passes with errorlevel 0. "t7103.htm"{115} I0750 Source "t7103" (257 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t7103.htm.lst" created, size=3910. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t7103. 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 30 33 4F 57 89 88 10 00 00  ¤·°·t7103OW¤¤·°°
0020: 00 45 75 72 6F 41 73 73 65 6D 62 6C 65 72 2F 88  °EuroAssembler/¤
0030: 05 00 00 9D 33 3F 64 96 07 00 00 04 43 4F 44 45  ·°°¤3?d¤·°°·CODE
0040: 44 98 07 00 68 0E 00 02 01 00 E8 90 10 00 00 01  D¤·°h·°··°¤¤·°°·
0050: 09 57 72 69 74 65 2E 44 31 36 00 00 00 72 A0 12  ·Write.D16°°°r¤·
0060: 00 01 00 00 B4 02 8A 14 84 D2 74 05 CD 21 46 EB  °·°°¤·¤·¤¤t·¤!F¤
0070: F5 C3 53 8A 0A 00 00 00 00 00 00 00 00 00 00 6C  ¤¤S¤¬°°°°°°°°°°l
0080: 82 09 00 07 74 37 31 30 33 4F 42 9E 88 10 00 00  ¤·°·t7103OB¤¤·°°
0090: 00 45 75 72 6F 41 73 73 65 6D 62 6C 65 72 2F 88  °EuroAssembler/¤
00A0: 05 00 00 9D 33 3F 64 96 07 00 00 04 43 4F 44 45  ·°°¤3?d¤·°°·CODE
00B0: 44 98 07 00 68 07 00 02 01 00 EF 90 0F 00 00 01  D¤·°h·°··°¤¤·°°·
00C0: 08 42 65 65 70 2E 44 31 36 00 00 00 03 A0 0B 00  ·Beep.D16°°°·¤·°
00D0: 01 00 00 B2 07 B4 02 CD 21 C3 34 8A 02 00 00 74  ·°°¤·¤·¤!¤4¤·°°t
00E0: 82 09 00 07 74 37 31 30 33 4F 45 9B 88 10 00 00  ¤·°·t7103OE¤¤·°°
00F0: 00 45 75 72 6F 41 73 73 65 6D 62 6C 65 72 2F 88  °EuroAssembler/¤
0100: 05 00 00 9D 33 3F 64 96 07 00 00 04 43 4F 44 45  ·°°¤3?d¤·°°·CODE
0110: 44 98 07 00 68 05 00 02 01 00 F1 90 0F 00 00 01  D¤·°h·°··°¤¤·°°·
0120: 08 45 78 69 74 2E 44 31 36 00 00 00 E5 A0 09 00  ·Exit.D16°°°¤¤·°
0130: 01 00 00 B8 00 4C CD 21 64 8A 04 00 00 00 00 72  ·°°¤°L¤!d¤·°°°°r
0140: F1 BD 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ¤¤°°°°°°°°°°°°°°
0150: 00 00 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 52  °°°°°°°°°°°°°°°R
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 0E 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▲