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
Time: Tue, 20 Oct 2009 21:41:01
File: qd16boot01.smc
Time: Tue, 20 Oct 2009 21:42:10
*/
#ifndef __FIFO_H__
#define __FIFO_H__
#define ROM_ZIP_SIZE 33654
#define ROM_BUFFER_CNT 2
#define ROM_HUFFMAN_SIZE 0
#define ROM_RLE_SIZE 31091
#define ROM_BUFFER_CNT 1
#define ROM_BUFFER_SIZE01 32767
#define ROM_BUFFER_SIZE02 887
#define ROM_BUFFER_SIZE01 31091
#endif

View File

@ -44,11 +44,11 @@
extern system_t system;
const PROGMEM char STR_ROM[] = "Rom";
const PROGMEM char STR_RAM[] = "Sram";
const PROGMEM char STR_BAT[] = "Battery";
const PROGMEM char STR_SUPERFX[] = "SuperFX";
const PROGMEM char STR_SA[] = "SA-1";
const char STR_ROM[] PROGMEM = "Rom";
const char STR_RAM[] PROGMEM = "Sram";
const char STR_BAT[] PROGMEM = "Battery";
const char STR_SUPERFX[] PROGMEM = "SuperFX";
const char STR_SA[] PROGMEM = "SA-1";
uint8_t command_buf[RECEIVE_BUF_LEN];
@ -408,45 +408,45 @@ void shell_run(void)
}
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){
case 0x00:
info_P(PSTR("%s\n"),STR_ROM);
info_P(PSTR("Rom\n"));
break;
case 0x01:
info_P(PSTR("%s + %s\n"),STR_ROM,STR_RAM);
info_P(PSTR("Rom + Sram\n"));
break;
case 0x02:
info_P(PSTR("%s + %s + %s\n"),STR_ROM,STR_RAM,STR_BAT);
info_P(PSTR("Rom + Sram + Battery\n"));
break;
case 0x13:
info_P(STR_SUPERFX);
info_P(PSTR("SuperFX\n"));
break;
case 0x14:
info_P(STR_SUPERFX);
info_P(PSTR("SuperFX\n"));
break;
case 0x15:
info_P(PSTR("%s + %s\n"),STR_SUPERFX,STR_RAM);
info_P(PSTR("SuperFX + Sram\n"));
break;
case 0x1a:
info_P(PSTR("%s + %s\n"),STR_SUPERFX,STR_RAM);
info_P(PSTR("SuperFX + Sram\n"));
break;
case 0x34:
info_P(STR_SA);
info_P(PSTR("SA-1"));
break;
case 0x35:
info_P(STR_SA);
info_P(PSTR("SA-1"));
break;
default:
info_P(PSTR("Unkown 0x%02x\n"),c);
break;
}
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 ));
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);
if (c==0x00 || c==0x01 || 0x0d )
info_P(PSTR("NTSC\n"));

View File

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