annotate defs/vdgdefs @ 1530:a02b18bfc376

New 'Old' fields added from OS-9 Level One V2.00.00 Addendum
author boisy
date Wed, 14 Apr 2004 13:35:50 +0000
parents 0a678473d5cf
children 8d4b5ee1cee4
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
1 IFEQ VDGDEFS
373
c07686556109 Added ifeq statements at top to allow for multiple use's of same def
boisy
parents: 0
diff changeset
2
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
3 VDGDEFS set 1
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
4
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
5 ********************************************************************
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
6 * VDGDefs - VDG Interface Definititions
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
7 *
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
8 * $Id$
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
9 *
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
10 * Edt/Rev YYYY/MM/DD Modified by
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
11 * Comment
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
12 * ------------------------------------------------------------------
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
13 * 1991/05/07 Alan DeKok
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
14 * Wrote original from VDGint source.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
15
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
16
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
17 nam VDGDefs
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
18 ttl VDG Interface Definitions
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
19
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
20
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
21 pag
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
22 * Notes:
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
23 *
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
24 * All offsets from 'U' (address of device memory area)
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
25 * (see p. 6-9, technical reference: U=start of driver data memory
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 * NOTE: There is LOTS of stuff which is only used once, and some which
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
27 * is not needed. Here's a list of the un-needed, and un-used (other than
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 * once)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 *
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
30 * It would probably be benificial to patch VDGint to fix these problems,
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 * unless anyone else has ideas as to why VDGint is doing things this way.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 * Un-needed
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 * VD.EPlt1 - (2) set to VD.NChar, and then read only
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 * VD.EPlt2 - (2) set to same as VD.EPlt1, and then unused
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 * VD.Chr1 - (1) set to same as VD.CChar, and then unused
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 * VD.PlFlg - (1) initialized to $08, and unused
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 * Un-used
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 * $1D - (1) end of SCF memory requirements
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 * VD.Strt1 - (2) CLRed, and then read (LDD) - left as $0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 * $24-$2B - (8)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
44 * $33-$34 - (2)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45 * $7E-$FF - (130)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
46 *
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
47 * Total of 22 (150 in whole page) bytes unneeded or unused.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
48
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
49 VD.Start equ $1E start of VD.XXXX data: number of VDG screens in use
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
50 VD.Strt1 equ $1F (2) and another start
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 VD.Caps equ $21 caps lock info: $00=lower $FF=upper
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
52 VD.DFlag equ $23 0=current screen is valid, $01-$FF = update video
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
53 * $24-$2B unused
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 VD.NGChr equ $2C number of additional characters to get
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
55 VD.RTAdd equ $2D (2) return address after getting characters
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
56 VD.EPlt1 equ $2F (2) pointer to where to put next character
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 VD.EPlt2 equ $31 (2) as above.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
58 * $33-$34 unused
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
59 VD.CFlag equ $35 true lowercase flag $10=true, $00=false
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 VD.CFlg1 equ $36 VDG display code values
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
61 VD.DGBuf equ $37 number of currently displayed buffer
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
62 VD.ScrnA equ $38 (2) screen start address in system memory
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
63 VD.ScrnE equ $3A (2) address of end of screen
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
64 VD.CrsrA equ $3C (2) cursor address
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
65 VD.CrsAL equ $3D cursor address low
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
66 VD.CChar equ $3E value of character under cursor
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
67 VD.Mode equ $3F mode: 0=256x192 x2, 1=128x192 x4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
68 VD.Chr1 equ $40 same as under cursor character
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
69 VD.CColr equ $41 cursor color
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
70 VD.Col equ $42 number of columns for this screen
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
71 VD.Row equ $43 number of rows
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
72 VD.TFlg1 equ $44 see WRITE ($0E)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
73 VD.Alpha equ $45 0 when in alpha mode
761
eff0182a503b Fixed comments
boisy
parents: 373
diff changeset
74 VD.Rdy equ $46 device ready (see SS.DStat 0=not ready)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
75 VD.SBAdd equ $47 (2) address of block screen is in
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
76 VD.Blk equ $49 Block number of screen
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
77 VD.GBuff equ $4A allocation for graphics buffers (block#)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
78 VD.AGBuf equ $4B (2) additional graphics buffer
762
763a485dec38 Fleshed out defs a bit more
boisy
parents: 761
diff changeset
79 VD.HiRes equ $4D hi-res screen table (block value)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
80 VD.NBlk equ $4E number of blocks in this screen
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
81 VD.SType equ $4F screen type 0-4
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
82 VD.HR2 equ $50 (3) for screen number 2
761
eff0182a503b Fixed comments
boisy
parents: 373
diff changeset
83 VD.HR3 equ $53 (3) for screen 3 (same 3 bytes as above)
762
763a485dec38 Fleshed out defs a bit more
boisy
parents: 761
diff changeset
84 VD.FFMem equ $56 (2) bottom of stack for flood fill
763a485dec38 Fleshed out defs a bit more
boisy
parents: 761
diff changeset
85 VD.FFSPt equ $58 (2) flood fill stack pointer
763a485dec38 Fleshed out defs a bit more
boisy
parents: 761
diff changeset
86 VD.FFSTp equ $5A (2) flood fill stack top pointer
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
87 VD.FF6 equ $5C flood fill flag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
88 VD.MTabl equ $5D (2) address of mask table for pixels in byte
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
89 VD.PixBt equ $5F bit mask for modes (0=$07, 1=$03 )#pixels/byte
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
90 VD.GCrsX equ $60 graphics cursor X value
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
91 VD.GCrsY equ $61 graphics cursor Y
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
92 VD.Msk1 equ $62 mask byte 1
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
93 VD.Msk2 equ $63 mask byte 2 (00,55,AA,FF)
762
763a485dec38 Fleshed out defs a bit more
boisy
parents: 761
diff changeset
94 VD.MCol equ $64 color? (C003,8001)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
95 VD.MCol2 equ $65 color
762
763a485dec38 Fleshed out defs a bit more
boisy
parents: 761
diff changeset
96 VD.PMask equ $66 pixel mask for colors (i.e. $55, $CC etc)
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
97 VD.FF1 equ $67 data for flood fill
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
98 VD.FF2 equ $68 data for flood fill
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
99 VD.FFMsk equ $69 flood fill mask
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
100 VD.FFFlg equ $6A flood fill flag
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
101 VD.Palet equ $6B (16) current palette values
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
102 VD.PlFlg equ $7B initialized to $08 by L00DB, and then unused!
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
103 VD.NChar equ $7C character to process
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
104 VD.NChr2 equ $7D and the next one
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
105
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
106 * and RMB until we get 256 bytes reserved
373
c07686556109 Added ifeq statements at top to allow for multiple use's of same def
boisy
parents: 0
diff changeset
107
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
108 ENDC
373
c07686556109 Added ifeq statements at top to allow for multiple use's of same def
boisy
parents: 0
diff changeset
109