home *** CD-ROM | disk | FTP | other *** search
- ; MTEST5.ASM
- ;
- ; a.lane 10/27/89
- ;
- DATA SEGMENT WORD PUBLIC
- ASSUME DS:DATA
- EXTRN XPOS:WORD
- EXTRN YPOS:WORD
- DATA ENDS
- CODE SEGMENT BYTE PUBLIC
- ASSUME CS:CODE
- EXTRN EntryPoint : FAR
-
- mstart PROC FAR
- PUBLIC mstart
- push ds ; save mouse DS
- mov ax, SEG DATA ; get actual address of TP
- ; global DS
- mov ds, ax ; copy TP global into DS
- mov ds:XPOS,cx ; store horiz coord in XPOS
- mov ds:YPOS,dx ; store vert coord in YPOS
- CALL EntryPoint ; call to main program
- pop ds ; restore mouse DS
- RET ; outta here!
- ENDP
-
- CODE ENDS
- END