flat assembler
Message board for the users of flat assembler.
Index
> Windows > How do i Compile this in FASM ? [resolved] |
Author |
|
MCD 02 Nov 2007, 00:06
either write
Code: mov eax,[ds:567] or Code: ds mov eax,[567] How does it come that you need to specify "ds" in a windows program? Usually, you don't need such under Windows and most other modern operating systems. |
|||
02 Nov 2007, 00:06 |
|
LocoDelAssembly 02 Nov 2007, 00:19
And actually it is the default for the type of address, so you have to use the second variant proposed by MCD if you want to make a 6 bytes instruction.
BTW, where writing "ds" as instruction is documented on fasm manual?? It works of course but it is not documented as a valid prefix (and actually there is no section that lists all the prefixes in a table)... It is also possible to write Code: ds mov eax, [567] |
|||
02 Nov 2007, 00:19 |
|
packet_50071 02 Nov 2007, 21:04
thx
I am reading the AOA e-book [ART of ASSEMBLY] which is written for MASM - so I just want to Make Sure I know the right format for fasm |
|||
02 Nov 2007, 21:04 |
|
Tomasz Grysztar 02 Nov 2007, 21:43
LocoDelAssembly wrote: BTW, where writing "ds" as instruction is documented on fasm manual?? It works of course but it is not documented as a valid prefix (and actually there is no section that lists all the prefixes in a table)... Oh, yeah, one more of the undocumented NASM legacies.... |
|||
02 Nov 2007, 21:43 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.