outpw in asm

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.
Post Reply
Phibred
Member
Member
Posts: 31
Joined: Sun Jun 26, 2005 11:00 pm
Location: Toronto, Ontario, Canada
Contact:

outpw in asm

Post by Phibred »

Does any one know what outpw is in assembler? It has just always been one of those things that I could never find?

Thanks for helping.
It will come from the ashes of the old era.
-- James Vaughan
dave
Member
Member
Posts: 42
Joined: Sat Jul 09, 2005 11:00 pm

Re: outpw in asm

Post by dave »

All the outpb and outpw functions are the same in terms of assembler instructions. They both use the "out" instruction the only difference between the two functions is the registers used to perform the operation

an example:

out my_port, al ; al is only a byte so this is equivalent to outpb

while

out my_port, ax ; ax is 2 bytes or a word so this is equivalent to outpw

and

out my_port, eax ; eax is 4 bytes or a double word


hope this helps. Get yourself a copy of the amd or intel programmer's manual. The have all the instructions and anything you want to know about them.

Dave
Phibred
Member
Member
Posts: 31
Joined: Sun Jun 26, 2005 11:00 pm
Location: Toronto, Ontario, Canada
Contact:

Re: outpw in asm

Post by Phibred »

Wow, I could have sworn that I had done that before and it rejected that command... must have been dreamming it, cure you dreams. Anyways thanks.
It will come from the ashes of the old era.
-- James Vaughan
Post Reply