EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t3018: 64bit addressing mode combinations in COFF format


See also
t3016   t3019  
Tested procedures
IiFlush   PseudoGROUP  
Source & expected listing t3018.htm.lst
| | EUROASM DUMPALL=YES, DUMPWIDTH=40, CPU=X64 | |t3018 PROGRAM FORMAT=COFF, MODEL=FLAT, WIDTH=64, ICONFILE=, \ | | FILEALIGN=16, SECTIONALIGN=4K, IMAGEBASE=4M, \ | | LISTMAP=YES, LISTGLOBALS=YES |[.text] |[.text] SEGMENT PURPOSE=CODE, ALIGN=16 |00000000:90 | NOP |00000001:6748A1[08000000] |Main:: MOV RAX,[Qword] |00000008:6748A1[08000000] | MOV RAX,[Qword],ADDR=ABS |0000000F:48B8[0300000000000000] | MOV RAX,FarProc |00000019:6748A3[08000000] | MOV [Qword],RAX |00000020:488D05(03000000) | LEA RAX,[FarProc] |00000027:488D05(03000000) | LEA RAX,[FarProc],ADDR=REL |0000002E:488D0425[03000000] | LEA RAX,[FarProc],ADDR=ABS |00000036:48C705(08000000)CCBBAA99 | MOV [Qword],99AABBCCh |00000041:48C705(08000000)CCBBAA99 | MOV [Qword],99AABBCCh,ADDR=REL |0000004C:48C70425[08000000]CCBBAA99 | MOV [Qword],99AABBCCh,ADDR=ABS |00000058:48C705(08000000)[03000000] | MOV [Qword],FarProc |00000063:48C705(08000000)[03000000] | MOV [Qword],FarProc,ADDR=REL |0000006E:48C70425[08000000][03000000] | MOV [Qword],FarProc,ADDR=ABS |0000007A:E80A000000 | CALL NearProc |0000007F:E8(03000000) | CALL FarProc |00000084:E8(00000000) | CALL ExitProcess |00000089: |NearProc:PROC |00000089:90 | NOP |0000008A:90 | NOP |0000008B:C3 | RET |0000008C: | ENDP NearProc: |[.text2] |[.text2] SEGMENT PURPOSE=CODE, ALIGN=16 |00000000:90 | NOP |00000001:90 | NOP |00000002:90 | NOP |00000003: |FarProc:PROC |00000003:90 | NOP |00000004:C3 | RET |00000005: | ENDP FarProc: | |[.text] GROUP [.text],[.text2] | |ExitProcess:: IMPORT LIB=kernel32.dll |[.data] |[.data] SEGMENT PURPOSE=DATA, ALIGN=16 |00000000:8888888888888888 | DB 8*BYTE 0x88 |00000008:8877665544332211 |Qword: DQ 1122334455667788h | | %DISPLAY RELOC |# D1550 **** %DISPLAY Relocations |# D1560 [.text]:00000004h,target=[.data]:00000000h,frame=[.data],width=32,type=abs |# D1560 [.text]:0000000Bh,target=[.data]:00000000h,frame=[.data],width=32,type=abs |# D1560 [.text]:00000011h,target=[.text2]:00000000h,frame=[.text],width=64,type=abs |# D1560 [.text]:0000001Ch,target=[.data]:00000000h,frame=[.data],width=32,type=abs |# D1560 [.text]:00000023h,target=[.text2]:00000000h,frame=[.text],width=32,type=rel |# D1560 [.text]:0000002Ah,target=[.text2]:00000000h,frame=[.text],width=32,type=rel |# D1560 [.text]:00000032h,target=[.text2]:00000000h,frame=[.text],width=32,type=abs |# D1560 [.text]:00000039h,target=[.data]:00000000h,frame=[.data],width=32,type=rel+4 |# D1560 [.text]:00000044h,target=[.data]:00000000h,frame=[.data],width=32,type=rel+4 |# D1560 [.text]:00000050h,target=[.data]:00000000h,frame=[.data],width=32,type=abs |# D1560 [.text]:0000005Bh,target=[.data]:00000000h,frame=[.data],width=32,type=rel+4 |# D1560 [.text]:0000005Fh,target=[.text2]:00000000h,frame=[.text],width=32,type=abs |# D1560 [.text]:00000066h,target=[.data]:00000000h,frame=[.data],width=32,type=rel+4 |# D1560 [.text]:0000006Ah,target=[.text2]:00000000h,frame=[.text],width=32,type=abs |# D1560 [.text]:00000072h,target=[.data]:00000000h,frame=[.data],width=32,type=abs |# D1560 [.text]:00000076h,target=[.text2]:00000000h,frame=[.text],width=32,type=abs |# D1560 [.text]:00000080h,target=[.text2]:00000000h,frame=[.text],width=32,type=rel |# D1560 [.text]:00000085h,target=[ExitProcess]:00000000h,frame=[ExitProcess],width=32,type=rel |# D1790 **** End of %DISPLAY | | ENDPROGRAM t3018 | **** ListMap "t3018.obj",groups=1,segments=4,entry=,stack= | [.text],RVA=00000000h,size=0000008Ch=140,group [.text] [.text2] | [.text],RVA=00000000h,size=0000008Ch=140,width=64,align=0010h,purpose=CODE | [.text2],RVA=00000000h,size=00000005h=5,width=64,align=0010h,purpose=CODE | [.data],RVA=00000000h,size=00000010h=16,width=64,align=0010h,purpose=DATA | [.drectve],RVA=00000000h,size=00000014h=20,width=0,align=0,purpose=DRECTVE | **** ListGlobals "t3018.obj",Global=0,Public=1,Extern=0,eXport=0,Import=1 | ExitProcess,[ExitProcess]:00000000h,scope='I',lib="kernel32.dll" | Main,[.text]:00000001h,scope='P' |[BIN] ::::Section changed. |0000: |
Expected messages t3018.out
I0180 Assembling source file "t3018.htm". I0270 Assembling source "t3018". I0310 Assembling source pass 1. D1550 **** %DISPLAY Relocations "t3018.htm"{99} D1790 **** End of %DISPLAY "t3018.htm"{99} I0330 Assembling source pass 2 - final. I0470 Assembling program "t3018". "t3018.htm"{60} I0510 Assembling program pass 1. "t3018.htm"{60} D1550 **** %DISPLAY Relocations "t3018.htm"{99} D1790 **** End of %DISPLAY "t3018.htm"{99} I0510 Assembling program pass 2. "t3018.htm"{60} D1550 **** %DISPLAY Relocations "t3018.htm"{99} D1790 **** End of %DISPLAY "t3018.htm"{99} I0510 Assembling program pass 3. "t3018.htm"{60} D1550 **** %DISPLAY Relocations "t3018.htm"{99} D1790 **** End of %DISPLAY "t3018.htm"{99} I0530 Assembling program pass 4 - final. "t3018.htm"{60} D1550 **** %DISPLAY Relocations "t3018.htm"{99} D1560 [.text]:00000004h,target=[.data]:00000000h,frame=[.data],width=32,type=abs "t3018.htm"{99} D1560 [.text]:0000000Bh,target=[.data]:00000000h,frame=[.data],width=32,type=abs "t3018.htm"{99} D1560 [.text]:00000011h,target=[.text2]:00000000h,frame=[.text],width=64,type=abs "t3018.htm"{99} D1560 [.text]:0000001Ch,target=[.data]:00000000h,frame=[.data],width=32,type=abs "t3018.htm"{99} D1560 [.text]:00000023h,target=[.text2]:00000000h,frame=[.text],width=32,type=rel "t3018.htm"{99} D1560 [.text]:0000002Ah,target=[.text2]:00000000h,frame=[.text],width=32,type=rel "t3018.htm"{99} D1560 [.text]:00000032h,target=[.text2]:00000000h,frame=[.text],width=32,type=abs "t3018.htm"{99} D1560 [.text]:00000039h,target=[.data]:00000000h,frame=[.data],width=32,type=rel+4 "t3018.htm"{99} D1560 [.text]:00000044h,target=[.data]:00000000h,frame=[.data],width=32,type=rel+4 "t3018.htm"{99} D1560 [.text]:00000050h,target=[.data]:00000000h,frame=[.data],width=32,type=abs "t3018.htm"{99} D1560 [.text]:0000005Bh,target=[.data]:00000000h,frame=[.data],width=32,type=rel+4 "t3018.htm"{99} D1560 [.text]:0000005Fh,target=[.text2]:00000000h,frame=[.text],width=32,type=abs "t3018.htm"{99} D1560 [.text]:00000066h,target=[.data]:00000000h,frame=[.data],width=32,type=rel+4 "t3018.htm"{99} D1560 [.text]:0000006Ah,target=[.text2]:00000000h,frame=[.text],width=32,type=abs "t3018.htm"{99} D1560 [.text]:00000072h,target=[.data]:00000000h,frame=[.data],width=32,type=abs "t3018.htm"{99} D1560 [.text]:00000076h,target=[.text2]:00000000h,frame=[.text],width=32,type=abs "t3018.htm"{99} D1560 [.text]:00000080h,target=[.text2]:00000000h,frame=[.text],width=32,type=rel "t3018.htm"{99} D1560 [.text]:00000085h,target=[ExitProcess]:00000000h,frame=[ExitProcess],width=32,type=rel "t3018.htm"{99} D1790 **** End of %DISPLAY "t3018.htm"{99} I0660 64bit FLAT COFF file "t3018.obj" created, size=850. "t3018.htm"{120} I0650 Program "t3018" assembled in 4 passes with errorlevel 1. "t3018.htm"{120} I0750 Source "t3018" (237 lines) assembled in 2 passes with errorlevel 1. I0860 Listing file "t3018.htm.lst" created, size=5294. I0990 EuroAssembler terminated with errorlevel 1.
Expected output file t3018. obj
0000: 64 86 04 00 00 00 00 00 34 02 00 00 0F 00 00 00  d¤·°°°°°4·°°·°°°
0010: 00 00 20 00 2E 74 65 78 74 00 00 00 00 00 00 00  °°¯°.text°°°°°°°
0020: 00 00 00 00 8C 00 00 00 C0 00 00 00 4C 01 00 00  °°°°¤°°°¤°°°L·°°
0030: 00 00 00 00 12 00 00 00 20 00 50 60 2E 74 65 78  °°°°·°°°¯°P`.tex
0040: 74 32 00 00 00 00 00 00 00 00 00 00 05 00 00 00  t2°°°°°°°°°°·°°°
0050: 00 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °·°°°°°°°°°°°°°°
0060: 20 00 50 60 2E 64 61 74 61 00 00 00 00 00 00 00  ¯°P`.data°°°°°°°
0070: 00 00 00 00 10 00 00 00 10 02 00 00 00 00 00 00  °°°°·°°°··°°°°°°
0080: 00 00 00 00 00 00 00 00 40 00 50 C0 2E 64 72 65  °°°°°°°°@°P¤.dre
0090: 63 74 76 65 00 00 00 00 00 00 00 00 14 00 00 00  ctve°°°°°°°°·°°°
00A0: 20 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ¯·°°°°°°°°°°°°°°
00B0: 00 0A 10 02 00 00 00 00 00 00 00 00 00 00 00 00  °¬··°°°°°°°°°°°°
00C0: 90 67 48 A1 08 00 00 00 67 48 A1 08 00 00 00 48  ¤gH¤·°°°gH¤·°°°H
00D0: B8 03 00 00 00 00 00 00 00 67 48 A3 08 00 00 00  ¤·°°°°°°°gH¤·°°°
00E0: 48 8D 05 03 00 00 00 48 8D 05 03 00 00 00 48 8D  H¤··°°°H¤··°°°H¤
00F0: 04 25 03 00 00 00 48 C7 05 08 00 00 00 CC BB AA  ·%·°°°H¤··°°°¤¤¤
0100: 99 48 C7 05 08 00 00 00 CC BB AA 99 48 C7 04 25  ¤H¤··°°°¤¤¤¤H¤·%
0110: 08 00 00 00 CC BB AA 99 48 C7 05 08 00 00 00 03  ·°°°¤¤¤¤H¤··°°°·
0120: 00 00 00 48 C7 05 08 00 00 00 03 00 00 00 48 C7  °°°H¤··°°°·°°°H¤
0130: 04 25 08 00 00 00 03 00 00 00 E8 0A 00 00 00 E8  ·%·°°°·°°°¤¬°°°¤
0140: 03 00 00 00 E8 00 00 00 00 90 90 C3 04 00 00 00  ·°°°¤°°°°¤¤¤·°°°
0150: 06 00 00 00 02 00 0B 00 00 00 06 00 00 00 02 00  ·°°°·°·°°°·°°°·°
0160: 11 00 00 00 04 00 00 00 01 00 1C 00 00 00 06 00  ·°°°·°°°·°·°°°·°
0170: 00 00 02 00 23 00 00 00 04 00 00 00 04 00 2A 00  °°·°#°°°·°°°·°*°
0180: 00 00 04 00 00 00 04 00 32 00 00 00 04 00 00 00  °°·°°°·°2°°°·°°°
0190: 02 00 39 00 00 00 06 00 00 00 08 00 44 00 00 00  ·°9°°°·°°°·°D°°°
01A0: 06 00 00 00 08 00 50 00 00 00 06 00 00 00 02 00  ·°°°·°P°°°·°°°·°
01B0: 5B 00 00 00 06 00 00 00 08 00 5F 00 00 00 04 00  [°°°·°°°·°_°°°·°
01C0: 00 00 02 00 66 00 00 00 06 00 00 00 08 00 6A 00  °°·°f°°°·°°°·°j°
01D0: 00 00 04 00 00 00 02 00 72 00 00 00 06 00 00 00  °°·°°°·°r°°°·°°°
01E0: 02 00 76 00 00 00 04 00 00 00 02 00 80 00 00 00  ·°v°°°·°°°·°¤°°°
01F0: 04 00 00 00 04 00 85 00 00 00 0E 00 00 00 04 00  ·°°°·°¤°°°·°°°·°
0200: 90 90 90 90 C3 00 00 00 00 00 00 00 00 00 00 00  ¤¤¤¤¤°°°°°°°°°°°
0210: 88 88 88 88 88 88 88 88 88 77 66 55 44 33 22 11  ¤¤¤¤¤¤¤¤¤wfUD3"·
0220: 20 2F 49 4D 50 4F 52 54 3A 45 78 69 74 50 72 6F  ¯/IMPORT:ExitPro
0230: 63 65 73 73 2E 66 69 6C 65 00 00 00 00 00 00 00  cess.file°°°°°°°
0240: FE FF 00 00 67 01 74 33 30 31 38 2E 68 74 6D 00  ¤¤°°g·t3018.htm°
0250: 00 00 00 00 00 00 00 00 2E 74 65 78 74 00 00 00  °°°°°°°°.text°°°
0260: 00 00 00 00 01 00 00 00 03 01 8C 00 00 00 12 00  °°°°·°°°··¤°°°·°
0270: 00 00 00 00 00 00 00 00 00 00 00 00 2E 74 65 78  °°°°°°°°°°°°.tex
0280: 74 32 00 00 00 00 00 00 02 00 00 00 03 01 05 00  t2°°°°°°·°°°···°
0290: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
02A0: 2E 64 61 74 61 00 00 00 00 00 00 00 03 00 00 00  .data°°°°°°°·°°°
02B0: 03 01 10 00 00 00 00 00 00 00 00 00 00 00 00 00  ···°°°°°°°°°°°°°
02C0: 00 00 00 00 2E 64 72 65 63 74 76 65 00 00 00 00  °°°°.drectve°°°°
02D0: 04 00 00 00 03 01 14 00 00 00 00 00 00 00 00 00  ·°°°···°°°°°°°°°
02E0: 00 00 00 00 00 00 00 00 51 77 6F 72 64 00 00 00  °°°°°°°°Qword°°°
02F0: 08 00 00 00 03 00 0E 00 03 00 4D 61 69 6E 00 00  ·°°°·°·°·°Main°°
0300: 00 00 01 00 00 00 01 00 00 00 02 00 46 61 72 50  °°·°°°·°°°·°FarP
0310: 72 6F 63 00 03 00 00 00 02 00 01 02 03 00 4E 65  roc°·°°°·°···°Ne
0320: 61 72 50 72 6F 63 89 00 00 00 01 00 01 02 03 00  arProc¤°°°·°···°
0330: 00 00 00 00 04 00 00 00 00 00 00 00 00 00 01 01  °°°°·°°°°°°°°°··
0340: 02 00 10 00 00 00 45 78 69 74 50 72 6F 63 65 73  ·°·°°°ExitProces
0350: 73 00                                            s°

▲Back to the top▲