finish header dump

This commit is contained in:
optixx 2009-10-20 22:07:12 +02:00
parent 1adabc080f
commit 76254835ca
4 changed files with 1993 additions and 2141 deletions

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +1,14 @@
/* /*
File: qd16boot02.smc File: qd16boot01.smc
Time: Tue, 20 Oct 2009 21:41:01 Time: Tue, 20 Oct 2009 21:42:10
*/ */
#ifndef __FIFO_H__ #ifndef __FIFO_H__
#define __FIFO_H__ #define __FIFO_H__
#define ROM_ZIP_SIZE 33654 #define ROM_HUFFMAN_SIZE 0
#define ROM_BUFFER_CNT 2 #define ROM_RLE_SIZE 31091
#define ROM_BUFFER_CNT 1
#define ROM_BUFFER_SIZE01 32767 #define ROM_BUFFER_SIZE01 31091
#define ROM_BUFFER_SIZE02 887
#endif #endif

View File

@ -44,11 +44,11 @@
extern system_t system; extern system_t system;
const PROGMEM char STR_ROM[] = "Rom"; const char STR_ROM[] PROGMEM = "Rom";
const PROGMEM char STR_RAM[] = "Sram"; const char STR_RAM[] PROGMEM = "Sram";
const PROGMEM char STR_BAT[] = "Battery"; const char STR_BAT[] PROGMEM = "Battery";
const PROGMEM char STR_SUPERFX[] = "SuperFX"; const char STR_SUPERFX[] PROGMEM = "SuperFX";
const PROGMEM char STR_SA[] = "SA-1"; const char STR_SA[] PROGMEM = "SA-1";
uint8_t command_buf[RECEIVE_BUF_LEN]; uint8_t command_buf[RECEIVE_BUF_LEN];
@ -408,45 +408,45 @@ void shell_run(void)
} }
c = sram_read(0xffd6 - offset); c = sram_read(0xffd6 - offset);
info_P(PSTR("TYPE 0x%04x \n"), (0xffd6 - offset)); info_P(PSTR("TYPE 0x%04xc"), (0xffd6 - offset),c);
switch(c){ switch(c){
case 0x00: case 0x00:
info_P(PSTR("%s\n"),STR_ROM); info_P(PSTR("Rom\n"));
break; break;
case 0x01: case 0x01:
info_P(PSTR("%s + %s\n"),STR_ROM,STR_RAM); info_P(PSTR("Rom + Sram\n"));
break; break;
case 0x02: case 0x02:
info_P(PSTR("%s + %s + %s\n"),STR_ROM,STR_RAM,STR_BAT); info_P(PSTR("Rom + Sram + Battery\n"));
break; break;
case 0x13: case 0x13:
info_P(STR_SUPERFX); info_P(PSTR("SuperFX\n"));
break; break;
case 0x14: case 0x14:
info_P(STR_SUPERFX); info_P(PSTR("SuperFX\n"));
break; break;
case 0x15: case 0x15:
info_P(PSTR("%s + %s\n"),STR_SUPERFX,STR_RAM); info_P(PSTR("SuperFX + Sram\n"));
break; break;
case 0x1a: case 0x1a:
info_P(PSTR("%s + %s\n"),STR_SUPERFX,STR_RAM); info_P(PSTR("SuperFX + Sram\n"));
break; break;
case 0x34: case 0x34:
info_P(STR_SA); info_P(PSTR("SA-1"));
break; break;
case 0x35: case 0x35:
info_P(STR_SA); info_P(PSTR("SA-1"));
break; break;
default: default:
info_P(PSTR("Unkown 0x%02x\n"),c); info_P(PSTR("Unkown 0x%02x\n"),c);
break; break;
} }
arg1 = ( 2 << ( sram_read(0xffd7 - offset) - 1 )); arg1 = ( 2 << ( sram_read(0xffd7 - offset) - 1 ));
info_P(PSTR("ROM 0x%04x %i MBit ( %i KiB)\n"), (0xffd7 - offset),arg1, ((arg1 / 1024) * 8) ); info_P(PSTR("ROM 0x%04x %li MBit ( %li KiB)\n"), (0xffd7 - offset), (arg1 / 128), arg1);
arg1 = ( 2 << ( sram_read(0xffd8 - offset) - 1 )); arg1 = ( 2 << ( sram_read(0xffd8 - offset) - 1 ));
info_P(PSTR("RAM 0x%04x %i MBit ( %i KiB)\n"), (0xffd8 - offset),arg1, ((arg1 / 1024) * 8) ); info_P(PSTR("RAM 0x%04x %li KiB\n"), (0xffd8 - offset), arg1);
info_P(PSTR("CCODE 0x%04x \n"), (0xffd9 - offset)); info_P(PSTR("CCODE 0x%04x "), (0xffd9 - offset));
c = sram_read(0xffd9 - offset); c = sram_read(0xffd9 - offset);
if (c==0x00 || c==0x01 || 0x0d ) if (c==0x00 || c==0x01 || 0x0d )
info_P(PSTR("NTSC\n")); info_P(PSTR("NTSC\n"));

View File

@ -3,7 +3,7 @@
<plist version="1.0"> <plist version="1.0">
<dict> <dict>
<key>currentDocument</key> <key>currentDocument</key>
<string>scripts/zip2raw.rb</string> <string>avr/usbload/shell.c</string>
<key>documents</key> <key>documents</key>
<array> <array>
<dict> <dict>
@ -21,6 +21,20 @@
<integer>271</integer> <integer>271</integer>
<key>metaData</key> <key>metaData</key>
<dict> <dict>
<key>avr/usbload/Makefile</key>
<dict>
<key>caret</key>
<dict>
<key>column</key>
<integer>10</integer>
<key>line</key>
<integer>86</integer>
</dict>
<key>firstVisibleColumn</key>
<integer>0</integer>
<key>firstVisibleLine</key>
<integer>45</integer>
</dict>
<key>avr/usbload/command.c</key> <key>avr/usbload/command.c</key>
<dict> <dict>
<key>caret</key> <key>caret</key>
@ -140,14 +154,14 @@
<key>caret</key> <key>caret</key>
<dict> <dict>
<key>column</key> <key>column</key>
<integer>0</integer> <integer>83</integer>
<key>line</key> <key>line</key>
<integer>402</integer> <integer>444</integer>
</dict> </dict>
<key>firstVisibleColumn</key> <key>firstVisibleColumn</key>
<integer>0</integer> <integer>0</integer>
<key>firstVisibleLine</key> <key>firstVisibleLine</key>
<integer>0</integer> <integer>409</integer>
</dict> </dict>
<key>avr/usbload/shell.h</key> <key>avr/usbload/shell.h</key>
<dict> <dict>
@ -210,14 +224,14 @@
<key>caret</key> <key>caret</key>
<dict> <dict>
<key>column</key> <key>column</key>
<integer>33</integer> <integer>46</integer>
<key>line</key> <key>line</key>
<integer>31</integer> <integer>22</integer>
</dict> </dict>
<key>firstVisibleColumn</key> <key>firstVisibleColumn</key>
<integer>0</integer> <integer>0</integer>
<key>firstVisibleLine</key> <key>firstVisibleLine</key>
<integer>0</integer> <integer>6</integer>
</dict> </dict>
<key>scripts/zip2raw.rb</key> <key>scripts/zip2raw.rb</key>
<dict> <dict>
@ -231,7 +245,7 @@
<key>firstVisibleColumn</key> <key>firstVisibleColumn</key>
<integer>0</integer> <integer>0</integer>
<key>firstVisibleLine</key> <key>firstVisibleLine</key>
<integer>96</integer> <integer>95</integer>
</dict> </dict>
<key>snes/banktest/LoadGraphics.asm</key> <key>snes/banktest/LoadGraphics.asm</key>
<dict> <dict>
@ -269,6 +283,7 @@
<string>avr/usbload/shell.h</string> <string>avr/usbload/shell.h</string>
<string>avr/usbload/shell.c</string> <string>avr/usbload/shell.c</string>
<string>scripts/conv_zip.py</string> <string>scripts/conv_zip.py</string>
<string>avr/usbload/Makefile</string>
<string>scripts/zip2raw.rb</string> <string>scripts/zip2raw.rb</string>
<string>avr/usbload/shared_memory.c</string> <string>avr/usbload/shared_memory.c</string>
<string>avr/usbload/sram.h</string> <string>avr/usbload/sram.h</string>