[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gas uses nonstandard Intel syntax for memory moves
From: |
Kerrick Staley |
Subject: |
gas uses nonstandard Intel syntax for memory moves |
Date: |
Sat, 7 Mar 2009 23:12:07 -0800 (PST) |
In gas, when using the .intel_syntax directive, you are required to have "mov
byte ptr [es:0], 0x41" in order to move the value 0x41 into the byte at [es:0].
However, I believe the standard syntax is "mov byte [es:0], 0x41". This is the
syntax used by fasm. It would be nice if you added support for both syntaxes to
gas. Here is a program that won't compile under gas but should compile under
fasm:
.intel_syntax noprefix
.code16
mov ax, 0xb800
mov es, ax
mov byte [es:0], 0x41
mov byte [es:1], 0x1f
loop1:
jmp loop1
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gas uses nonstandard Intel syntax for memory moves,
Kerrick Staley <=