// Copyright RICHARDS COMPUTER PRODUCTS (C) 1982
// Modified by Martin Richards for use with bbcbcpl32.

// Most are give global numbers above 800 but some can use the global
// numbers in libhdr.h

// SYSHDR
GLOBAL $(
MAXGLOB:800
ABORTCODE:804
ABORTLABEL:805;ABORTLEVEL:806
STOREFILES:816
STREAMCHAIN:817
SYSINDEX:818
TRAPSTACK:819
MAINSTACK:820
LASTERROR:821
CURRCO:822
ENDPROG:824
STACKSIZE:830
CHANGECO:832
CLIINSTR:833
ENDTRAP:834
FSTYPE:839
WRITET:840
WRITEU:841
HEAP:848
HEAPEND:854
ERRORSTREAM:858
FILENAME:860
STRCNTL:861
COMMON2:862
COMMON3:863
DELXFILE:865
FINDXINPUT:868
FINDXOUTPUT:869
WRITEA:886
WRITEBA:887
WRITEDB:889
WRITEOCT:893
EXTSFILE:902
TRUNCVEC:903
UNLOADSEG:905
SFCNTRL:913
LINKEDFILES:914
VDUINFO:916
LIBBASE:917
CLOSESTREAM:920
TRAPSTART:922
SFSTATE:924
APTOVEC:927
FINDSTFILE:948
CONTPRG:949
COLIST:966
ERRORMSG:972
SHUFFLE:973
FAULTROUTINE:975
TIDYSTATE:978
RDTOBLOCK:979
MOVEBYTE:983
BACKMVBY:988
BACKMOVE:989
$)

MANIFEST $(
BITSPERWORD=16;BYTESPERWORD=2;
MAXINT=32767;MININT=-32767

I.LIBBASE=0;I.INTBASE=1;I.TRST=2;I.FLAGS=3
I.LIMIT=4;I.CSTATE=5;I.TSTATE=6;I.RSTATE=7
I.TIME=8;I.JADD=9;I.TOD=10;I.DATE=11
I.DEFSPACE=12;I.RESTART=13
R.MCST=0;R.CURRCO=1;R.SP=2;R.PC=3;R.A=4;R.B=5;R.C=6
M.TIMED=1;M.TRAPESC=2;M.TRAPGV=4;M.TRAPFLAGS=#X80;M.TRAPPED=#X100
F.INST=0;F.JUMP=1;F.CALL=2;F.COUNT=3;F.LASTTRAP=4;F.JPTIME=5
J.FROM=0;J.TO=1

ENTRYWORD=#XDFDF
SECTWORD=#XFDDF
NEEDSWORD=#XFEED
T.END=992
T.HUNK=1000
T.MC=1001
T.RELOC=1002
S.TYPE=4
SF.BSIZE=10
DV.S=7
DV.F=8

stackword=0
$)

