Skip to content

Commit

Permalink
oopsi :)
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.code.sf.net/p/vice-emu/code/trunk@45288 379a1393-f5fb-40a0-bcee-ef074d9b53f7
  • Loading branch information
mrdudz committed Aug 9, 2024
1 parent 328f543 commit 538f1ae
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions vice/src/plus4/ted.c
Original file line number Diff line number Diff line change
Expand Up @@ -502,8 +502,8 @@ void ted_update_memory_ptrs(unsigned int cycle)
screen_addr = ((ted.regs[0x14] & 0xf8) << 8) | 0x400;
screen_base = mem_get_tedmem_base((screen_addr >> 14) | cpu_romsel)
+ (screen_addr & 0x3fff);
if (cpu_romsel && (screen_base < 0x8000)) {
screen_base = mem_get_open_space(screen_addr);
if (cpu_romsel && (screen_addr < 0x8000)) {
screen_base = mem_get_open_space();
}

TED_DEBUG_REGISTER(("\tVideo memory at $%04X", screen_addr));
Expand All @@ -512,7 +512,7 @@ void ted_update_memory_ptrs(unsigned int cycle)
bitmap_base = mem_get_tedmem_base((bitmap_addr >> 14) | video_romsel)
+ (bitmap_addr & 0x3fff);
if (video_romsel && (bitmap_addr < 0x8000)) {
bitmap_base = mem_get_open_space(bitmap_addr);
bitmap_base = mem_get_open_space();
}

TED_DEBUG_REGISTER(("\tBitmap memory at $%04X", bitmap_addr));
Expand All @@ -522,16 +522,16 @@ void ted_update_memory_ptrs(unsigned int cycle)
char_base = mem_get_tedmem_base((char_addr >> 14) | video_romsel)
+ (char_addr & 0x3fff);
if (video_romsel && (char_addr < 0x8000)) {
char_base = mem_get_open_space(char_addr);
char_base = mem_get_open_space();
}

TED_DEBUG_REGISTER(("\tUser-defined character set at $%04X", char_addr));

color_addr = ((ted.regs[0x14] & 0xf8) << 8);
color_base = mem_get_tedmem_base((color_addr >> 14) | cpu_romsel)
+ (color_addr & 0x3fff);
if (cpu_romsel && (color_base < 0x8000)) {
color_base = mem_get_open_space(color_addr);
if (cpu_romsel && (color_addr < 0x8000)) {
color_base = mem_get_open_space();
}

TED_DEBUG_REGISTER(("\tColor memory at $%04X", color_addr));
Expand Down

0 comments on commit 538f1ae

Please sign in to comment.