return NULL;
UBYTE *addr = mb->targetaddr;
for (;;) {
- addr += 65536;
+ addr += 32768;
if (addr - mb->targetaddr + size >= mb->targetsize)
return NULL;
UBYTE *b = AllocAbs(size, addr);
static void set_maprom(struct uaestate *st)
{
- if ((st->mapromtype & MAPROM_ACA500) || (st->mapromtype & MAPROM_ACA500P)) {
+ if (st->mapromtype & (MAPROM_ACA500 | MAPROM_ACA500P)) {
volatile UBYTE *base = (volatile UBYTE*)0xb00000;
base[0x3000] = 0;
base[0x7000] = 0;
base[0xf000] = 0;
base[0xb000] = 0;
base[0x23000] = 0;
- copyrom(st->mapromtype == MAPROM_ACA500 ? 0x980000 : 0xa00000, st);
+ copyrom((st->mapromtype & MAPROM_ACA500) ? 0x980000 : 0xa00000, st);
base[0x23000] = 0xff;
base[0x3000] = 0;
}
}
}
if (!st->maprom) {
- printf("Couldn't allocate %luk for ROM image '%s'\n", st->mapromsize, rompath);
+ printf("Couldn't allocate %luk for ROM image '%s'.\n", st->mapromsize >> 10, rompath);
fclose(f);
return;
}
return;
}
fclose(f);
- printf("ROM image '%s' (%luk) loaded (%08x).\n", rompath, st->mapromsize, st->maprom);
+ printf("ROM image '%s' (%luk) loaded (%08x).\n", rompath, st->mapromsize >> 10, st->maprom);
}
static void load_memory(FILE *f, WORD index, struct uaestate *st)
} else {
printf("Change floppy disk(s) now if needed. Press RETURN to start.\n");
}
- Delay(100); // So that key release gets processed by AmigaOS
#if 0
if (SysBase->LibNode.lib_Version >= 37) {
UBYTE b;
fread(&b, 1, 1, stdin);
+ Delay(100); // So that key release gets processed by AmigaOS
if (GfxBase->LibNode.lib_Version >= 37) {
LoadView(NULL);
Supported hardware configurations:
-- Common 68000 A500 configurations. (chip ram, slow ram and fast ram supported)
-- A1200 68020 configuration (fast ram is also supported)
+- Common 68000 A500 configurations. (chip ram, "slow" ram and fast ram supported)
+- A1200 68020 configuration ("slow" ram and fast ram is also supported)
Information:
- purple = map rom copy
- red = decompressing/copying chip ram state
- green = decompressing/copying slow ram state
-- blue = decompressing/coping fast ram (0x00200000) state
+- blue = decompressing/copying fast ram (0x00200000) state
- yellow = setting floppy drives (seek rw head)