2 ; NOTE THAT EASIER AND SAFER WAY OF GETTING HEADER IS TO GENERATE IT !!!
4 ; Maciej 'YTM/Alliance' Witkowiak
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
13 ; currently only SEQUENTIAL structure is supported, no overlays
15 ; defineable values are marked with ';**' in comment line, please be careful with
19 ; .org $0400-508 ; $0400 - length of .cvt header
23 .include "../inc/const.inc"
25 ProgType = APPLICATION ;** may be one of:
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)
34 .byte USR | $80 ; DOS filetype
35 .word 0 ; T&S, will be fixed by converter
37 .byte "filename" ;** DOS filename (16 chars with $a0 padding)
38 .byte $a0,$a0,$a0,$a0,$a0,$a0,$a0,$a0
42 .byte SEQUENTIAL ; GEOS structure
43 .byte ProgType ; GEOS filetype
44 .byte 00 ;** year 2000=00 or 100?
50 .word 0 ; size in blocks, will be fixed by converter
52 .byte "PRG formatted GEOS file V1.0"
54 .res $c4 ; some bytes are left
56 .byte 3, 21, 63 | $80 ; icon picture header, 63 bytes follow
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
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)
88 .byte "Filename" ;**GEOS class (12 chars)
89 .byte $20,$20,$20,$20 ; padding with spaces to 12
91 .byte "V1.0",0 ;**version
94 .byte %01000000 ;**40/80 columns capability
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
102 .byte "Author" ;**author's name (63 chars)
103 .byte 0 ; +terminator
104 .res (63-7) ; padding to 63
106 .byte "Compiled with cc65" ;**note (95 chars)
107 .byte 0 ; +terminator
108 .res (95-18) ; padding to 95
110 ; end of header, code follows