Page 1 of 1

outpw in asm

Posted: Tue Jul 19, 2005 11:00 pm
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.

Re: outpw in asm

Posted: Tue Jul 19, 2005 11:00 pm
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

Re: outpw in asm

Posted: Wed Jul 20, 2005 11:00 pm
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.