Merge pull request #77 from nretro/master

Upload bootrom
This commit is contained in:
sorgelig
2019-05-09 08:10:55 +08:00
committed by GitHub
2 changed files with 24 additions and 1 deletions

View File

@@ -205,7 +205,7 @@ const char *helptexts[] =
" Welcome to MiSTer! Use the cursor keys to navigate the menus. Use space bar or enter to select an item. Press Esc or F12 to exit the menus. Joystick emulation on the numeric keypad can be toggled with the numlock or scrlock key, while pressing Ctrl-Alt-0 (numeric keypad) toggles autofire mode.",
" Minimig can emulate an A600/A1200 IDE harddisk interface. The emulation can make use of Minimig-style hardfiles (complete disk images) or UAE-style hardfiles (filesystem images with no partition table).",
" Minimig's processor core can emulate a 68000 or 68020 processor (though the 68020 mode is still experimental.) If you're running software built for 68000, there's no advantage to using the 68020 mode, since the 68000 emulation runs just as fast.",
" Minimig can make use of up to 2 megabytes of Chip RAM, up to 1.5 megabytes of Slow RAM (A500 Trapdoor RAM), and up to 24 megabytes of true Fast RAM. To use the HRTmon feature you will need a file on the SD card named hrtmon.rom. HRTMon is not compatible with Fast RAM.",
" Minimig can make use of up to 2 megabytes of Chip RAM, up to 1.5 megabytes of Slow RAM (A500 Trapdoor RAM), and up to 24 megabytes of true Fast RAM. To use the HRTmon feature you will need a file on the SD card named hrtmon.rom.",
" Minimig's video features include a blur filter, to simulate the poorer picture quality on older monitors, and also scanline generation to simulate the appearance of a screen with low vertical resolution.",
0
};

View File

@@ -83,6 +83,7 @@ static void SendFileV2(fileTYPE* file, unsigned char* key, int keysize, int addr
printf("]\n");
}
static char UploadKickstart(char *name)
{
@@ -115,6 +116,28 @@ static char UploadKickstart(char *name)
FileClose(&file);
return(1);
}
else if (file.size == 8203) {
// Cloanto encrypted A1000 boot ROM
BootPrint("Uploading encrypted A1000 boot ROM");
SendFileV2(&file, romkey, keysize, 0xf80000, file.size >> 9);
FileClose(&file);
//clear tag (write 0 to $fc0000) to force bootrom to load Kickstart from disk
//and not use one which was already there.
spi_osd_cmd32le_cont(OSD_CMD_WR, 0xfc0000);
spi8(0x00);spi8(0x00);
DisableOsd();
return(1);
}
else if (file.size == 0x2000) {
// 8KB A1000 boot ROM
BootPrint("Uploading A1000 boot ROM");
SendFileV2(&file, NULL, 0, 0xf80000, file.size >> 9);
FileClose(&file);
spi_osd_cmd32le_cont(OSD_CMD_WR, 0xfc0000);
spi8(0x00);spi8(0x00);
DisableOsd();
return(1);
}
else if (file.size == 0x80000) {
// 512KB Kickstart ROM
BootPrint("Uploading 512KB Kickstart ...");