home *** CD-ROM | disk | FTP | other *** search
- /* SAVE THIS FILE AS SAVESIDI.H */
- /* */
- /* Header file to define a save and restore macro for the SI */
- /* and DI registers. For use when a TC module is compiled */
- /* with the -r directive, and the module is to be linked to */
- /* a Turbo Pascal program. */
-
- typedef unsigned int WORD;
-
- #define save_sidi {extern WORD far *_rsp; *_rsp++ = _SI; *_rsp++
- = _DI;}
- #define rest_sidi {extern WORD far *_rsp; _DI = *--_rsp; _SI =
- *--_rsp;}
-