Results 1 to 9 of 9

Thread: Hardware ports....??

  1. #1
    Member AirScape17's Avatar
    Join Date
    Aug 02
    Location
    England
    Posts
    34

    Hardware ports....??

    How do you access the hardware i/o port segment?? Or where is it located?? (eg: INP() / OUT() (qb)).

  2. #2
    Member AirScape17's Avatar
    Join Date
    Aug 02
    Location
    England
    Posts
    34
    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!!

  3. #3
    Junior Member
    Join Date
    Oct 02
    Posts
    21
    Hi
    i'm amazed no one could anwser this for me!! i actually got help from the qbasic.com forum.
    as u see i'm new

    Ok take this it will help u alot
    http://www.arl.wustl.edu/


    see u
    ThiS Is Me
    my email
    newday_99@hotmail.com

  4. #4
    Kitten CornedBee's Avatar
    Join Date
    Aug 01
    Location
    In a microchip!
    Posts
    11,594
    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.

  5. #5
    Member AirScape17's Avatar
    Join Date
    Aug 02
    Location
    England
    Posts
    34
    Sorry....but....come on, they are kinda segment sized

  6. #6
    Kitten CornedBee's Avatar
    Join Date
    Aug 01
    Location
    In a microchip!
    Posts
    11,594
    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.

  7. #7
    Junior Member
    Join Date
    Oct 02
    Posts
    21
    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

  8. #8
    Member AirScape17's Avatar
    Join Date
    Aug 02
    Location
    England
    Posts
    34
    There are 65,536 ports!!! That's all I ment by segment SIZED!!!!!!

  9. #9
    Kitten CornedBee's Avatar
    Join Date
    Aug 01
    Location
    In a microchip!
    Posts
    11,594
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •