File: vic20gcc.patch

package info (click to toggle)
vice 1.19-1etch1
  • links: PTS
  • area: contrib
  • in suites: etch
  • size: 27,132 kB
  • ctags: 33,406
  • sloc: ansic: 257,145; cpp: 13,395; sh: 3,674; makefile: 3,380; perl: 1,801; yacc: 622; lex: 258; asm: 4
file content (32 lines) | stat: -rw-r--r-- 1,087 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- ./vic20mem.c.orig	Tue Nov 13 23:14:58 2001
+++ ./vic20mem.c	Mon Feb 11 19:50:28 2002
@@ -411,6 +411,14 @@
     else
         vic20_mem_disable_ram_block(0);
 
+    /* Setup color memory at $9400-$97FF.
+       Warning: we use a kludge here.  Instead of mapping the color memory
+       separately, we map it directly in the corresponding RAM address
+       space. */
+    set_mem(0x94, 0x97,
+            ram_read, ram_store,
+            ram, 0xffff);
+
     /* Setup RAM or cartridge ROM at $2000-$3FFF.  */
     if (mem_rom_blocks & (VIC_ROM_BLK1A | VIC_ROM_BLK1B)) {
         vic20_mem_enable_rom_block(1);
@@ -465,14 +473,6 @@
     set_mem(0x91, 0x93,
             via_read, via_store,
             NULL, 0);
-
-    /* Setup color memory at $9400-$97FF.
-       Warning: we use a kludge here.  Instead of mapping the color memory
-       separately, we map it directly in the corresponding RAM address
-       space. */
-    set_mem(0x94, 0x97,
-            ram_read, ram_store,
-            ram, 0xffff);
 
     /* Setup I/O2 at the expansion port */
     set_mem(0x98, 0x9b,