summaryrefslogtreecommitdiff
path: root/emulators/xbeeb/patches/patch-ac
blob: 2c5f5c0fca780109d85456d2f67f13dc8a680828 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-ac,v 1.1.1.1 2000/05/22 22:13:12 skrll Exp $

--- src/Memory.c.orig	Sat Oct 12 16:03:26 1996
+++ src/Memory.c	Sun May 21 21:22:13 2000
@@ -254,6 +254,19 @@
 	}
 
 	close ( fd );
+#ifdef EMUL_FS
+	/*
+	 * This code is taken from pch/pch.c to patch up the OS rom when
+	 * using EMUL_FS
+	 */
+
+        /* The OSFILE trap */
+        Mem [ 0xc000 + 0x327d ] = 0x22;
+
+        /* The OSFSC trap */
+        Mem [ 0xc000 + 0x31b1 ] = 0x02;
+#endif
+	
 	return;
 }