EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t7304: Compile LIBCOF 16bit Dos


Description
Test creates linkable 16bit LIBCOF file t7304.lib.
See also
LinkerCombinations  
Tested procedures
PflibcofCompile  
Source & expected listing t7304.htm.lst
| | EUROASM DEBUG=OFF,PROFILE=OFF,AUTOSEGMENT=ON,LIST=ON, \ | | DUMP=ON,DUMPWIDTH=25,DUMPALL=OFF,CPU=386 | |;; | |t7304 PROGRAM FORMAT=LIBCOF,MODEL=FLAT,WIDTH=16, \ | | LISTMAP=OFF,LISTGLOBALS=OFF | | PUBLIC Write.D16, Beep.D16, Exit.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: |000E: |Beep.D16: PROC ; Echo beep sound in 16bit DOS. |000E:B207 | MOV DL,7 ; BEL character, interpreted as beep sound. |0010:B402 | MOV AH,2 ; DOS function WRITE CHARACTER TO STANDARD OUTPUT. |0012:CD21 | INT 0x21 ; Call DOS service to send a BEL. |0014:C3 | RET ; Return to caller. |0015: | ENDPROC Beep.D16: |0015: |Exit.D16: PROC ; Terminate program in 16bit DOS. |0015:B8004C | MOV AX,4C00h ; DOS function TERMINATE WITH RETURN CODE IN AL. |0018:CD21 | INT 21h ; Call DOS service to terminate the program. |001A: | ENDPROC Exit.D16: | |ENDPROGRAM t7304
Expected messages t7304.out
I0180 Assembling source file "t7304.htm". I0270 Assembling source "t7304". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t7304". "t7304.htm"{59} I0510 Assembling program pass 1. "t7304.htm"{59} I0510 Assembling program pass 2. "t7304.htm"{59} I0530 Assembling program pass 3 - final. "t7304.htm"{59} I0660 16bit FLAT LIBCOF file "t7304.lib" created, size=626. "t7304.htm"{83} I0650 Program "t7304" assembled in 3 passes with errorlevel 0. "t7304.htm"{83} I0750 Source "t7304" (146 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t7304.htm.lst" created, size=2020. I0990 EuroAssembler terminated with errorlevel 0.
Expected output file t7304. 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 18 00 00 01 18  ¯¯`¬°°°·°°··°°··
0050: 00 00 01 18 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: 34 36 20 20 20 20 20 20 20 20 60 0A 01 00 00 00  46¯¯¯¯¯¯¯¯`¬·°°°
00B0: 18 01 00 00 03 00 00 00 01 00 01 00 01 00 42 65  ··°°·°°°·°·°·°Be
00C0: 65 70 2E 44 31 36 00 45 78 69 74 2E 44 31 36 00  ep.D16°Exit.D16°
00D0: 57 72 69 74 65 2E 44 31 36 00 2F 2F 20 20 20 20  Write.D16°//¯¯¯¯
00E0: 20 20 20 20 20 20 20 20 20 20 30 20 20 20 20 20  ¯¯¯¯¯¯¯¯¯¯0¯¯¯¯¯
00F0: 20 20 20 20 20 20 30 20 20 20 20 20 30 20 20 20  ¯¯¯¯¯¯0¯¯¯¯¯0¯¯¯
0100: 20 20 31 30 30 36 36 36 20 20 32 20 20 20 20 20  ¯¯100666¯¯2¯¯¯¯¯
0110: 20 20 20 20 60 0A 00 0A 74 37 33 30 34 2F 20 20  ¯¯¯¯`¬°¬t7304/¯¯
0120: 20 20 20 20 20 20 20 20 30 20 20 20 20 20 20 20  ¯¯¯¯¯¯¯¯0¯¯¯¯¯¯¯
0130: 20 20 20 20 30 20 20 20 20 20 30 20 20 20 20 20  ¯¯¯¯0¯¯¯¯¯0¯¯¯¯¯
0140: 31 30 30 36 36 36 20 20 32 38 36 20 20 20 20 20  100666¯¯286¯¯¯¯¯
0150: 20 20 60 0A 4C 01 01 00 00 00 00 00 56 00 00 00  ¯¯`¬L··°°°°°V°°°
0160: 09 00 00 00 00 00 00 00 2E 74 65 78 74 00 00 00  ·°°°°°°°.text°°°
0170: 00 00 00 00 00 00 00 00 1A 00 00 00 3C 00 00 00  °°°°°°°°·°°°<°°°
0180: 00 00 00 00 00 00 00 00 00 00 00 00 20 00 50 60  °°°°°°°°°°°°¯°P`
0190: B4 02 8A 14 84 D2 74 05 CD 21 46 EB F5 C3 B2 07  ¤·¤·¤¤t·¤!F¤¤¤¤·
01A0: B4 02 CD 21 C3 B8 00 4C CD 21 2E 66 69 6C 65 00  ¤·¤!¤¤°L¤!.file°
01B0: 00 00 00 00 00 00 FE FF 00 00 67 01 74 37 33 30  °°°°°°¤¤°°g·t730
01C0: 34 2E 68 74 6D 00 00 00 00 00 00 00 00 00 2E 74  4.htm°°°°°°°°°.t
01D0: 65 78 74 00 00 00 00 00 00 00 01 00 00 00 03 01  ext°°°°°°°·°°°··
01E0: 1A 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ·°°°°°°°°°°°°°°°
01F0: 00 00 00 00 00 00 04 00 00 00 00 00 00 00 01 00  °°°°°°·°°°°°°°·°
0200: 01 02 02 00 42 65 65 70 2E 44 31 36 0E 00 00 00  ···°Beep.D16·°°°
0210: 01 00 01 02 02 00 45 78 69 74 2E 44 31 36 15 00  ·°···°Exit.D16·°
0220: 00 00 01 00 01 02 02 00 00 00 00 00 0E 00 00 00  °°·°···°°°°°·°°°
0230: 02 00 00 00 01 00 00 00 03 00 00 00 00 00 1A 00  ·°°°·°°°·°°°°°·°
0240: 00 00 0D 00 00 00 01 00 00 00 03 00 26 00 00 00  °°·°°°·°°°·°&°°°
0250: 57 72 69 74 65 2E 44 31 36 00 57 72 69 74 65 2E  Write.D16°Write.
0260: 44 31 36 2E 31 00 57 72 69 74 65 2E 44 31 36 2E  D16.1°Write.D16.
0270: 39 00                                            9°

▲Back to the top▲