1626
|
1 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
2 ; stat
|
|
3 ;
|
|
4 ; $Id$
|
|
5 ;
|
|
6 ; Edt/Rev YYYY/MM/DD Modified by
|
|
7 ; Comment
|
|
8 ; ------------------------------------------------------------------
|
|
9 ; 2004/07/02 Boisy G. Pitre
|
|
10 ; Started
|
|
11
|
|
12 .title GetStat/SetStat Code Definitions
|
|
13
|
|
14 .area sys (ABS)
|
|
15
|
|
16 .org 0
|
|
17
|
|
18 SS.Opt:: .byte 1 ; Read/Write PD Options
|
|
19 SS.Ready:: .byte 1 ; Check for Device Ready
|
|
20 SS.Size:: .byte 1 ; Read/Write File Size
|
|
21 SS.Reset:: .byte 1 ; Device Restore
|
|
22 SS.WTrk:: .byte 1 ; Device Write Track
|
|
23 SS.Pos:: .byte 1 ; Get File Current Position
|
|
24 SS.EOF:: .byte 1 ; Test for End of File
|
|
25 SS.Link:: .byte 1 ; Link to Status routines
|
|
26 SS.ULink:: .byte 1 ; Unlink Status routines
|
|
27 SS.Feed:: .byte 1 ; issue form feed
|
|
28 SS.Frz:: .byte 1 ; Freeze DD. information
|
|
29 SS.SPT:: .byte 1 ; Set DD.TKS to given value
|
|
30 SS.SQD:: .byte 1 ; S == ence down hard disk
|
|
31 SS.DCmd:: .byte 1 ; Send direct command to disk
|
|
32 SS.DevNm:: .byte 1 ; Return Device name (32-bytes at [X])
|
|
33 SS.FD:: .byte 1 ; Return File Descriptor (Y-bytes at [X])
|
|
34 SS.Ticks:: .byte 1 ; Set Lockout honor duration
|
|
35 SS.Lock:: .byte 1 ; Lock/Release record
|
|
36 SS.DStat:: .byte 1 ; Return Display Status (CoCo)
|
|
37 SS.Joy:: .byte 1 ; Return Joystick Value (CoCo)
|
|
38 SS.BlkRd:: .byte 1 ; Block Read
|
|
39 SS.BlkWr:: .byte 1 ; Block Write
|
|
40 SS.Reten:: .byte 1 ; Retension cycle
|
|
41 SS.WFM:: .byte 1 ; Write File Mark
|
|
42 SS.RFM:: .byte 1 ; Read past File Mark
|
|
43 SS.ELog:: .byte 1 ; Read Error Log
|
|
44 SS.SSig:: .byte 1 ; Send signal on data ready
|
|
45 SS.Relea:: .byte 1 ; Release device
|
|
46 SS.AlfaS:: .byte 1 ; Return Alfa Display Status (CoCo, SCF/GetStat)
|
|
47 SS.Attr == SS.AlfaS ; to serve 68K/RBF/SetStat only, thru NET
|
|
48 SS.Break:: .byte 1 ; Send break signal out acia
|
|
49 SS.RsBit:: .byte 1 ; Reserve bitmap sector (do not allocate in) LSB(X)=sct#
|
|
50 .byte 1 ; reserved
|
|
51 SS.FDInf == 0h20 ; to serve 68K/RBF/GetStat only, thru NET
|
|
52 .byte 4 ; reserve $20-$23 for Japanese version (Hoshi)
|
|
53 SS.SetMF:: .byte 1 ; reserve $24 for Gimix G68 (Flex compatability?)
|
|
54 SS.Cursr:: .byte 1 ; Cursor information for COCO
|
|
55 SS.ScSiz:: .byte 1 ; Return screen size for COCO
|
|
56 SS.KySns:: .byte 1 ; Getstat/SetStat for COCO keyboard
|
|
57 SS.ComSt:: .byte 1 ; Getstat/SetStat for Baud/Parity
|
|
58 SS.Open:: .byte 1 ; SetStat to tell driver a path was opened
|
|
59 SS.Close:: .byte 1 ; SetStat to tell driver a path was closed
|
|
60 SS.HngUp:: .byte 1 ; SetStat to tell driver to hangup phone
|
|
61 SS.FSig:: .byte 1 ; new signal for temp locked files
|
|
62 SS.DSize == SS.ScSiz ; Return disk size (RBF GetStat)
|
|
63 SS.VarSect == SS.DStat ; Variable Sector Size (RBF GetStat)
|
|
64
|
|
65 ; System Specific and User defined codes above $80
|
|
66
|
|
67 .org 0h80
|
|
68
|
|
69 SS.AAGBf:: .byte 1 ; SetStat to Allocate Additional Graphic Buffer
|
|
70 SS.SLGBf:: .byte 1 ; SetStat to Select a different Graphic Buffer
|
|
71 SS.Mount:: .byte 1 ; Network 4 Mount Setstat
|
|
72 SS.RdNet:: .byte 1 ; Read Raw Sector from Network 4 Omnidrive
|
|
73 SS.MpGPB:: .byte 1 ; SetStat to r == est a Get/Put Buffer be mapped in workspace
|
|
74 SS.Slots:: .byte 1 ; Network 4 slots? getstat
|
|
75
|
|
76 .ifgt Level-1
|
|
77
|
|
78 ; Level 2 Windowing
|
|
79 SS.WnSet:: .byte 1 ; Set up High Level Windowing Information
|
|
80 SS.MnSel:: .byte 1 ; R == est High level Menu Handler take determine next event
|
|
81 SS.SBar:: .byte 1 ; SetStat to set position block on Window scroll bars
|
|
82 SS.Mouse:: .byte 1 ; Return Mouse information packet (COCO)
|
|
83 SS.MsSig:: .byte 1 ; SetStat to tell driver to send signal on mouse event
|
|
84 SS.AScrn:: .byte 1 ; Allocate a screen for application poking
|
|
85 SS.DScrn:: .byte 1 ; Display a screen allocated by SS.AScrn
|
|
86 SS.FScrn:: .byte 1 ; Free a screen allocated by SS.AScrn
|
|
87 SS.PScrn:: .byte 1 ; Polymorph Screen into different screen type
|
|
88 SS.ScInf:: .byte 1 ; Get Current screen info for direct writes
|
|
89 .byte 1 ; Reserved
|
|
90 SS.Palet:: .byte 1 ; Return palette information
|
|
91 SS.Montr:: .byte 1 ; Get and Set Monitor Type
|
|
92 SS.ScTyp:: .byte 1 ; Get screen type information
|
|
93 SS.GIP:: .byte 1 ; Global Input Parameters (SetStat)
|
|
94 SS.UMBar:: .byte 1 ; update menu bar (SetStat)
|
|
95 SS.FBRgs:: .byte 1 ; return color registers (GetStat)
|
|
96 SS.DfPal:: .byte 1 ; set/return default palette registers (Getstat/Setstat)
|
|
97 SS.Tone:: .byte 1 ; Generate a tone using 6 bit sound
|
|
98 SS.GIP2:: .byte 1 ; Global Input Params #2 (L2V3)
|
|
99 SS.AnPal:: .byte 1 ; Animate palettes (L2V3)
|
|
100 SS.FndBf:: .byte 1 ; Find named buffer (L2V3)
|
|
101
|
|
102 ; sc6551 defined
|
|
103 SS.CDSta == SS.GIP2
|
|
104 SS.CDSig == SS.AnPal
|
|
105 SS.CDRel == SS.FndBf
|
|
106
|
|
107 .else
|
|
108
|
|
109 ; These are wide open in Level 1
|
|
110 .byte 19
|
|
111
|
|
112 ; sc6551 defined
|
|
113 SS.CDSta:: .byte 1
|
|
114 SS.CDSig:: .byte 1
|
|
115 SS.CDRel:: .byte 1
|
|
116
|
|
117 .endif
|
|
118
|
|
119
|
|
120 .org 0hA0
|
|
121
|
|
122 ; New Default SCF input buffer Set status call
|
|
123 SS.Fill:: .byte 1 ; Pre-load SCF device input buffer
|
|
124 SS.Hist:: .byte 1 ; Enable command-line history easily
|
|
125
|
|
126
|
|
127 .org 0hB0
|
|
128
|
|
129 ; New WDDisk get/set status calls
|
|
130 SS.ECC:: .byte 1 ; ECC corrected data error enable/disable (GetStat/SetStat)
|
|
131
|
|
132 .ifgt Level-1
|
|
133
|
|
134 ; VRN get/set status calls. Named by Alan DeKok.
|
|
135 SS.VCtr == 0h80 ; Return FS2 total VIRQ counter
|
|
136 SS.VSig == 0h81 ; Return FS2 number of signals sent
|
|
137
|
|
138 SS.FClr == 0h81 ; Set/clear FS2 VIRQ
|
|
139 SS.FSet == 0hC7 ; Set FS2+ VIRQ
|
|
140 SS.KSet == 0hC8 ; Set KQ3 VIRQ
|
|
141 SS.KClr == 0hC9 ; Clr KQ3 VIRQ
|
|
142 SS.ARAM == 0hCA ; Allocate RAM blocks
|
|
143 SS.DRAM == 0hCB ; De-allocate RAM blocks
|
|
144
|
|
145 ; SDisk 3 Definition equates
|
|
146 SS.DRead == SS.AAGBf ; SDisk3 Direct Sector Read ($80)
|
|
147 SS.DWrit == SS.DRead ; SDisk3 Direct sector Write ($80)
|
|
148 SS.UnFrz == SS.SLGBf ; SDisk3 UNFreeze DD info ($81)
|
|
149 SS.MOFF == SS.Mount ; SDisk3 fast motor off call ($82)
|
|
150 SS.MoTim == SS.RdNet ; SDisk3 Set motor shut off time ($83)
|
|
151 SS.SDRD == SS.MpGPB ; SDisk3 System direct read ($84)
|
|
152 SS.SDWRT == SS.SDRD ; SDisk3 System direct writes ($84)
|
|
153 SS.Sleep == SS.Slots ; SDisk3 (DMC ONLY) Enable/disable F$Sleep calls in read/write 1773 I/O ($85)
|
|
154 SS.DrvCh == SS.WnSet ; SDisk3 (DMC ONLY) Set drive number to cache, or return drive number being cached ($86)
|
|
155
|
|
156 .endif
|
|
157
|