0
|
1 ttl DEFs from VDGint
|
|
2
|
|
3 **********************
|
|
4 * Defs from VDGint
|
|
5 * all offsets from 'U' (address of device memory area)
|
|
6 * (see p. 6-9, technical reference: U=start of driver data memory
|
|
7 *
|
|
8 * EDITION HISTORY:
|
|
9
|
|
10 * Date Changes Made
|
|
11 * -------- ------------------------------
|
|
12 * 91/05/07 Wrote original from VDGint source
|
|
13
|
|
14
|
|
15 * NOTE: There is LOTS of stuff which is only used once, and some which
|
|
16 * is not needed. Here's a list of the un-needed, and un-used (other than
|
|
17 * once)
|
|
18 *
|
|
19 * It would probably be benificial to patch VDGint to fix these problems,
|
|
20 * unless anyone else has ideas as to why VDGint is doing things this way.
|
|
21 *
|
|
22 * Un-needed
|
|
23 * VD.EPlt1 - (2) set to VD.NChar, and then read only
|
|
24 * VD.EPlt2 - (2) set to same as VD.EPlt1, and then unused
|
|
25 * VD.Chr1 - (1) set to same as VD.CChar, and then unused
|
|
26 * VD.PlFlg - (1) initialized to $08, and unused
|
|
27 *
|
|
28 * Un-used
|
|
29 *
|
|
30 * $1D - (1) end of SCF memory requirements
|
|
31 * VD.Strt1 - (2) CLRed, and then read (LDD) - left as $0000
|
|
32 * $24-$2B - (8)
|
|
33 * $33-$34 - (2)
|
|
34 * $7E-$FF - (130)
|
|
35 *
|
|
36 * total of 22 (150 in whole page) bytes unneeded or unused.
|
|
37
|
|
38 page
|
|
39 VD.Start equ $1E start of VD.XXXX data: number of VDG screens in use
|
|
40 VD.Strt1 equ $1F (2) and another start
|
|
41 VD.Caps equ $21 caps lock info: $00=lower $FF=upper
|
|
42 VD.DFlag equ $23 0=current screen is valid, $01-$FF = update video
|
|
43 * $24-$2B unused
|
|
44 VD.NGChr equ $2C number of additional characters to get
|
|
45 VD.RTAdd equ $2D (2) return address after getting characters
|
|
46 VD.EPlt1 equ $2F (2) pointer to where to put next character
|
|
47 VD.EPlt2 equ $31 (2) as above.
|
|
48 * $33-$34 unused
|
|
49 VD.CFlag equ $35 true lowercase flag $10=true, $00=false
|
|
50 VD.CFlg1 equ $36 VDG display code values
|
|
51 VD.DGBuf equ $37 number of currently displayed buffer
|
|
52 VD.ScrnA equ $38 (2) screen start address in system memory
|
|
53 VD.ScrnE equ $3A (2) address of end of screen
|
|
54 VD.CrsrA equ $3C (2) cursor address
|
|
55 VD.CrsAL equ $3D cursor address low
|
|
56 VD.CChar equ $3E value of character under cursor
|
|
57 VD.Mode equ $3F mode: 0=256x192 x2, 1=128x192 x4
|
|
58 VD.Chr1 equ $40 same as under cursor character
|
|
59 VD.CColr equ $41 cursor color
|
|
60 VD.Col equ $42 number of columns for this screen
|
|
61 VD.Row equ $43 number of rows
|
|
62 VD.TFlg1 equ $44 see WRITE ($0E)
|
|
63 VD.Alpha equ $45 0 when in alpha mode
|
|
64 VD.Rdy equ $46 device ready (see SS.DStat 0=not ready
|
|
65 VD.SBAdd equ $47 (2) address of block screen is in
|
|
66 VD.Blk equ $49 Block number of screen
|
|
67 VD.GBuff equ $4A allocation for graphics buffers (block#)
|
|
68 VD.AGBuf equ $4B (2) additional graphics buffer
|
|
69 VD.HiRes equ $4D hi-res screen table (block value
|
|
70 VD.NBlk equ $4E number of blocks in this screen
|
|
71 VD.SType equ $4F screen type 0-4
|
|
72 VD.HR2 equ $50 (3) for screen number 2
|
|
73 VD.HR3 equ $53 (3) for screen 3 (same 3 bytes as above
|
|
74 VD.FF3 equ $56 (2) data for flood fill
|
|
75 VD.FF4 equ $58 (2) "
|
|
76 VD.FF5 equ $5A (2) "
|
|
77 VD.FF6 equ $5C flood fill flag
|
|
78 VD.MTabl equ $5D (2) address of mask table for pixels in byte
|
|
79 VD.PixBt equ $5F bit mask for modes (0=$07, 1=$03 )#pixels/byte
|
|
80 VD.GCrsX equ $60 graphics cursor X value
|
|
81 VD.GCrsY equ $61 graphics cursor Y
|
|
82 VD.Msk1 equ $62 mask byte 1
|
|
83 VD.Msk2 equ $63 mask byte 2 (00,55,AA,FF)
|
|
84 VD.MCol equ $64 color? (C003,8001
|
|
85 VD.MCol2 equ $65 color
|
|
86 VD.PMask equ $66 pixel mask for colors (i.e. $55, $CC etc
|
|
87 VD.FF1 equ $67 data for flood fill
|
|
88 VD.FF2 equ $68 data for flood fill
|
|
89 VD.FFMsk equ $69 flood fill mask
|
|
90 VD.FFFlg equ $6A flood fill flag
|
|
91 VD.Palet equ $6B (16) current palette values
|
|
92 VD.PlFlg equ $7B initialized to $08 by L00DB, and then unused!
|
|
93 VD.NChar equ $7C character to process
|
|
94 VD.NChr2 equ $7D and the next one
|
|
95
|
|
96 * and RMB until we get 256 bytes reserved
|