Search found 14 matches

by AndreyDmitriev
25 Oct 2025 09:00
Forum: Questions and answers
Topic: How to get RVA in EuroAssembler?
Replies: 8
Views: 38646

Re: How to get RVA in EuroAssembler?


I don't think that it is a problem anyway, 0x2000 or 0x3000, who cares? Of course you might avoid the literals and use named constants as in you first example.


I have no problems with constants at all, the only slightly annoying issue, especially in this case, is that they may change if I ...
by AndreyDmitriev
24 Oct 2025 19:00
Forum: Questions and answers
Topic: How to get RVA in EuroAssembler?
Replies: 8
Views: 38646

Re: How to get RVA in EuroAssembler?

And thank you for the example, but here is a small technical trouble: the .data section is now located at 0x3000 because you added constants directly to StdOutput. As a result, they were placed in the .rodata section. This additional section shifted .data from 0x2000 to 0x3000:
;...
handler:
SUB ...
by AndreyDmitriev
24 Oct 2025 15:18
Forum: Questions and answers
Topic: How to get RVA in EuroAssembler?
Replies: 8
Views: 38646

Re: How to get RVA in EuroAssembler?



However, I still don't understand the code in your handler , the structure of CONTEXT64, why mov [R8+0x0F8], safe_place, DATA=Q ,
who miraculously set R8 with what...


Oh, it is quite simple.
In Windows x64 SEH, when an exception occurs, the system calls my exception handler with the following ...
by AndreyDmitriev
24 Oct 2025 09:04
Forum: Questions and answers
Topic: How to get RVA in EuroAssembler?
Replies: 8
Views: 38646

Re: How to get RVA in EuroAssembler?


Currently I'm finishing a new version of €ASM but SEH will not be in it yet, I'm sorry.


Thank you for the quick response!

Just to clarify — no, no, I'm not asking for SEH to be implemented in EuroAssembler at all. That would be overengineering, and SEH is handled differently on different ...
by AndreyDmitriev
23 Oct 2025 19:04
Forum: Questions and answers
Topic: How to get RVA in EuroAssembler?
Replies: 8
Views: 38646

How to get RVA in EuroAssembler?

I trying to get SEH running in Assembly (Windows, x64).
Everything works as expected, but I unable to get RVA for my try... section, handler and unwind struct. For the moment, just for test, I placed hard coded constants, and it works, but how to do this in proper way?
Code:
EUROASM CPU=X64, SIMD ...
by AndreyDmitriev
26 Sep 2025 04:25
Forum: Questions and answers
Topic: Alignment greater than 16 - how to set without warnings?
Replies: 2
Views: 49448

Re: Alignment greater than 16 - how to set without warnings?

Thank you very much, this is exactly what I needed. I had already tried explicit declaration of the sections, but I used the wrong syntax and was not aware of auto segmentation. Now I understand how it should be and it works.
by AndreyDmitriev
24 Sep 2025 19:12
Forum: Questions and answers
Topic: Alignment greater than 16 - how to set without warnings?
Replies: 2
Views: 49448

Alignment greater than 16 - how to set without warnings?

If I try to set an alignment greater than 16 for some reason, the following warnings are issued:

W3410 Requested alignment 4096 is greater then alignment 16 of section [.bss]. "addresses.asm"{10}
W3410 Requested alignment 64 is greater then alignment 16 of section [.text]. "addresses.asm"{18 ...
by AndreyDmitriev
24 Sep 2025 18:12
Forum: Wish list
Topic: VPOPCNT is not present - please add it
Replies: 1
Views: 13663

VPOPCNT is not present - please add it

Hi Pavel,
it seems to be like VPOPCNT (VPOPCNTB, VPOPCNTW, VPOPCNTD, VPOPCNTQ) is not implemented yet, please consider to add it to the next release if you will have time.
https://www.felixcloutier.com/x86/vpopcnt
Thank you in advance,
Andrey.
by AndreyDmitriev
22 Nov 2024 13:17
Forum: Bug reports
Topic: Exception on attempt to build DLL with align 16
Replies: 4
Views: 354843

Re: Exception on attempt to build DLL with align 16


Or do you want to remove it from the factory defaults ? I'm not sure about it. I wanted all Windows programs created by €ASM to look well when viewed in Explorer, instead of ugly default icon.

Yes, exactly, I mean factory defaults for "cold start". So, if I downloaded new version, then don't ...
by AndreyDmitriev
22 Nov 2024 11:00
Forum: Bug reports
Topic: Exception on attempt to build DLL with align 16
Replies: 4
Views: 354843

Re: Exception on attempt to build DLL with align 16


I have to praise you, Andrey, for the perfect minimal verificable example.


You're welcome and thank you!

If I do like this then it works:


EUROASM CPU=X64
TestDLL PROGRAM FORMAT=DLL, MODEL=FLAT, WIDTH=64

EXPORT foo
foo PROC
RET
ENDP foo

align 16

EXPORT bar
bar PROC
RET
ENDP bar ...