Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

8086 software interrupt question

Status
Not open for further replies.

ronak shah

Junior Member level 2
Joined
Feb 22, 2009
Messages
24
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,435
8086 has ivt of 1kbyte that we know.
0-5 interrupts r for NMI.
6-31 interrupts r for SOFTWARE INTERRUPT.

in ASM v can genrate 33-255 interrupt using INT xx instrustion that i know.
may to explain me in "C" how to use 33 to 255 no. of interrupt??
is it possible???
plz reply...
m waiting...
 

Depends on your C compiler. Most have inline assembler (e.g. Borland/Paradigm, OpenWatcom) instructions or library
functions to call an interrupt. Check your compiler docs.

Apart from calling the interrupt function, you can of course set up hardware interrupts and make them execute your
function code, also in C or other high level language.
 

m using Paradigm for am186 it has achit. of 8086 .
may I know which inline keyword is used for generating software interrupt???
 

Hi,

check this link

regards
bassa
 

Well, believe it or not, the instruction is 'INT xx' where xx is the interrupt number. You can use it to fake hardware interrupts as well but beware it may crash the system if you do.

There is also an 'INTO' instruction which causes an interrupt to jump to the vector at 0x10 when an overflow occurs. You can use it to trap arithmetic or logical overflow conditions.

Brian.
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top