How do you access the hardware i/o port segment?? Or where is it located?? (eg: INP() / OUT() (qb)).
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 newi'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/
see u
ThiS Is Me
my email
newday_99@hotmail.com
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
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Sorry....but....come on, they are kinda segment sized![]()
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.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
A segment is a block of memory, 65k large on a 16-bit cpu, 4GB on a 32-bit cpu
64k(not 65) large on a 16-bit
ThiS Is Me
my email
newday_99@hotmail.com
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.
I thought your second post could have been less accusing. We're even.
All the buzzt
CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.