annotate defs/vdgdefs @ 3295:6b7a7b233925 default tip

makefile: Allow PORTS with level1/2 mix https://sourceforge.net/p/nitros9/feature-requests/10/
author Tormod Volden <debian.tormod@gmail.com>
date Tue, 19 Apr 2022 18:12:17 +0200
parents e396d4f24b27
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
1 IFNE VDGDEFS-1
1804
6e5fa42c2fb1 Cleaned up defs files
boisy
parents: 1587
diff changeset
2
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
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
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
16 NAM VDGDefs
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
17 TTL VDG Interface Definitions
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
18
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
19 * Notes:
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 * All offsets from 'U' (address of device memory area)
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
22 * (see p. 6-9, technical reference: U=start of driver data memory
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
23 * NOTE: There is LOTS of stuff which is only used once, and some which
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
24 * is not needed. Here's a list of the un-needed, and un-used (other than
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
25 * once)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
26 *
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
27 * It would probably be benificial to patch VDGint to fix these problems,
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
28 * unless anyone else has ideas as to why VDGint is doing things this way.
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
29 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
30 * Un-needed
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
31 * VD.EPlt1 - (2) set to VD.NChar, and then read only
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
32 * VD.EPlt2 - (2) set to same as VD.EPlt1, and then unused
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
33 * VD.Chr1 - (1) set to same as VD.CChar, and then unused
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
34 * VD.PlFlg - (1) initialized to $08, and unused
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
35 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
36 * Un-used
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
37 *
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
38 * $1D - (1) end of SCF memory requirements
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
39 * VD.Strt1 - (2) CLRed, and then read (LDD) - left as $0000
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
40 * $24-$2B - (8)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
41 * $33-$34 - (2)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
42 * $7E-$FF - (130)
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
43 *
1200
0a678473d5cf Major overhaul of headers to 'new' style
boisy
parents: 762
diff changeset
44 * Total of 22 (150 in whole page) bytes unneeded or unused.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
45
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
46 ORG $1E
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
47 VD.Start RMB 1 start of VD.XXXX data: number of VDG screens in use
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
48 VD.Strt1 RMB 2 (2) and another start
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
49 VD.Caps RMB 2 caps lock info: $00=lower $FF=upper
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
50 VD.DFlag RMB 1 0=current screen is valid, $01-$FF = update video
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
51 * $24-$2B unused
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
52 RMB 8
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
53 VD.NGChr RMB 1 number of additional characters to get
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
54 VD.RTAdd RMB 2 (2) return address after getting characters
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
55 VD.EPlt1 RMB 2 (2) pointer to where to put next character
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
56 VD.EPlt2 RMB 2 (2) as above.
0
6641a883d6b0 Initial revision
boisy
parents:
diff changeset
57 * $33-$34 unused
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
58 RMB 2
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
59 VD.CFlag RMB 1 true lowercase flag $10=true, $00=false
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
60 VD.CFlg1 RMB 1 VDG display code values
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
61 VD.DGBuf RMB 1 number of currently displayed buffer
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
62 VD.ScrnA RMB 2 (2) screen start address in system memory
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
63 VD.ScrnE RMB 2 (2) address of end of screen
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
64 VD.CrsrA RMB 1 (2) cursor address
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
65 VD.CrsAL RMB 1 cursor address low
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
66 VD.CChar RMB 1 value of character under cursor
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
67 VD.Mode RMB 1 mode: 0=256x192 x2, 1=128x192 x4
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
68 VD.Chr1 RMB 1 same as under cursor character
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
69 VD.CColr RMB 1 cursor color
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
70 VD.Col RMB 1 number of columns for this screen
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
71 VD.Row RMB 1 number of rows
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
72 VD.TFlg1 RMB 1 see WRITE ($0E)
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
73 VD.Alpha RMB 1 0 when in alpha mode
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
74 VD.Rdy RMB 1 device ready (see SS.DStat 0=not ready)
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
75 VD.SBAdd RMB 2 (2) address of block screen is in
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
76 VD.Blk RMB 1 Block number of screen
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
77 VD.GBuff RMB 1 allocation for graphics buffers (block#)
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
78 VD.AGBuf RMB 2 (2) additional graphics buffer
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
79 VD.HiRes RMB 1 hi-res screen table (block value)
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
80 VD.NBlk RMB 1 number of blocks in this screen
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
81 VD.SType RMB 1 screen type 0-4
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
82 VD.HR2 RMB 3 (3) for screen number 2
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
83 VD.HR3 RMB 3 (3) for screen 3 (same 3 bytes as above)
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
84 VD.FFMem RMB 2 (2) bottom of stack for flood fill
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
85 VD.FFSPt RMB 2 (2) flood fill stack pointer
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
86 VD.FFSTp RMB 2 (2) flood fill stack top pointer
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
87 VD.FF6 RMB 1 flood fill flag
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
88 VD.MTabl RMB 2 (2) address of mask table for pixels in byte
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
89 VD.PixBt RMB 1 bit mask for modes (0=$07, 1=$03 )#pixels/byte
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
90 VD.GCrsX RMB 1 graphics cursor X value
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
91 VD.GCrsY RMB 1 graphics cursor Y
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
92 VD.Msk1 RMB 1 mask byte 1
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
93 VD.Msk2 RMB 1 mask byte 2 (00,55,AA,FF)
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
94 VD.MCol RMB 1 color? (C003,8001)
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
95 VD.MCol2 RMB 1 color
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
96 VD.PMask RMB 1 pixel mask for colors (i.e. $55, $CC etc)
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
97 VD.FF1 RMB 1 data for flood fill
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
98 VD.FF2 RMB 1 data for flood fill
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
99 VD.FFMsk RMB 1 flood fill mask
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
100 VD.FFFlg RMB 1 flood fill flag
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
101 VD.Palet RMB 16 (16) current palette values
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
102 VD.PlFlg RMB 1 initialized to $08 by L00DB, and then unused!
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
103 VD.NChar RMB 1 character to process
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
diff changeset
104 VD.NChr2 RMB 1 and the next one
0
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
2024
e396d4f24b27 Ran each file through pretty print
boisy
parents: 1804
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