]> git.sur5r.net Git - cc65/blob - libsrc/geos/devel/cvthead.s
Return 0 if color not found
[cc65] / libsrc / geos / devel / cvthead.s
1
2 ; NOTE THAT EASIER AND SAFER WAY OF GETTING HEADER IS TO GENERATE IT !!!
3
4 ; Maciej 'YTM/Alliance' Witkowiak
5 ; 28.02.2000
6
7 ; This is .cvt header for GEOS files, it is recognized by Convert v2.5 for GEOS
8 ; and Star Commander (when copying GEOS files to/from .d64 images)
9 ; This is only an example, and you should customize file header values (such as
10 ; Author, Class, Date, filename) either here for all GEOS apps or manually later
11 ; in GEOS environment using specialized apps or disk editor
12
13 ; currently only SEQUENTIAL structure is supported, no overlays
14
15 ; defineable values are marked with ';**' in comment line, please be careful with
16 ; string lengths
17
18
19 ;               .org $0400-508          ; $0400 - length of .cvt header
20
21                 .segment "HEADER"
22
23                 .include "../inc/const.inc"
24
25 ProgType        = APPLICATION           ;** may be one of:
26                 ; APPLICATION
27                 ; ASSEMBLY
28                 ; DESK_ACC (unusable, unless you will fix end address in header before run)
29                 ; PRINTER  (unusable, unless you change $0400 to $7900 here and in crt0.s)
30                 ; INPUT_DEVICE (like above but change $0400 to $fe80, you have $017a bytes)
31                 ; AUTO_EXEC (you need to fit in $0400-$4fff area)
32                 ; INPUT_128 (like INPUT_DEVICE but change $0400 to $fd80, you have $017a bytes)
33
34             .byte USR | $80             ; DOS filetype
35             .word 0                     ; T&S, will be fixed by converter
36
37             .byte "filename"            ;** DOS filename (16 chars with $a0 padding)
38             .byte $a0,$a0,$a0,$a0,$a0,$a0,$a0,$a0
39             
40             .word 0                     ; header T&S
41
42             .byte SEQUENTIAL            ; GEOS structure
43             .byte ProgType              ; GEOS filetype
44             .byte 00                    ;** year 2000=00 or 100?
45             .byte 02                    ;** month
46             .byte 28                    ;** day
47             .byte 18                    ;** hour
48             .byte 58                    ;** minute
49
50             .word 0                     ; size in blocks, will be fixed by converter
51             
52             .byte "PRG formatted GEOS file V1.0"
53                                         ; converter stamp
54             .res $c4                    ; some bytes are left
55             
56             .byte 3, 21, 63 | $80       ; icon picture header, 63 bytes follow
57         
58             ;** hey, uberhacker! edit icon here!!! ;-))    
59             .byte %11111111, %11111111, %11111111
60             .byte %10000000, %00000000, %00000001
61             .byte %10000000, %00000000, %00000001
62             .byte %10000000, %00000000, %00000001
63             .byte %10000000, %00000000, %00000001
64             .byte %10000000, %00000000, %00000001
65             .byte %10000000, %00000000, %00000001
66             .byte %10000000, %00000000, %00000001
67             .byte %10000000, %00000000, %00000001
68             .byte %10000000, %00000000, %00000001
69             .byte %10000000, %00000000, %00000001
70             .byte %10000000, %00000000, %00000001
71             .byte %10000000, %00000000, %00000001
72             .byte %10000000, %00000000, %00000001
73             .byte %10000000, %00000000, %00000001
74             .byte %10000000, %00000000, %00000001
75             .byte %10000000, %00000000, %00000001
76             .byte %10000000, %00000000, %00000001
77             .byte %10000000, %00000000, %00000001
78             .byte %10000000, %00000000, %00000001
79             .byte %11111111, %11111111, %11111111
80
81             .byte USR | $80                             ;again DOS type
82             .byte ProgType                              ;again GEOS type
83             .byte SEQUENTIAL                            ;structure
84             .word $0400                                 ;ProgStart
85             .word $0400-1                               ;ProgEnd (needs proper value for DESK_ACC)
86             .word $0400                                 ;ProgExec
87             
88             .byte "Filename"                            ;**GEOS class (12 chars)
89             .byte $20,$20,$20,$20                       ; padding with spaces to 12
90             
91             .byte "V1.0",0                              ;**version
92             .word 0
93             
94             .byte %01000000                             ;**40/80 columns capability
95 ; B7 B6
96 ; 0  0  - runs under GEOS128 but only in 40 column mode
97 ; 0  1  - runs under GEOS128 in both 40/80 column modes
98 ; 1  0  - does not run under GEOS128
99 ; 1  1  - runs under GEOS128 but only in 80 column mode
100
101             
102             .byte "Author"                              ;**author's name (63 chars)
103             .byte 0                                     ;        +terminator
104             .res (63-7)                                 ; padding to 63
105             
106             .byte "Compiled with cc65"                  ;**note (95 chars)
107             .byte 0                                     ;       +terminator
108             .res (95-18)                                ; padding to 95
109             
110             ; end of header, code follows