******************************************************************************* * exec.library.I Written by Readysoft. * Copyright 1993,1994 RS. All rights reserved. 1993.03.06.-1994.05.18. * v1.0. ******************************************************************************* ******************************************************************************* * Macros ******************************************************************************* ;------------------------------------------------------------------------------ ; ExecName Macro ;------------------------------------------------------------------------------ EXE.NAM MACRO DC.B 'exec.library',0 EVEN ENDM ;------------------------------------------------------------------------------ ; LibDesc Macro ;------------------------------------------------------------------------------ EXE.LD MACRO DC.L \1 LibBase EXE.S SET * DC.B \2 Name EXE.E SET * IF [EXE.E-EXE.S]<28 BLK.B 28-[EXE.E-EXE.S],0 ELSE PRINTT 'EXE.LD error !' ENDC ENDM ;------------------------------------------------------------------------------ ; DevDesc Macro ;------------------------------------------------------------------------------ EXE.DD MACRO DC.L \1 DevBase EXE.S SET * DC.B \2 Name EXE.E SET * IF [EXE.E-EXE.S]<28 BLK.B 28-[EXE.E-EXE.S],0 ELSE PRINTT 'EXE.DD error !' ENDC ENDM ******************************************************************************* * Constant Definitions ******************************************************************************* ;------------------------------------------------------------------------------ ; Base Address ;------------------------------------------------------------------------------ exe.Null EQU $100 exe.Base EQU $104 ;------------------------------------------------------------------------------ ; LibDesc Structure ;------------------------------------------------------------------------------ RSRESET exe_ld_LibBase RS.L 1 exe_ld_LibName RS.B 28 exe_ld_SizeOf RS.B 0 ;------------------------------------------------------------------------------ ; DevDesc Structure ;------------------------------------------------------------------------------ RSRESET exe_dd_DevBase RS.L 1 exe_dd_DevName RS.B 28 exe_dd_SizeOf RS.B 0 ;------------------------------------------------------------------------------ ; Error Codes ;------------------------------------------------------------------------------ exe_er_OK EQU $00000000 all right exe_er_UnDef EQU $8080ffff undefined error ******************************************************************************* * Varibles ******************************************************************************* RSRESET exe_RomExecBase RS.B 34 exe_SoftVer RS.W 1 exe_ChkSum RS.W 1 exe_ChkBase RS.L 1 exe_ColdCapt RS.L 1 Reset routine exe_CoolCapt RS.L 1 not used exe_WarmCapt RS.L 1 not used exe_NotUsed RS.B 30 not used exe_System RS.L 1 system start address exe_SizeOf RS.B 0 ******************************************************************************* * Routine Offsets ******************************************************************************* RSRESET RS.B -6 exe_Init RS.B -6 exe_InitReset RS.B -6 exe_OpenDev RS.B -6 exe_OpenLib RS.B -6