How do you access the hardware i/o port segment?? Or where is it located?? (eg: INP() / OUT() (qb)).
Printable View
How do you access the hardware i/o port segment?? Or where is it located?? (eg: INP() / OUT() (qb)).
and the correct anwser is:
in al, port ;hardware i/o port (if port > 255 then use dx)
out port, al
i'm amazed no one could anwser this for me!! i actually got help from the qbasic.com forum.
yes, a qbasic forum, a sight more helpful than THIS forum!!
Hi
as u see i'm newQuote:
i'm amazed no one could anwser this for me!! i actually got help from the qbasic.com forum.
Ok take this it will help u alot
http://www.arl.wustl.edu/
:D
see u
The main problem of this assembly forum is that few people ever visit it. I try to come here once a week, but sometimes I forget. It might well be that no one saw your post.
Also your question is confusing. What your accessing are simply hardware I/O ports, has got nothing to do with segments.
Here's a great reference to the 386 instruction set:
http://webster.cs.ucr.edu/Page_TechD...386/0_toc.html
Sorry....but....come on, they are kinda segment sized:D
Segment sized? *** are you talking about?
A segment is a block of memory, 65k large on a 16-bit cpu, 4GB on a 32-bit cpu.
A hardware i/o port is a single identifier number.
Quote:
A segment is a block of memory, 65k large on a 16-bit cpu, 4GB on a 32-bit cpu
64k(not 65 :D ) large on a 16-bit
There are 65,536 ports!!! That's all I ment by segment SIZED!!!!!!
Sorry, newDay, correct, thx.
Air:
That's because a WORD (the size of the identifier) can contain the values from 0 to 65,535.
Don't take it too seriously, just mocking you. :p
I thought your second post could have been less accusing. We're even.