Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
X86 protected mode, paging enabled. I use gcc -m32 cause the host is a x86_64 red hat
Anyone can help me?
Thanks!
[Solved]Must use DX for port and AX for data.
Last edited by leyley on Wed Oct 31, 2012 1:17 am, edited 1 time in total.
He means the Intel processor manuals, which detail everything officially documented about the x86 processors.
If you're going to immediately ask for a link to those as well instead of googling for them (which I guarantee will return multiple proper results), maybe OS dev isn't the hobby for you.
Blacklight wrote:He means the Intel processor manuals, which detail everything officially documented about the x86 processors.
If you're going to immediately ask for a link to those as well instead of googling for them (which I guarantee will return multiple proper results), maybe OS dev isn't the hobby for you.
The 'link' I need is just a PDF version of GAS manual... If there are some places which can download one, please share it to me. Thanks.
I never ask something that told me the answer precisely. Just give me some directions. OK, I'll find Intel processor manuals.
No, you don't need GAS manual in PDF. You need intel or amd manuals, as it was stated above - they are the place describing valid instructions with valid operands, not GAS manual.
Reaver Project :: Repository :: Ohloh project page
<klange> This is a horror story about what happens when you need a hammer and all you have is the skulls of the damned.
<drake1> as long as the lock is read and modified by atomic operations
Griwes wrote:No, you don't need GAS manual in PDF. You need intel or amd manuals, as it was stated above - they are the place describing valid instructions with valid operands, not GAS manual.
Downloading... but very slow.
Thanks for your replies!
Another good source, if you can wrap your head around it, is http://ref.x86asm.net/coder32.html -- a list of all x86 (not x86-64 though, you want coder.html for that) opcodes, and thus, what operands each instruction can take.
But the Intel/AMD manuals are the definitive source for documented instructions and operation of the x86 processors.