Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Peek & Poke?

Posted on 1997-06-10
2
Medium Priority
?
843 Views
Last Modified: 2012-05-04
I am useing Turbo C/C++ and I have a few questions for you
experts out there....

I am sort of new at programming in C, I know all the basics
I just cant figure out how to access Interrupts. I am a little lost, I have been useing Peek and Poke commands for the accessing but I am still lost.  I am using helpPC for the interupt list and thats fine but when it says, for example:  INT 33,0 for the mouse, does that mean that I peek 0x33, 0x00? And what exactly in AX & BX? I get all of the other stuff like what it will return and such... I know I must sound like a moron to most of you guys but help would be greatly appreciated. Sorry about the typos but I am in a rush... Thanks...
0
Comment
Question by:Garrett061097
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 4

Accepted Solution

by:
emmons earned 480 total points
ID: 1251255
Since you used the mouse as your example, let's go with it.
The mouse information is obtained by various mouse function calls. When using the mouse interrupt (0x33), the mouse function call number is passed to the mouse driver in AX, and other information that the driver may need is passed in BX, CX, and/or DX.
AX          Function
----           -------------
0    Mouse reset and status
1    Show mouse cursor
2    Hide mouse cursor
3    Get cursor position and button status
4    Set cursor position
7    Set Horizontal Minimum/Maximum
8    Set Vertical Minimum/Maximum

So, if you wanted to execute function INT 33,0 (which would be a mouse reset) you would set AX=0, and then call the interrupt driver.
0
 

Author Comment

by:Garrett061097
ID: 1251256
Ohhh.... Ok... Thank you for that clarification.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

An Outlet in Cocoa is a persistent reference to a GUI control; it connects a property (a variable) to a control.  For example, it is common to create an Outlet for the text field GUI control and change the text that appears in this field via that Ou…
Windows programmers of the C/C++ variety, how many of you realise that since Window 9x Microsoft has been lying to you about what constitutes Unicode (http://en.wikipedia.org/wiki/Unicode)? They will have you believe that Unicode requires you to use…
The goal of this video is to provide viewers with basic examples to understand how to use strings and some functions related to them in the C programming language.
The goal of this video is to provide viewers with basic examples to understand opening and reading files in the C programming language.

604 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question