REM_Header START
*****************************************************************************
*
* Resource Editor Module Header
*
* Copyright, (c) 1991
* by Marc W. Wolfgram
* All Rights Reserved
*
* Marc W Wolfgram  4/ 2/91 20:15:08
*                  4/25/91  0:52:48     Added VidMode and fStacked entries.
*****************************************************************************
*
* The first 7 vectors handle calls from Foundation for a specific editor task.
*
           dc       i4'REM_Open-1'      begin editing, fSessionRec pb
           dc       i4'REM_Close-1'     close editing, fSessionRec pb
           dc       i4'REM_Write-1'     close editing, fSessionRec pb
           dc       i4'REM_Event-1'     event occured, fEventRec pb
           dc       i4'REM_Activate-1'  edit activate, fActivateRec pb
           dc       i4'REM_GetLink-1'   request child, fLinkRec pb
           dc       i4'REM_VidMode-1'   video changed,
*
* The next 3 vectors are reserved for future expansion.
*
           dc       i4'reserved-1'
           dc       i4'reserved-1'
           dc       i4'reserved-1'
*
* The last 2 vectors are called when the REM is loaded or Foundation quits.
*
           dc       i4'REM_StartUp-1'   initialize it, fStartStopRec pb
           dc       i4'REM_ShutDown-1'  shut REM down, fStartStopRec pb
*
* Offset +48 will contain the Foundation inline callback.  This vector is set
* when the REM is first loaded.
* Calls to this vector are of the same format as the ProDOS inline vector.
*
*          jsl      FINLINE
*          dc       i2'Command'
*          dc       i4'ParameterBlock'
*
* Refer to M16.FOUNDATION
*
fInline    ENTRY
           jml      reserved
*
* Offset +52 will contain the Foundation stack based callback.
* Calls to this vector use the ORCA stack model where the called function
* clears the stack if the start resource flag word bit16 is clear.  Otherwise
* the APW C stack model is used, where the caller clears it's own parameters.
*
*          extern pascal FSTACKED(Command, ParameterBlockPtr)
*
* Refer to FOUNDATION.H
*
fStacked   ENTRY
           jml      reserved
*
* Offset +56 will contain the a pointer to the Foundation TaskMaster record.
*
           case     on
FEVENTPTR  ENTRY
fEventPtr  ENTRY
           case     off
           dc       i4'0'
*
reserved   lda      #1                  badSystemCall
           sec
           rtl
*
~USERID    dc       i2'0'               For Orca compatibility
~TOOLERROR dc       i2'0'
*
*****************************************************************************
           END
