; Copyright 2018 David Schmidt. All Rights Reserved.
; See the LICENSE.txt file for distribution terms (Apache 2.0).
;
; Source: SOS programmer's guide
;         SOS Reference Manual, Volume 2 (Apple 1982)

*SYNOPSIS Apple /// Sophisticated Operating System constants.

; SOS MLI function codes.
*TAG SOS-MLI-Functions 

SOS_REQUEST_SEG   = $40
SOS_FIND_SEG      = $41
SOS_CHANGE_SEG    = $42
SOS_GET_SEG_INFO  = $43
SOS_GET_SEG_NUM   = $44
SOS_RELEASE_SEG   = $45

SOS_SET_FENCE     = $60
SOS_GET_FENCE     = $61
SOS_SET_TIME      = $62
SOS_GET_TIME      = $63
SOS_GET_ANALOG    = $64
; SOS ref: "TERMINATE"
; SOS ref: "No errors are possible. This is an excellent call for beginners."
SOS_QUIT          = $65

SOS_READBLOCK     = $80
SOS_WRITEBLOCK    = $81
SOS_D_STATUS      = $82
SOS_D_CONTROL     = $83
SOS_GET_DEV_NUM   = $84
SOS_D_INFO        = $85

SOS_CREATE        = $C0
SOS_DESTROY       = $C1
SOS_RENAME        = $C2
SOS_SET_FILE_INFO = $C3
SOS_GET_FILE_INFO = $C4
SOS_VOLUME        = $C5
SOS_SET_PREFIX    = $C6
SOS_GET_PREFIX    = $C7
SOS_OPEN          = $C8
SOS_NEWLINE       = $C9
; SOS ref: "READ"
SOS_READFILE      = $CA
; SOS ref: "WRITE"
SOS_WRITEFILE     = $CB
SOS_CLOSE         = $CC
SOS_FLUSH         = $CD
SOS_SET_MARK      = $CE
SOS_GET_MARK      = $CF
SOS_SET_EOF       = $D0
SOS_GET_EOF       = $D1
SOS_SET_LEVEL     = $D2
SOS_GET_LEVEL     = $D3
