For reading IO ports:<br>
<br>
in al, 21h ;get byte from port 21h<br>
<br>
The above only works with IO addresses 0-FFh<br>
Else use this:<br>
<br>
mov dx, 3fdh ;put port address in DX<br>
in al, dx ;then read from port<br>
<br>
To write to an IO port do the opposite:<br>
<br>
mov dx, 3fdh ;put port address in DX<br>
out dx, al ;output byte in al to 3fdh<br>
<br>
You can also do two byte reads by using AX instead of AL<br>
I hope this helps you out.... <p> <br><a href=mailto:Kim_Christensen@telus.net>Kim_Christensen@telus.net</a><br><a href=
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.