please dont rip this site

Function 25h Set Interrupt Vector

Sets the address of the code DOS is to perform each time the specified

interrupt is invoked.

entry AH 25h

AL int number to reassign the handler to

DS:DX address of new interrupt vector

return none

note 1) Registers are unchanged.

2) No error codes are returned.

3) The interrupt vector table for the interrupt number specified in AL

is set to the address contained in DS:DX. Use function 35h (Get Vector)

to get the contents of the interrupt vector and save it for later use.

4) When you use function 25 to set an interrupt vector, DOS 3.2 doesn't

point the actual interrupt vector to what you requested. Instead, it

sets the interrupt vector to point to a routine inside DOS, which does

this:

1. Save old stack pointer

2. Switch to new stack pointer allocated from DOS's stack pool

3. Call your routine

4. Restore old stack pointer

The purpose for this was to avoid possible stack overflows when there

are a large number of active interrupts. IBM was concerned (this was an

IBM change, not Microsoft) that on a Token Ring network there would be

a lot of interrupts going on, and applications that hadn't allocated

very much stack space would get clobbered.



See also:


file: /Techref/INT/21f/25.htm, 1KB, , updated: 1999/2/20 10:26, local time: 2012/2/7 20:19,
TOP NEW HELP FIND: 
38.107.179.232:LOG IN

 ©2012 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?
Please DO link to this page! Digg it! / MAKE! / 

<A HREF="http://www.piclist.com/techref/INT/21f/25.htm"> INT 21f 25</A>

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.


Link? Put it here: 
if you want a response, please enter your email address: 
Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
Did you find what you needed?

 
THE T-SHIRT IS HERE!
The PICList shop now offers mugs, steins and...
T-Shirts!!!
 

Robotics nuts!

Check out http://users.frii.com/dlc/robotics/projects/botproj.htm from Dennis Clark. This guy ROCKS! He has made (and sells but also releases code, docs, etc...) for a number of cool little robotic modules including whiskers, IR proximity detect and remote control, Sonar proximity detect, PWM, Servo, compass. Most of these use the little PIC 12C508 controller which costs basically nothing and is soooo tiny.
The 4 servos, 2400 baud serial servo controller is a wonder of magic and he sells the programmed chip for $8. Wow!

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

  .