Page 1 of 1

hi, i need a simple sample in AT&T syntax

Posted: Sat Nov 17, 2007 8:43 am
by shellex
i use at&t asm to build my os . however, when i wanna jmp from real mode to protected mode,i meet a problem which i don't know how to do it .
and samples in forum or wiki are all intel Syntax that i have no ideas to translate to AT&T syntax.
so i wanna a simple sample in at&t syntax to describe procedure.
thx, and i am sorry for my poor english.

Posted: Sat Nov 17, 2007 8:57 am
by Brynet-Inc
It isn't very cryptic, and if you actually knew the syntax.. you wouldn't find it complicated to port Intel Syntax.

AT&T Syntax

Code: Select all

movl %cr0, %eax
or $0x1, %al
movl %eax, %cr0
Intel Syntax

Code: Select all

mov eax, cr0
or al, 1
mov cr0, eax

Posted: Sat Nov 17, 2007 10:06 am
by frank
Opcode syntax has a lot of information on the differences between intel and AT&T syntax.

Posted: Sat Nov 17, 2007 7:02 pm
by shellex
e... in fact, i know some at&t syntax...but not be proficient.
i will try to do the translation, thx all
:)