;       SCCSID = @(#)splitfs.inc	6.1 90/11/17
;      SCCSID = @(#)splitfs.inc	13.2 89/09/22

;***	splitfs.inc - macros needed for support of split segment (hybrid) fs

;;***	 callhireg - call DosHighCode procedure indirect via register
;;
;;	 NOTE	 We use pops instead of add to preserve flags from target proc
;;
callhireg macro segment,reg
	push	reg			;; preserve for real
	push	segment
	push	reg			;; far target now on stack
	push	bp
	mov	bp,sp
	call	dword ptr [bp+2]
	pop	bp
	pop	reg			;; get to segment
	pop	reg			;; clean off segment
	pop	reg			;; restore reg for real
	endm
