?
Solved

Peek & Poke?

Posted on 1997-06-10
2
Medium Priority
?
841 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This tutorial is posted by Aaron Wojnowski, administrator at SDKExpert.net.  To view more iPhone tutorials, visit www.sdkexpert.net. This is a very simple tutorial on finding the user's current location easily. In this tutorial, you will learn ho…
This is a short and sweet, but (hopefully) to the point article. There seems to be some fundamental misunderstanding about the function prototype for the "main" function in C and C++, more specifically what type this function should return. I see so…
The goal of this video is to provide viewers with basic examples to understand recursion in the C programming language.
Video by: Grant
The goal of this video is to provide viewers with basic examples to understand and use for-loops in the C programming language.
Suggested Courses

770 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