home *** CD-ROM | disk | FTP | other *** search
- Type
- RegisterSet=Record Case Integer Of
- 1: (AX,BX,CX,DX,BP,SI,DI,DS,ES,Flags: Integer);
- 2: (AL,AH,BL,BH,CL,CH,DL,DH : Byte);
- End;
- Var
- Setup : RegisterSet;
- IntAX,IntBX,IntCX,IntDX,IntBP,IntSI,IntDI,IntDS,IntES,
- IntFlags : Integer;
- Interupt_Registers : RegisterSet Absolute IntAX;
- {Interupt_Registers must be Global so that they will be in the data segment
- and can be accessed by any interupt handler or user procedure.
- Local variables are in the stack segment which is not preserved.
- Becuase they are global, however, it will be extra dangerous for one interupt
- handler to call another. To ensure that that will work,it may be necessary
- to declare a second global register set.}