Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 2 > TS SetVector
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 276 of 376
Post > Topic >>

TS SetVector

by "AC Joubert" <acj@[EMAIL PROTECTED] > May 13, 2006 at 01:10 PM

I have a problem.
I change the keyboard interrupt routine to examine a register, changed the
routine back and then called the old interrupt routine inside the new
routine. Can it be done or not?
Example:
MODULE M;
  IM****T BiosIO,Lib,SYSTEM;
  VAR
     vO9:ADDRESS;
     vR:SYSTEM.Registers;
  PROCEDURE fN9():BOOLEAN;
    BEGIN
      (*Some code*)
      Lib.SetVector(9,vO9);
(*THE PROGRAM WORKS UNTIL HERE, BUT THEN I WANT TO EXECUTE THE OLD
INTERRUPT
9 ROUTINE BUT IT DOESN'T WANT TO. WHY?*)
      Lib.Intr(vR,9);
      RETURN TRUE;
  END fN9;
  BEGIN
     vO9:=Lib.GetVector(9);
     Lib.SetVector(9,ADR(fN9()));
     REPEAT
     UNTIL BiosIO.KeyPressed();
END M;
 




 3 Posts in Topic:
TS SetVector
"AC Joubert" &l  2006-05-13 13:10:13 
Re: TS SetVector
Marco van de Voort <ma  2006-05-13 17:48:48 
Re: TS SetVector
"Peter Engels"   2006-05-13 22:25:27 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 23:38:13 CDT 2008.