Fixed black screens - have to only look at the lower 256K of a ROM's load address.

This commit is contained in:
waltje
2017-09-30 19:56:00 -04:00
parent 9d9f5fdd58
commit e8899c30c1
2 changed files with 14 additions and 8 deletions

View File

@@ -68,7 +68,7 @@ uint32_t biosmask;
int readlnum=0,writelnum=0;
int cachesize=256;
uint8_t *ram,*rom;
uint8_t *rom;
uint8_t romext[32768];
uint32_t ram_mapped_addr[64];
@@ -1327,6 +1327,7 @@ void mem_init(void)
ram = malloc(mem_size * 1024);
readlookup2 = malloc(1024 * 1024 * sizeof(uintptr_t));
writelookup2 = malloc(1024 * 1024 * sizeof(uintptr_t));
rom = NULL;
biosmask = 0xffff;
pages = malloc((((mem_size + 384) * 1024) >> 12) * sizeof(page_t));
page_lookup = malloc((1 << 20) * sizeof(page_t *));