Go Premium for a chance to win a PS4. Enter to Win

x
Solved

# getvect(),setvect() "C" Functions & assembley question

Posted on 1998-09-10
Medium Priority
1,585 Views
hi!
i need know how the getvect() and setvec()
"C" functions were made in assembly language ??
(by example MS-Macro Assembler , MASM)

Thanks again!!

0
Question by:uart8250
• 2
• 2

LVL 11

Accepted Solution

alexo earned 120 total points
ID: 1252628
They are just simple calls to INT 21h functions 25h and 35h.

Function  25h  Set Interrupt Vector
entry   AH = 25h, AL = interrupt number to reassign the handler to, DS:DX = address of new interrupt vector

Function  35h  Get Interrupt Vector
entry   AH = 35h, AL = interrupt number (hexadecimal)
return  ES:BX = address of interrupt vector

0

Author Comment

ID: 1252629
ALexo Thanks Again !!
0

Author Comment

ID: 1252630
Thanks Alexo.. but now,  I can do?? because....I need get Interrupt vector and
set Interrupt vector...running on a platform win 32 (I use Visual C/C++ 5.0)??

Thanks Again!!!

0

LVL 11

Expert Comment

ID: 1252631
There is a real problem using interrupt vectors on a Win32 platform.
You can do it under Win95/98 because it runs on top of DOS 7.x but not on NT (there is no DOS underneath).

Why do you need to use interrupt vectors anyway?
0

## Featured Post

Question has a verified solution.

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

Have you thought about creating an iPhone application (app), but didn't even know where to get started? Here's how: ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ Important pre-programming comments: I’ve never tri…
Summary: This tutorial covers some basics of pointer, pointer arithmetic and function pointer. What is a pointer: A pointer is a variable which holds an address. This address might be address of another variable/address of devices/address of fu…
The goal of this video is to provide viewers with basic examples to understand opening and writing to files 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.
###### Suggested Courses
Course of the Month13 days, 7 hours left to enroll