-
Notifications
You must be signed in to change notification settings - Fork 9
/
cvt.s
87 lines (61 loc) · 2.64 KB
/
cvt.s
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
; t&s (record block, info block) and timestamp matching
; geoWrite_en_2.1_1988-07-06
.SEGMENT "DIRENTRY"
.byte 131
.byte $06, $0b ; t&s of record block, irrelevant in CVT
.byte "GEOWRITE"
.res (16 - 8), $a0
.byte $06, $03 ; t&s of info block, irrelevant in CVT
.byte 1 ; VLIR structure
.byte 6 ; APPLICATION
.byte 88, 7, 6, 13, 16
.word 141 ; size in 254-byte blocks
.byte "PRG formatted GEOS file"
.segment "FILEINFO"
.incbin "build/current/geoWrite-fhdr.bin", 2
.segment "RECORDS"
.import __VLIR0_START__, __VLIR0_LAST__
.import __VLIR1_START__, __VLIR1_LAST__
.import __VLIR2_START__, __VLIR2_LAST__
.import __VLIR3_START__, __VLIR3_LAST__
.import __VLIR4_START__, __VLIR4_LAST__
.import __VLIR5_START__, __VLIR5_LAST__
.import __VLIR6_START__, __VLIR6_LAST__
.import __VLIR7_START__, __VLIR7_LAST__
.import __VLIR8_START__, __VLIR8_LAST__
.byte .lobyte ((__VLIR0_LAST__ - __VLIR0_START__ - 1) / 254) + 1
.byte .lobyte ((__VLIR0_LAST__ - __VLIR0_START__ - 1) .MOD 254) + 2
.byte .lobyte ((__VLIR1_LAST__ - __VLIR1_START__ - 1) / 254) + 1
.byte .lobyte ((__VLIR1_LAST__ - __VLIR1_START__ - 1) .MOD 254) + 2
.byte .lobyte ((__VLIR2_LAST__ - __VLIR2_START__ - 1) / 254) + 1
.byte .lobyte ((__VLIR2_LAST__ - __VLIR2_START__ - 1) .MOD 254) + 2
.byte .lobyte ((__VLIR3_LAST__ - __VLIR3_START__ - 1) / 254) + 1
.byte .lobyte ((__VLIR3_LAST__ - __VLIR3_START__ - 1) .MOD 254) + 2
.byte .lobyte ((__VLIR4_LAST__ - __VLIR4_START__ - 1) / 254) + 1
.byte .lobyte ((__VLIR4_LAST__ - __VLIR4_START__ - 1) .MOD 254) + 2
.byte .lobyte ((__VLIR5_LAST__ - __VLIR5_START__ - 1) / 254) + 1
.byte .lobyte ((__VLIR5_LAST__ - __VLIR5_START__ - 1) .MOD 254) + 2
.byte .lobyte ((__VLIR6_LAST__ - __VLIR6_START__ - 1) / 254) + 1
.byte .lobyte ((__VLIR6_LAST__ - __VLIR6_START__ - 1) .MOD 254) + 2
.byte .lobyte ((__VLIR7_LAST__ - __VLIR7_START__ - 1) / 254) + 1
.byte .lobyte ((__VLIR7_LAST__ - __VLIR7_START__ - 1) .MOD 254) + 2
.byte .lobyte ((__VLIR8_LAST__ - __VLIR8_START__ - 1) / 254) + 1
.byte .lobyte ((__VLIR8_LAST__ - __VLIR8_START__ - 1) .MOD 254) + 2
.segment "VLIR0"
.incbin "build/current/geoWrite-0.bin"
.segment "VLIR1"
.incbin "build/current/geoWrite-1.bin"
.segment "VLIR2"
.incbin "build/current/geoWrite-2.bin"
.segment "VLIR3"
.incbin "build/current/geoWrite-3.bin"
.segment "VLIR4"
.incbin "build/current/geoWrite-4.bin"
.segment "VLIR5"
.incbin "build/current/geoWrite-5.bin"
.segment "VLIR6"
.incbin "build/current/geoWrite-6.bin"
.segment "VLIR7"
.incbin "build/current/geoWrite-7.bin"
.segment "VLIR8"
.incbin "build/current/geoWrite-8.bin"