flat assembler
Message board for the users of flat assembler.
Index
> Non-x86 architectures > import dll in PE for ARM |
Author |
|
revolution 27 Jan 2017, 10:14
There are four example files for ARM PE in the fasmarm download. This is the second one and perhaps the one you are after:
Code: ; Example of building a WinCE executable using medium level macros include 'wince.inc' format PE GUI entry Start section '.text' code readable executable proc Start uses[lr] apscall MessageBoxW,0,addr Text,addr Caption,0 ret endp Caption du 'ARM example MLI macros',0 Text du 'Hello ArmCE world',0 section '.idata' import readable writeable library coredll,'COREDLL.DLL' include 'APICE\COREDLL.INC' |
|||
27 Jan 2017, 10:14 |
|
flx 27 Jan 2017, 10:42
My fault not to look for example folder. Thank you, it works.
|
|||
27 Jan 2017, 10:42 |
|
flx 15 Feb 2017, 14:32
Ok, one more noob question. Now I need to export some functions from dll. How?
public and export macros don't work for WinCE on ARM (public does nothing, and export doesn't exist) I also tried to construct export section manually, but I run into the issue that dd instruction always puts 0 after const, thus dd 1,2 assembles to 0000001 00000000 00000002 00000000 instead of 00000001 00000002. How do I fix that? |
|||
15 Feb 2017, 14:32 |
|
revolution 15 Feb 2017, 14:35
dd defines 64-bit values.
dw defines 32-bit values. dh defines 16-bit values. db defines 8-bit values. BTW: public is not a macro. export is a macro. |
|||
15 Feb 2017, 14:35 |
|
flx 15 Feb 2017, 15:00
That's unexpected. Compared to ARM's dcb, dcw, dcd, dcq.
But thank you, I took export.inc from FASM for x86, replaced dd's in it for dw and dw for dh, and got working export macro. |
|||
15 Feb 2017, 15:00 |
|
revolution 15 Feb 2017, 15:06
Section 7 of the docs.
|
|||
15 Feb 2017, 15:06 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.