Add file offsets in d868uv address map.

This commit is contained in:
Serge Vakulenko 2018-10-29 21:14:54 -07:00
parent b97f79ec8f
commit 79e50fc551
2 changed files with 579 additions and 577 deletions

File diff suppressed because it is too large Load Diff

View File

@ -51,9 +51,9 @@
#define OFFSET_ZONELISTS 0x03e8c0 // Channel lists of zones
#define OFFSET_SCANLISTS 0x05dcc0 // Scanlists
#define OFFSET_MESSAGES 0x069f40 // Messages
#define OFFSET_CHAN_MAP 0x070a40 // Bitmap of valid channels
#define OFFSET_ZONE_MAP 0x070940 // Bitmap of valid zones
#define OFFSET_SCANL_MAP 0x070980 // Bitmap of valid scanlists
#define OFFSET_CHAN_MAP 0x070a40 // Bitmap of valid channels
#define OFFSET_SETTINGS 0x071600 // General settings
#define OFFSET_ZONENAMES 0x071dc0 // Names of zones
#define OFFSET_RADIOID 0x073d00 // Table of radio IDs
@ -423,9 +423,11 @@ static void d868uv_download(radio_device_t *radio)
unsigned file_offset = 0;
unsigned last_printed = 0;
//printf("Address Offset\n");
for (f=region_map; f->length; f++) {
unsigned addr = f->address;
unsigned nbytes = f->length;
//printf("%08x %06x\n", addr, file_offset);
while (nbytes > 0) {
unsigned n = (nbytes > 32*1024) ? 32*1024 : nbytes;