flat assembler
Message board for the users of flat assembler.
Index
> Linux > unwanted Operand-Size Prefix 0x66 (fasmg) |
Author |
|
bitRAKE 27 Sep 2022, 15:40
Looks like "80386.inc" defaults to use16 - just adding use32 should be sufficient.
Code: include "80386.inc" include "format/elf32.inc" use32 public _start section ".text" executable _start: mov eax, 1 xor ebx, ebx int 0x80 It might be better to use the \format\format.inc, or look at how it uses the other files you are including. |
|||
27 Sep 2022, 15:40 |
|
Werner Drasche 27 Sep 2022, 18:19
Thank you for the quick reply. Your suggested solution works perfectly and from now on I'll be using format.inc as it sets use32 anyway.
|
|||
27 Sep 2022, 18:19 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.