;
; Note: Good or bad, some of the resource
;       ids here have values that are meaningful
;       and some are completely arbitrary.
;       For example, the digit keys have the
;       digits ascii equiv. This saves code and
;       cycles at the expense of maintainability.
;       Changes to the resource ids should be
;       carefully thought out.
;

true            equ             1
false           equ             0

POSTFIX         equ             1
PREFIX          equ             0

INC             equ             1
DEC             equ             0

tNUM            equ             1 ;Stack tokens
tSTRING         equ             2 ;.for expression
tID             equ             3 ;..interpreter

tGE             equ             1 ;Tokens for
tLE             equ             2 ; relop
tGT             equ             3 
tLT             equ             4
tEQUAL          equ             5
tNE             equ             6

AND		equ		1 ;Function tokens
OR		equ		2 ;.for boolean
XOR		equ		3 ;..operations
NOT		equ		4 ;...within
LSHIFT		equ		5 ;....expression
RSHIFT		equ		6 ;.....interpreter
LROTATE		equ		7
RROTATE		equ		8

; Resource IDs

kidbAIB         equ             32766
kidrPREF        equ             1
kidrTVER        equ             1
kidrTAIB        equ             1000
kidfMain        equ             1000
kidfProgram	equ		3000
kidfSymbolMaint equ		3001
kidcExpr	equ		3002
kidcSymbol	equ		3003
kidcSymbolTable	equ		3004
kidcSymbolList	equ		3005
kidbreplace	equ		3006
kidcKeyText	equ		3007
kidbreprogram	equ		3008
kidbadd		equ		3009
kidcImmed	equ		3010
kidbdelete	equ		3011
kidcKeySelection equ            3012
kidfOptions     equ             3013
kidcBase        equ             3014
kidcFPMode      equ             3015
kidcUnsigned    equ             3016
kidcDegrees     equ             3017
kidcRadians     equ             3018
kidcGrads       equ             3019
kidcNearest     equ             3020 ;<--
kidcTowardZero  equ             3021 ;    \ Order
kidcDownward    equ             3022 ;    / Matters
kidcUpward      equ             3023 ;<--
kidcFloatInHex  equ             3024
kidcSymbolCase  equ             3025
kidfAscii       equ             3026
kidcListDecimal equ             3027
kidcListHex     equ             3028
kidcListCharacter equ           3029

kidfInp		equ		2000
kidcInp		equ		2001
kidmMain        equ             1000
kidmAbout       equ             1001
kidmOptions     equ             1002
kidmAscii       equ             1003
kidbdot		equ		46
kidb0		equ		48
kidb1		equ		49
kidb2		equ		50
kidb3		equ		51
kidb4		equ		52
kidb5		equ		53
kidb6		equ		54
kidb7		equ		55
kidb8		equ		56
kidb9		equ		57
kidbA		equ		65
kidbB		equ		66
kidbC		equ		67
kidbD		equ		68
kidbE		equ		69
kidbF		equ		70
kidberror       equ             88
kidbminus 	equ		45
kidbequal	equ		200		
kidbsetbase	equ		201
kidbprogram	equ		202
kidcbackspace	equ		203
kidbcopy	equ		204
kidbpaste	equ		205
kidbpageselect	equ		206
kidbpf		equ		207

KEY0		equ		256
KEY1		equ		257
KEY2		equ		258
KEY3		equ		259
KEY4		equ		260
KEY5		equ		261
KEY6		equ		262
KEY7		equ		263
KEY8		equ		264
KEY9		equ		265
KEY10		equ		266
KEY11		equ		267
KEY12		equ		268
KEY13		equ		269
KEY14		equ		270
KEY15		equ		271
KEY16		equ		272
KEY17		equ		273
KEY18		equ		274
KEY19		equ		275
KEY20		equ		276
KEY21		equ		277
KEY22		equ		278
KEY23		equ		279

kidcdec		equ		10 
kidchex		equ		16
kidcoct		equ		8
kidcbin		equ		2

kidbe		equ		101

kidcbase	equ		5001
kidbok		equ		5002
kidbcancel      equ             5003

; Alerts

ErrorAlert	equ		4000
ErrorMem	equ		4001
DupID		equ		4002
NoSym		equ		4003
ReprogramError	equ		4004
OperationDone	equ		4005
SymbolExists	equ		4006
MaxSymbols	equ		4007
BadSymbol	equ		4008
OperationFailed	equ		4009
CreateDBError   equ             4010
ModeError       equ             4011
VersionError    equ             4012
kidrAboutAlert  equ             4013
kidrBaseError	equ		4014
Trace           equ             4015


helpProgram     equ             7000
helpSymbol      equ             7001

