annotate defs/vdgdefs @ 1919:028161cd3535

uses ss.fd
author boisy
date Fri, 25 Nov 2005 12:39:54 +0000
parents 6e5fa42c2fb1
children e396d4f24b27
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1541
8d4b5ee1cee4 Fixed defsfiles to work with ASM
boisy
parents: 1200
diff changeset
1 IFNE VDGDEFS-1
1804
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1587
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
1804
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1587
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
1587
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
49 org $1E
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
50 VD.Start rmb 1 start of VD.XXXX data: number of VDG screens in use
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
51 VD.Strt1 rmb 2 (2) and another start
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
52 VD.Caps rmb 2 caps lock info: $00=lower $FF=upper
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
53 VD.DFlag rmb 1 0=current screen is valid, $01-$FF = update video
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
54 * $24-$2B unused
1587
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
55 rmb 8
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
56 VD.NGChr rmb 1 number of additional characters to get
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
57 VD.RTAdd rmb 2 (2) return address after getting characters
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
58 VD.EPlt1 rmb 2 (2) pointer to where to put next character
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
59 VD.EPlt2 rmb 2 (2) as above.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
60 * $33-$34 unused
1587
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
61 rmb 2
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
62 VD.CFlag rmb 1 true lowercase flag $10=true, $00=false
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
63 VD.CFlg1 rmb 1 VDG display code values
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
64 VD.DGBuf rmb 1 number of currently displayed buffer
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
65 VD.ScrnA rmb 2 (2) screen start address in system memory
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
66 VD.ScrnE rmb 2 (2) address of end of screen
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
67 VD.CrsrA rmb 1 (2) cursor address
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
68 VD.CrsAL rmb 1 cursor address low
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
69 VD.CChar rmb 1 value of character under cursor
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
70 VD.Mode rmb 1 mode: 0=256x192 x2, 1=128x192 x4
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
71 VD.Chr1 rmb 1 same as under cursor character
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
72 VD.CColr rmb 1 cursor color
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
73 VD.Col rmb 1 number of columns for this screen
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
74 VD.Row rmb 1 number of rows
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
75 VD.TFlg1 rmb 1 see WRITE ($0E)
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
76 VD.Alpha rmb 1 0 when in alpha mode
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
77 VD.Rdy rmb 1 device ready (see SS.DStat 0=not ready)
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
78 VD.SBAdd rmb 2 (2) address of block screen is in
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
79 VD.Blk rmb 1 Block number of screen
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
80 VD.GBuff rmb 1 allocation for graphics buffers (block#)
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
81 VD.AGBuf rmb 2 (2) additional graphics buffer
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
82 VD.HiRes rmb 1 hi-res screen table (block value)
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
83 VD.NBlk rmb 1 number of blocks in this screen
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
84 VD.SType rmb 1 screen type 0-4
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
85 VD.HR2 rmb 3 (3) for screen number 2
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
86 VD.HR3 rmb 3 (3) for screen 3 (same 3 bytes as above)
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
87 VD.FFMem rmb 2 (2) bottom of stack for flood fill
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
88 VD.FFSPt rmb 2 (2) flood fill stack pointer
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
89 VD.FFSTp rmb 2 (2) flood fill stack top pointer
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
90 VD.FF6 rmb 1 flood fill flag
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
91 VD.MTabl rmb 2 (2) address of mask table for pixels in byte
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
92 VD.PixBt rmb 1 bit mask for modes (0=$07, 1=$03 )#pixels/byte
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
93 VD.GCrsX rmb 1 graphics cursor X value
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
94 VD.GCrsY rmb 1 graphics cursor Y
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
95 VD.Msk1 rmb 1 mask byte 1
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
96 VD.Msk2 rmb 1 mask byte 2 (00,55,AA,FF)
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
97 VD.MCol rmb 1 color? (C003,8001)
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
98 VD.MCol2 rmb 1 color
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
99 VD.PMask rmb 1 pixel mask for colors (i.e. $55, $CC etc)
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
100 VD.FF1 rmb 1 data for flood fill
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
101 VD.FF2 rmb 1 data for flood fill
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
102 VD.FFMsk rmb 1 flood fill mask
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
103 VD.FFFlg rmb 1 flood fill flag
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
104 VD.Palet rmb 16 (16) current palette values
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
105 VD.PlFlg rmb 1 initialized to $08 by L00DB, and then unused!
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
106 VD.NChar rmb 1 character to process
5f18094d961d kernel modules renamed to krn, updated makefiles, clock2_tc3 now clock2_cloud9...
boisy
parents: 1541
diff changeset
107 VD.NChr2 rmb 1 and the next one
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
108
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
109 * 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
110
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
111 ENDC
373
c07686556109 Added ifeq statements at top to allow for multiple use's of same def
boisy
parents: 0
diff changeset
112