Lines Matching +full:512 +full:- +full:bytes

2 #------------------------------------------------------------------------------
7 # Garmin .FIT files https://pub.ks-and-ks.ne.jp/cycling/edge500_fit.shtml
12 # https://pub.ks-and-ks.ne.jp/cycling/edge500_fit.shtml
14 # TZ=GMT date -d '1989-12-31 0:00' +%s
32 # sourceforge.net/projects/garmin-img/files/IMG%20File%20Format/1.0/imgformat-1.0.pdf
37 >>0 use garmin-map
38 0 name garmin-map
40 !:mime application/x-garmin-map
41 # If non-zero, every byte of the entire .img file is to be XORed with this value
44 >(0x40.b*512) ubyte x
46 >>&512 string =DLLINFO\ TXT map (Voice Processing)
49 # Deutsch__Yannick_D4481-00_0210.vpm
50 #>>>512 search/0x0116da60/s RIFF \b; with
53 >>&512 string !DLLINFO\ TXT map
68 >>>0xB ubyte-100 x 20%.2u
71 # Update month (0-11)
72 >0xA ubyte x \b-%.2u
75 # Mapsource flag, 1 - file created by Mapsource, 0 - Garmin map visible in Basecamp and Homeport
78 # Checksum, sum of all bytes modulo 256 should be 0
82 >0x39 use garmin-date
85 # Block size exponent, E1; appears to always be 0x09; minimum block size 512 bytes
90 >>0x62 ubyte 0 512
100 # 512 zeros
102 # First sub-file offset (absolute); sometimes NO/UNKNOWN sub file!
104 # sub-file Header length
106 >>(0x40C.l) uleshort x %u bytes
107 # sub-file Type[10] like "GARMIN RGN" "GARMIN TRE", "GARMIN TYP", etc.
133 #>>0x420 search/512/s \xff\xff FAT END
137 >>(0x40.b*512) ubyte x
139 >>>&511 use garmin-fat
141 >>>&1023 use garmin-fat
143 >>>&1535 use garmin-fat
145 >>>&2047 use garmin-fat
151 0 name garmin-fat
159 # sub-file name like MAKEGMAP 12345678
161 # sub-file typ like RGN TRE MDR LBL
164 >>>0xC ulelong x \b, %u bytes
165 # 32-bit block sequence numbers
168 # display date stored inside Garmin maps like yyyy-mm-dd h:mm:ss
169 0 name garmin-date
172 # month (0-11)
173 >2 ubyte x \b-%.2u
174 # day (1-31)
175 >3 ubyte x \b-%.2u
176 # hour (0-23)
178 # minute (0-59)
180 # second (0-59)
192 !:mime application/x-garmin-gpm
196 >>>0x0E use garmin-date
200 !:mime application/x-garmin-mdr
206 !:mime application/x-garmin-nod
208 >>>0x0E use garmin-date
210 #>>>0x19 ulelong x %#x bytes NOD1
212 #>>>0x29 ulelong x %#x bytes NOD2
214 #>>>0x35 ulelong x %#x bytes NOD3
218 !:mime application/x-garmin-net
221 #>>>0x19 ulelong x %#x bytes NET1
224 #>>>>0x22 ulelong x %#x bytes NET2
227 #>>>>0x2B ulelong x %#x bytes NET3
230 !:mime application/x-garmin-lbl
236 #>>>0x19 ulelong x %#x bytes LBL1
238 #>>>0x23 ulelong x %#x bytes LBL2
240 #>>>0x31 ulelong x %#x bytes LBL3
244 !:mime application/x-garmin-srt
246 >>>0x0E use garmin-date
249 !:mime application/x-garmin-tre
254 # 2nd title like Copyright 1995-2018 by GARMIN Corporation.
257 >>>0x0E use garmin-date
259 #>>>0x25 ulelong x %#x bytes TRE1
261 #>>>0x2D ulelong x %#x bytes TRE2
263 #>>>0x35 ulelong x %#x bytes TRE3
268 # URL: https://www.gpspower.net/garmin-tutorials/353310-basecamp-installing-free-desktop-map.html
271 !:mime application/x-garmin-trf
281 !:mime application/x-garmin-typ
283 >>>0x0E use garmin-date
288 #>>>0x1B ulelong x %#x bytes TYP1
291 #>>>0x5F ulelong x %#x bytes TYP8
296 !:mime application/x-garmin-rgn
300 #>>>0x19 ulelong x %#x bytes RGN1
304 #>>>>0x21 ulelong x %#x bytes RGN2
308 #>>>>0x3D ulelong x %#x bytes RGN3
312 #>>>>0x59 ulelong x %#x bytes RGN3
327 >6 use garmin-entry
330 >>&0 use garmin-entry
334 >>>&0 use garmin-entry
341 !:mime image/x-garmin-exe
346 !:mime application/x-garmin-rgn
357 0 name garmin-entry
383 # region size (is record length - 10)