Announcement

Collapse
No announcement yet.

INP(&H60)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • INP(&H60)

    The INKEY$ topic is quite informative. I'm wondering if INP(&H60) has the same effect on the CPU as does a tight INKEY$ loop?


    ------------------
    Walt Decker

  • #2
    It is the tight loop without releasing time-slices to the O/S, rather than the specific statements inside the loop. Try it out for yourself...


    ------------------
    Lance
    PowerBASIC Support
    mailto:[email protected]rbasic.com[email protected]</A>
    Lance
    mailto:[email protected]

    Comment


    • #3
      Thanks, Lance.

      I'd try it myself, but I don't have all the toys other folks have. If I did, I would not have asked the question in the first place.

      ------------------
      Walt Decker

      Comment


      • #4
        I don't know if this will help but if you have any documentation
        that explains DOS interrupts, you may want to take a look at
        int16h sub-functions 11h and 10h (in that order).

        11h looks at the keyboard buffer, returns a result and moves on.

        12h will remove a keystroke if it is available. If not available
        it will freeze until one becomes available.



        ------------------
        There are no atheists in a fox hole or the morning of a math test.
        If my flag offends you, I'll help you pack.

        Comment


        • #5
          Sorry but the last paragraph should start with 10h instead of 12h
          My appologies.


          ------------------
          There are no atheists in a fox hole or the morning of a math test.
          If my flag offends you, I'll help you pack.

          Comment

          Working...
          X