EuroAssembler Index Manual Download Source Macros


Sitemap Links Forum Tests Projects

Test t1653: Attribute RVA# in 64 bit mode


Description
Attribute RVA# returns relative virtual address of a symbol as a DWORD variable in 64-bit mode.
Tested procedures
ExpEval   ExpEvalData   RelocResolve  
Source & expected listing t1653.htm.lst
| | EUROASM CPU=X64,LIST=ON,DUMP=ON,AUTOALIGN=ON,DUMPWIDTH=26 | |t1653 PROGRAM Format=PE, Width=64, Model=Flat, IconFile=, \ | | SectionAlign=256, FileAlign=16, Entry=Start,\ | | ListMap=ON,ListGlobals=ON |[.text] |[.text] |00000000:434F4445 | DB 'CODE' |00000004:90 |Start: NOP |00000005:90 |try:: NOP |00000006:90 |finally::NOP |00000007:90 |catch:: NOP |[.data] |[.data] |00000000:44415441 | DB 'DATA' |00000004:[0700C0FF] |unwind:: DD RVA# catch: |[.pdata] |[.pdata] SEGMENT Purpose=EXCEPTION |00000000:5044415441 | DB 'PDATA' |00000005:000000 | ALIGN 4 |00000008:[0500C0FF] | DD RVA# try: |0000000C:[0600C0FF] | DD RVA# finally: |00000010:[0400C0FF] | DD RVA# unwind: | | %DISPLAY Relocations |# D1550 **** %DISPLAY Relocations |# D1570 at=[.data]:00000004h,width=32,obj=FFC00007h,add=00000000h,type=abs,tg=.text,[.text]:00000000h |# D1570 at=[.pdata]:00000008h,width=32,obj=FFC00005h,add=00000000h,type=abs,tg=.text,[.text]:00000000h |# D1570 at=[.pdata]:0000000Ch,width=32,obj=FFC00006h,add=00000000h,type=abs,tg=.text,[.text]:00000000h |# D1570 at=[.pdata]:00000010h,width=32,obj=FFC00004h,add=00000000h,type=abs,tg=.data,[.data]:00000000h |# D1790 **** End of %DISPLAY | | ENDPROGRAM t1653 | **** ListMap "t1653.exe",model=FLAT,groups=0,segments=4,entry=Start,stack= | [.text],FA=00000240h,VA=00400300h,size=00000008h=8,width=64,align=0010h,purpose=CODE | [.data],FA=00000250h,VA=00400400h,size=00000008h=8,width=64,align=0010h,purpose=DATA | [.pdata],FA=00000260h,VA=00400500h,size=00000014h=20,width=64,align=0010h,purpose=EXCEPTION | [.reloc],FA=00000280h,VA=00400600h,size=0000001Ch=28,width=32,align=4,purpose=BASERELOC | **** ListGlobals "t1653.exe",Global=0,Public=5,Extern=0,eXport=0,Import=0 | catch,[.text]:00000007h,VA=00400307h,scope='P' | finally,[.text]:00000006h,VA=00400306h,scope='P' | Start,[.text]:00000004h,VA=00400304h,scope='P' | try,[.text]:00000005h,VA=00400305h,scope='P' | unwind,[.data]:00000004h,VA=00400404h,scope='P'
Expected messages t1653.out
I0180 Assembling source file "t1653.htm". I0270 Assembling source "t1653". I0310 Assembling source pass 1. D1550 **** %DISPLAY Relocations "t1653.htm"{76} D1790 **** End of %DISPLAY "t1653.htm"{76} I0330 Assembling source pass 2 - final. I0470 Assembling program "t1653". "t1653.htm"{58} I0510 Assembling program pass 1. "t1653.htm"{58} D1550 **** %DISPLAY Relocations "t1653.htm"{76} D1790 **** End of %DISPLAY "t1653.htm"{76} I0510 Assembling program pass 2. "t1653.htm"{58} D1550 **** %DISPLAY Relocations "t1653.htm"{76} D1790 **** End of %DISPLAY "t1653.htm"{76} I0530 Assembling program pass 3 - final. "t1653.htm"{58} D1550 **** %DISPLAY Relocations "t1653.htm"{76} D1570 at=[.data]:00000004h,width=32,obj=FFC00007h,add=00000000h,type=abs,tg=.text,[.text]:00000000h "t1653.htm"{76} D1570 at=[.pdata]:00000008h,width=32,obj=FFC00005h,add=00000000h,type=abs,tg=.text,[.text]:00000000h "t1653.htm"{76} D1570 at=[.pdata]:0000000Ch,width=32,obj=FFC00006h,add=00000000h,type=abs,tg=.text,[.text]:00000000h "t1653.htm"{76} D1570 at=[.pdata]:00000010h,width=32,obj=FFC00004h,add=00000000h,type=abs,tg=.data,[.data]:00000000h "t1653.htm"{76} D1790 **** End of %DISPLAY "t1653.htm"{76} I0660 64bit FLAT PE file "t1653.exe" created, size=668. "t1653.htm"{83} I0650 Program "t1653" assembled in 3 passes with errorlevel 1. "t1653.htm"{83} I0750 Source "t1653" (171 lines) assembled in 2 passes with errorlevel 1. I0860 Listing file "t1653.htm.lst" created, size=2448. I0990 EuroAssembler terminated with errorlevel 1.
Expected output file t1653. exe
0000: 4D 5A 89 00 01 00 00 00 04 00 21 00 FF FF 05 00  MZ¤°·°°°·°!°¤¤·°
0010: 00 02 BF A2 00 00 00 00 40 00 00 00 00 00 00 00  °·¤¤°°°°@°°°°°°°
0020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0030: 00 00 00 00 00 00 00 00 00 00 00 00 90 00 00 00  °°°°°°°°°°°°¤°°°
0040: 0E 1F BA 0E 00 B4 09 CD 21 B8 08 4C CD 21 54 68  ··¤·°¤·¤!¤·L¤!Th
0050: 69 73 20 70 72 6F 67 72 61 6D 20 77 61 73 20 6C  is¯program¯was¯l
0060: 61 75 6E 63 68 65 64 20 69 6E 20 44 4F 53 20 62  aunched¯in¯DOS¯b
0070: 75 74 20 69 74 20 72 65 71 75 69 72 65 73 20 57  ut¯it¯requires¯W
0080: 69 6E 64 6F 77 73 2E 24 00 00 00 00 00 00 00 00  indows.$°°°°°°°°
0090: 50 45 00 00 64 86 04 00 00 00 00 00 00 00 00 00  PE°°d¤·°°°°°°°°°
00A0: 00 00 00 00 F0 00 22 00 0B 02 01 00 00 01 00 00  °°°°¤°"°···°°·°°
00B0: 00 01 00 00 00 00 00 00 04 03 00 00 00 03 00 00  °·°°°°°°··°°°·°°
00C0: 00 00 40 00 00 00 00 00 00 01 00 00 10 00 00 00  °°@°°°°°°·°°·°°°
00D0: 04 00 00 00 01 00 00 00 04 00 00 00 00 00 00 00  ·°°°·°°°·°°°°°°°
00E0: 00 07 00 00 38 02 00 00 00 00 00 00 03 00 00 04  °·°°8·°°°°°°·°°·
00F0: 00 00 10 00 00 00 00 00 00 20 00 00 00 00 00 00  °°·°°°°°°¯°°°°°°
0100: 00 00 00 01 00 00 00 00 00 00 10 00 00 00 00 00  °°°·°°°°°°·°°°°°
0110: 00 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00  °°°°·°°°°°°°°°°°
0120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  °°°°°°°°°°°°°°°°
0130: 00 05 00 00 14 00 00 00 00 00 00 00 00 00 00 00  °·°°·°°°°°°°°°°°
0140: 00 06 00 00 1C 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 2E 74 65 78 74 00 00 00  °°°°°°°°.text°°°
01A0: 00 01 00 00 00 03 00 00 08 00 00 00 40 02 00 00  °·°°°·°°·°°°@·°°
01B0: 00 00 00 00 00 00 00 00 00 00 00 00 20 00 50 60  °°°°°°°°°°°°¯°P`
01C0: 2E 64 61 74 61 00 00 00 00 01 00 00 00 04 00 00  .data°°°°·°°°·°°
01D0: 08 00 00 00 50 02 00 00 00 00 00 00 00 00 00 00  ·°°°P·°°°°°°°°°°
01E0: 00 00 00 00 40 00 50 C0 2E 70 64 61 74 61 00 00  °°°°@°P¤.pdata°°
01F0: 00 01 00 00 00 05 00 00 14 00 00 00 60 02 00 00  °·°°°·°°·°°°`·°°
0200: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 50 40  °°°°°°°°°°°°°°P@
0210: 2E 72 65 6C 6F 63 00 00 00 01 00 00 00 06 00 00  .reloc°°°·°°°·°°
0220: 1C 00 00 00 80 02 00 00 00 00 00 00 00 00 00 00  ·°°°¤·°°°°°°°°°°
0230: 00 00 00 00 40 00 30 52 00 00 00 00 00 00 00 00  °°°°@°0R°°°°°°°°
0240: 43 4F 44 45 90 90 90 90 00 00 00 00 00 00 00 00  CODE¤¤¤¤°°°°°°°°
0250: 44 41 54 41 07 03 00 00 00 00 00 00 00 00 00 00  DATA··°°°°°°°°°°
0260: 50 44 41 54 41 00 00 00 05 03 00 00 06 03 00 00  PDATA°°°··°°··°°
0270: 04 04 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ··°°°°°°°°°°°°°°
0280: 00 04 00 00 0C 00 00 00 04 30 00 00 00 05 00 00  °·°°·°°°·0°°°·°°
0290: 10 00 00 00 08 30 0C 30 10 30 00 00              ·°°°·0·0·0°°

▲Back to the top▲