Skip to content

Commit

Permalink
init color ram at powerup, should fix #2037
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@45169 379a1393-f5fb-40a0-bcee-ef074d9b53f7
  • Loading branch information
mrdudz committed May 26, 2024
1 parent c0eb87c commit 39ea849
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion vice/src/c64/c64mem.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ uint8_t mem_ram[C64_RAM_SIZE];
uint8_t mem_chargen_rom[C64_CHARGEN_ROM_SIZE];

/* Internal color memory. */
static uint8_t mem_color_ram[0x400];
#define COLORRAM_SIZE 0x400
static uint8_t mem_color_ram[COLORRAM_SIZE];
uint8_t *mem_color_ram_cpu, *mem_color_ram_vicii;

/* Pointer to the chargen ROM. */
Expand Down
4 changes: 3 additions & 1 deletion vice/src/c64/c64memsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ uint8_t mem_ram[C64_RAM_SIZE];
uint8_t mem_chargen_rom[C64_CHARGEN_ROM_SIZE];

/* Internal color memory. */
static uint8_t mem_color_ram[0x400];
#define COLORRAM_SIZE 0x400
static uint8_t mem_color_ram[COLORRAM_SIZE];
uint8_t *mem_color_ram_cpu, *mem_color_ram_vicii;

/* Pointer to the chargen ROM. */
Expand Down Expand Up @@ -799,6 +800,7 @@ void mem_mmu_translate(unsigned int addr, uint8_t **base, int *start, int *limit
void mem_powerup(void)
{
ram_init(mem_ram, 0x10000);
vicii_init_colorram(mem_color_ram);
}

/* ------------------------------------------------------------------------- */
Expand Down

0 comments on commit 39ea849

Please sign in to comment.