flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > fasm as DLL Goto page Previous 1, 2, 3, 4, 5, 6 |
Author |
|
Tomasz Grysztar 06 Dec 2023, 11:51
Ben321 wrote: To tell it that a number is hexadecimal, you can either prepend "0x" or append "h" to the number. I found this doesn't work though if the first digit of the number is a hexadecimal letter. For example, 0xF00000 works, but F00000h generates an error. It's fine if the letter is elsewhere in the hex number. This means a temporary work around hers is to prepend a zero before the first letter, like 0F00000h will work. But it's not ideal. I hope this is a bug that you can fix. |
|||
06 Dec 2023, 11:51 |
|
revolution 06 Dec 2023, 11:52
All numbers must begin with a digit 0-9. The only exception is the $.
Code: db 0xf0 db $f0 db f0 ; this is a label name 'f0'. |
|||
06 Dec 2023, 11:52 |
|
revolution 29 Jul 2024, 21:05
You can write position independent code if it is important that it executes from all offsets. Code can also relocate itself if you want it to.
64-bit code is easier to make position independent than 32-bit code. But it can be done in both. |
|||
29 Jul 2024, 21:05 |
|
Ben321 30 Jul 2024, 01:07
revolution wrote: You can write position independent code if it is important that it executes from all offsets. Code can also relocate itself if you want it to. Maybe so, but I think it would expand the usefulness of the FASM DLL if it could output a list of relocations. |
|||
30 Jul 2024, 01:07 |
|
Ben321 30 Jul 2024, 01:13
revolution wrote: If you use PE format and include a relocs table then you will get a fully relocatable exe. Can you use PE format in the FASM DLL? I thought the DLL version exclusively output only raw binary format. |
|||
30 Jul 2024, 01:13 |
|
revolution 30 Jul 2024, 02:00
Ben321 wrote: Can you use PE format in the FASM DLL? I thought the DLL version exclusively output only raw binary format. |
|||
30 Jul 2024, 02:00 |
|
Goto page Previous 1, 2, 3, 4, 5, 6 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.