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.
hi, i need a simple sample in AT&T syntax
- Brynet-Inc
- Member
- Posts: 2426
- Joined: Tue Oct 17, 2006 9:29 pm
- Libera.chat IRC: brynet
- Location: Canada
- Contact:
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
Intel Syntax
AT&T Syntax
Code: Select all
movl %cr0, %eax
or $0x1, %al
movl %eax, %cr0
Code: Select all
mov eax, cr0
or al, 1
mov cr0, eax
Opcode syntax has a lot of information on the differences between intel and AT&T syntax.