| Index | Manual | Download | Source | Macros | Embedded word Case ins.
Sitemap | Links | Forum | Tests | Projects

# Test t8915: COFF import module for 32bit Windows links COFF import module

Source & expected listing t8915.htm.lst
  `| | EUROASM AUTOSEGMENT=ON,CPU=386,DUMPWIDTH=25 |7438393135 |%test %SET t8915 | |;; Create auxilliary COFF import module. | |%test.coff PROGRAM FORMAT=COFF | | IMPORT Write.W32,Beep.W32,Exit.W32, lib=%test.dll | | ENDPROGRAM %test.coff | **** ListMap "t8915.coff.obj",model=FLAT,groups=0,segments=1,entry=,stack= | [.drectve],FA=0000003Ch,RVA=00000000h,size=00000058h=88,width=0,align=1,purpose=DRECTVE | **** ListGlobals "t8915.coff.obj",Global=0,Public=0,Extern=0,eXport=0,Import=3 | Beep.W32,[Beep.W32]:00000000h,scope='I',lib="t8915.dll" | Exit.W32,[Exit.W32]:00000000h,scope='I',lib="t8915.dll" | Write.W32,[Write.W32]:00000000h,scope='I',lib="t8915.dll" | |;; | |;; Create the main COFF import module. | |%test PROGRAM FORMAT=COFF | | LINK %test.coff.obj | | ENDPROGRAM %test |# I0560 Linking COFF module "./t8915.coff.obj". |# I0563 Accepting link directive '/IMPORT:Write.W32:"t8915.dll"'. |# I0563 Accepting link directive '/IMPORT:Beep.W32:"t8915.dll"'. |# I0563 Accepting link directive '/IMPORT:Exit.W32:"t8915.dll"'. | **** ListMap "t8915.obj",model=FLAT,groups=0,segments=1,entry=,stack= | [.drectve],FA=0000003Ch,RVA=00000000h,size=00000058h=88,width=0,align=1,purpose=DRECTVE | **** ListGlobals "t8915.obj",Global=0,Public=0,Extern=0,eXport=0,Import=3 | Beep.W32,[Beep.W32]:00000000h,scope='I',lib="t8915.dll" | Exit.W32,[Exit.W32]:00000000h,scope='I',lib="t8915.dll" | Write.W32,[Write.W32]:00000000h,scope='I',lib="t8915.dll"`

Expected messages t8915.out
  `I0180 Assembling source file "t8915.htm". I0270 Assembling source "t8915". I0310 Assembling source pass 1. I0330 Assembling source pass 2 - final. I0470 Assembling program "t8915.coff". "t8915.htm"{44} I0510 Assembling program pass 1. "t8915.htm"{44} I0510 Assembling program pass 2. "t8915.htm"{44} I0530 Assembling program pass 3 - final. "t8915.htm"{44} I0660 32bit FLAT COFF file "t8915.coff.obj" created, size=288. "t8915.htm"{46} I0650 Program "t8915.coff" assembled in 3 passes with errorlevel 0. "t8915.htm"{46} I0470 Assembling program "t8915". "t8915.htm"{55} I0510 Assembling program pass 1. "t8915.htm"{55} I0530 Assembling program pass 2 - final. "t8915.htm"{55} I0560 Linking COFF module "./t8915.coff.obj". "t8915.htm"{57} I0563 Accepting link directive '/IMPORT:Write.W32:"t8915.dll"'. "t8915.htm"{57} I0563 Accepting link directive '/IMPORT:Beep.W32:"t8915.dll"'. "t8915.htm"{57} I0563 Accepting link directive '/IMPORT:Exit.W32:"t8915.dll"'. "t8915.htm"{57} I0660 32bit FLAT COFF file "t8915.obj" created, size=288. "t8915.htm"{57} I0650 Program "t8915" assembled in 2 passes with errorlevel 0. "t8915.htm"{57} I0750 Source "t8915" (117 lines) assembled in 2 passes with errorlevel 0. I0860 Listing file "t8915.htm.lst" created, size=1814. I0990 EuroAssembler terminated with errorlevel 0.`

Expected output file t8915. obj

      0000: 4C 01 01 00 00 00 00 00 94 00 00 00 07 00 00 00  L··°°°°°¤°°°·°°°
      0010: 00 00 00 01 2E 64 72 65 63 74 76 65 00 00 00 00  °°°·.drectve°°°°
      0020: 00 00 00 00 58 00 00 00 3C 00 00 00 00 00 00 00  °°°°X°°°<°°°°°°°
      0030: 00 00 00 00 00 00 00 00 00 0A 10 02 20 2F 49 4D  °°°°°°°°°¬··¯/IM
      0040: 50 4F 52 54 3A 42 65 65 70 2E 57 33 32 3A 22 74  PORT:Beep.W32:"t
      0050: 38 39 31 35 2E 64 6C 6C 22 20 2F 49 4D 50 4F 52  8915.dll"¯/IMPOR
      0060: 54 3A 45 78 69 74 2E 57 33 32 3A 22 74 38 39 31  T:Exit.W32:"t891
      0070: 35 2E 64 6C 6C 22 20 2F 49 4D 50 4F 52 54 3A 57  5.dll"¯/IMPORT:W
      0080: 72 69 74 65 2E 57 33 32 3A 22 74 38 39 31 35 2E  rite.W32:"t8915.
      0090: 64 6C 6C 22 2E 66 69 6C 65 00 00 00 00 00 00 00  dll".file°°°°°°°
      00A0: FE FF 00 00 67 01 74 38 39 31 35 2E 68 74 6D 00  ¤¤°°g·t8915.htm°
      00B0: 00 00 00 00 00 00 00 00 2E 64 72 65 63 74 76 65  °°°°°°°°.drectve
      00C0: 00 00 00 00 01 00 00 00 03 01 58 00 00 00 00 00  °°°°·°°°··X°°°°°
      00D0: 00 00 00 00 00 00 00 00 00 00 00 00 42 65 65 70  °°°°°°°°°°°°Beep
      00E0: 2E 57 33 32 00 00 00 00 00 00 01 01 02 00 45 78  .W32°°°°°°···°Ex
      00F0: 69 74 2E 57 33 32 00 00 00 00 00 00 01 01 02 00  it.W32°°°°°°···°
      0100: 00 00 00 00 04 00 00 00 00 00 00 00 00 00 01 01  °°°°·°°°°°°°°°··
      0110: 02 00 0E 00 00 00 57 72 69 74 65 2E 57 33 32 00  ·°·°°°Write.W32°

▲Back to the top▲