home *** CD-ROM | disk | FTP | other *** search
- ; Routine to call INT F1 to reawaken TP main program
-
- NULL segment public 'BEGDATA'
- ends
-
- NULLA segment public 'BEGDATA'
- emul_space db 230 dup 0
- ends
-
- DGROUP group NULL NULLA
-
- code segment
- extrn STKHQQ:word,__fcclenv:word
-
- calltp_version equ 18
-
- public calltp
- calltp proc far
- push seg _MERRQQ ; push a pointer to the intrinsic
- push offset _MERRQQ ; error flag
- push STKHQQ ; push the stack limit
- push seg __fcclenv; push the segment of the length table pointer
- push offset __fcclenv; push the offset of the length table pointer
- mov ax,calltp_version
- push ax ; push the version number
- int 0f1h
- add sp,12 ; pop the arguments
- push bp
- mov bp,sp
- les bx,d[bp+6]
- es: mov cx,w[bx] ; get arg_count
- inc cx ; add 1 for arg_count itself
- shl cx,1
- shl cx,1
- cs: mov arg_bytes,cx
- jmp quit
- quit:
- pop bp
- db 0CAh ; retf arg_bytes
- arg_bytes dw 0
- calltp endp
- end
-
- ; Routine to call INT 3 to wake TD
-
- public debug
- debug proc far
- int 03h
- retf
- debug endp
- end
-