/usr/share/z88dk/lib/zxr_packages.def is in z88dk-data 1.8.ds1-10.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 | ; Defines for calling ResiDOS from BASIC
defc RST_HOOK=$08
defc HOOK_VERSION=$fc
defc HOOK_PACKAGE=$fb
; Hook codes that may be handled by packages
defc HOOK_SAVE=$ef
defc HOOK_LOAD=$ee
; Routine to call to execute a package call from within
; another package. Packages must not use their bank beyond
; this point.
defc PACKAGE_CALL_PKG=$3fc0
; Package IDs
defgroup
{
PKG_RESIDOS=$00,
PKG_IDEDOS=$01,
PKG_SYNTAX=$02,
}
; Standard package calls that must be provided
defgroup
{
PKG_STDCALL_INSTALL=$00,
PKG_STDCALL_BYE=$01,
PKG_STDCALL_INFO=$02
PKG_STDCALL_EXP=$03,
PKG_STDCALL_HOOK=$04,
PKG_STDCALL_CHANNELS=$05,
PKG_STDCALL_FS=$06,
PKG_STDCALL_NMI=$07,
}
defc PKG_STDCALL_HIGHEST = PKG_STDCALL_NMI
; Reason codes for INFO call
defgroup
{
info_version=0,
info_error,
}
; Reason codes for EXP call
defgroup
{
exp_boot=0,
exp_fs_setdrive,
exp_fs_setuser,
exp_fs_snapdata
}
; Reason codes for NMI call
defgroup
{
nmi_nmi=0,
nmi_startup
}
; Reason codes for RESI_NMISVC call
defgroup
{
nmisvc_getregs=0,
nmisvc_putregs
}
; Reason codes for RESI_CONFIG call
; NOTE - the ordering of these is relied on by RESI_CONFIG
defgroup
{
rc_config_getvalue=0,
rc_config_gettext,
rc_config_setvalue,
rc_config_settext,
rc_config_delete
}
; Low-level calls provided for filesystem packages.
defc PACKAGE_FS_LOWLEVEL=$3dc0
defc PACKAGE_FS_SECTOR_READ=$3dc0
defc PACKAGE_FS_SECTOR_WRITE=$3dc3
defc PACKAGE_FS_SECBUF_INIT=$3dc6
defc PACKAGE_FS_SECBUF_ADD=$3dc9
defc PACKAGE_FS_SECBUF_FINISH=$3dcc
; Package capabilities
defc pkgcaps_bit_syntax=0
defc pkgcaps_bit_hook=1
defc pkgcaps_bit_channels=2
defc pkgcaps_bit_nmi=3
defc pkgcaps_bit_fs=4
defc pkgcaps_bit_ram=5
defc pkgcaps_bit_di=6
defc PKGCAPS_SYNTAX=$01
defc PKGCAPS_HOOK=$02
defc PKGCAPS_CHANNELS=$04
defc PKGCAPS_NMI=$08
defc PKGCAPS_FS=$10
defc PKGCAPS_RAM=$20
defc PKGCAPS_DI=$40
; ResiDOS Package Calls
defc RESI_REPORT=$0310
defc RESI_BASIC=$0313
defc RESI_SAVEPRBUFF=$0316
defc RESI_RESTOREPRBUFF=$0319
defc RESI_GETPAGER=$031c
defc RESI_FINDPKG=$031f
defc RESI_FINDBASIC=$0322
defc RESI_ALLOC=$0325
defc RESI_DEALLOC=$0328
defc RESI_LOGO=$032b
defc RESI_MESSAGE=$032e
defc RESI_NMISVC=$0331
defc RESI_BROADCASTEXP=$0334
defc RESI_CONFIG=$0337
; Syntax Package Calls
defc SYNTAX_VERSION=$0100 ; Current version of Syntax package
defgroup
{
SYNTAX_CHECKER=$0208,
SYNTAX_FUNCTION,
SYNTAX_ADDPKG,
SYNTAX_REMOVEPKG,
SYNTAX_MAXCALL ; dummy
}
|