1 ;/* BEGIN INCLUDE FILE: util.mac */ 2 3 ; HISTORY COMMENTS: 4 ; 1) change(85-12-20,ASmith), approve(87-07-13,mcr7580), 5 ; audit(87-07-13,Leskiw), install(87-08-07,MR12.1-1072): 6 ; Created. 7 ; END HISTORY COMMENTS 8 9 ;/* : FUNCTION 10 ; 11 ; Macros for register preservation 12 ;*/ 13 14 SAVEALL macro ;save processor status 15 ;AX is used for return values from soft int 16 push bx 17 push cx 18 push dx 19 push si 20 push di 21 push bp 22 pushf 23 endm 24 25 RESTOREALL macro ;restore processor status 26 popf 27 pop bp 28 pop di 29 pop si 30 pop dx 31 pop cx 32 pop bx 33 ;AX was not preserved 34 endm 35 36 ;/* END INCLUDE FILE: util.mac */ 37 ^Z