RESOURCES "reverseClient.rsrc" ,"APPLrEVc"'the resource file, & file type creator
GLOBALS "reverseClient.GLBL"
END GLOBALS
'------------- include files -------------
INCLUDE "reverseClient.INCL"
GOTO "main"
'============= Implementation =============
'------------- toolbox routine from <EPPC.h> -------------
'extern pascal OSErr PostHighLevelEvent(const EventRecord *theEvent, unsigned long receiverID, unsigned long msgRefcon, Ptr msgBuff, unsigned long msgLen, unsigned long postingOptions)
' THREEWORDINLINE(0x3F3C, 0x0034, 0xA88F);
LOCAL MODE
LOCAL FN PostHighLevelEvent(theEvent&, receiverID&, msgRefcon&, msgBuff&, msgLen&, postingOptions&)
` SUBQ.L #2,sp ;clear space for result
` MOVE.L ^theEvent&,-(sp) ;pointer to theEvent
` MOVE.L ^receiverID&,-(sp) ;unsigned long receiverID
` MOVE.L ^msgRefcon&,-(sp) ;unsigned long msgRefcon
` MOVE.L ^msgBuff&,-(sp) ;ptr msgBuff
` MOVE.L ^msgLen&,-(sp) ;unsigned long msgLen
` MOVE.L ^postingOptions&,-(sp) ;unsigned long postingOptions
` DC.W $3F3C,$0034,$A88F ;trap number
` MOVE.W (sp)+,^osErr% ;D0 = osErr
END FN = osErr% 'long value returnd in D0
'extern pascal OSErr AcceptHighLevelEvent(TargetID *sender, unsigned long *msgRefcon, Ptr msgBuff, unsigned long *msgLen)
' THREEWORDINLINE(0x3F3C, 0x0033, 0xA88F);
LOCAL MODE
LOCAL FN AcceptHighLevelEvent(sender&, msgRefcon&, msgBuff&, msgLen&)