Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 1998-09-10
4
Medium Priority
?
1,558 Views
Last Modified: 2010-05-18
hi!
    i need know how the getvect() and setvec()
 "C" functions were made in assembly language ??  
(by example MS-Macro Assembler , MASM)
 please writte the assembly code!!!!

 Thanks again!!

0
Comment
Question by:uart8250
[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
  • 2
4 Comments
 
LVL 11

Accepted Solution

by:
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

by:uart8250
ID: 1252629
ALexo Thanks Again !!
0
 

Author Comment

by:uart8250
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

by:alexo
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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Preface I don't like visual development tools that are supposed to write a program for me. Even if it is Xcode and I can use Interface Builder. Yes, it is a perfect tool and has helped me a lot, mainly, in the beginning, when my programs were small…
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 opening and writing to files in the C programming language.
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.

722 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