; Vector of static addresses for communication between OS and user
; programs.
; In the OS the static addresses are converted into the static values
; right after the first boot.
; Copyright Xerox Corporation 1979
; this stuff is loaded into both InitAltoIo and the OS

	.get "levels.asm"

	.bext Noop, MissingSysProc, missingSysStatic

	.bext sysStatics, badStream
	.srel
sysStatics: .sysStatics
badStream: .badStream

	.nrel

	nstaticsm1	;number of statics-1 (for install)

.sysStatics:

fstatic:
; (numbers are decimal indices into table)
; 0
	MissingSysProc		; Initial!!!

	.bext Creates
	Creates

	.bext Closes
	Closes

	.bext Gets
	Gets

	.bext Puts
	Puts

	.bext Resets
	Resets

	MissingSysProc		; PUTBACKSTREAM

	.bext Errors
	Errors

	.bext Endofs
	Endofs

	.bext Stateofs
	Stateofs

; 10
	.bext MoveStream
	MoveStream

	.bext PositionPage
	PositionPage

	.bext OldPositionPtr
	OldPositionPtr

	.bext ReadVec
	ReadVec

	.bext WriteVec
	WriteVec

	.bext Display
	Display

	.bext GetChar
	GetChar

	MissingSysProc		; GETRW

	MissingSysProc		; PUTRW

	MissingSysProc		; GETCH

; 20
	MissingSysProc		; PUTCH

	MissingSysProc		; RESERVEOBJ

	MissingSysProc		; RETURNOBJ

	.bext DeleteAFile
	DeleteAFile

	.bext GetAFile
	GetAFile

	.bext OpenAFile
	OpenAFile

	MissingSysProc		; CreateAFile

	.bext CloseAFile
	CloseAFile

	.bext CallSubsys
	CallSubsys

	MissingSysProc		; OverWrite

; 30
	.bext SetDayTime
	SetDayTime

	.bext Timer
	Timer

	.bext DayTime
	DayTime

	.bext CallSwat
	CallSwat

	.bext Ws
	Ws

	.bext Wl
	Wl

	.bext Wo
	Wo

	.bext Wss
	Wss

	.bext Wos
	Wos

	MissingSysProc		; INCLUDES

; 40
	.bext ReadFileStuff
	ReadFileStuff

	.bext SysErr
	SysErr

	Noop			; Opens

	Noop

	.bext Mem
	Mem

	MissingSysProc		; IncMem

	.bext AddObj
	AddObj

	.bext DelObj
	DelObj

	badStream		; sysDir is always bad

	.bext BStore
	BStore

; 50
	.bext BMove
	BMove

	MissingSysProc		; MAXTOP

	.bext UserName
	UserName

	0			; disk bit table
	0			; Fixed up by boot init to lastSn 1,2
	0

	.bext SetFilePos
	SetFilePos

	MissingSysProc		; WRITEPAGE

	.bext CleanupDiskStream
	CleanupDiskStream

	MissingSysProc		; EXECUTEDIO

; 60
	0			; nDiskErrors

	MissingSysProc		; BADPAGES

	.bext DeleteFileS
	DeleteFileS

	MissingSysProc		; MAKENTRY

	MissingSysProc		; FINDHOLE

	.bext LookupEntry		; LOOKUPENTRY
	LookupEntry

	.bext FileLength
	FileLength

	.bext FilePos
	FilePos

	.bext RealDA
	RealDA

	.bext VirtualDA
	VirtualDA

; 70
	.bext GetFixed
	GetFixed

	.bext FreeFixed
	FreeFixed

	.bext FixedLeft
	FixedLeft

	.bext keys
	keys

	.bext dsp
	dsp

	MissingSysProc		; INITSWATRES

	MissingSysProc		; INITIALIZEFILE

	.bext SetEndCode
	SetEndCode

	
nstatics=.-fstatic
nstaticsm1=nstatics-1

.badStream:	.blk lST


	.end