Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/emulators/adamem/files/patch-Coleco.c
16461 views
1
Index: Coleco.c
2
@@ -40,10 +40,10 @@
3
int CheatCount; /* Number of cheats */
4
int DiskSpeed=100; /* Time in ms it takes to read one... */
5
int TapeSpeed=100; /* ... block */
6
-char *CartName = "CART.rom"; /* Cartridge ROM file */
7
-char *OS7File = "OS7.rom"; /* ColecoVision ROM file */
8
-char *EOSFile = "EOS.rom"; /* EOS ROM file */
9
-char *WPFile = "WP.rom"; /* SmartWriter ROM file */
10
+char *CartName = "%%DATADIR%%/CART.rom"; /* Cartridge ROM file */
11
+char *OS7File = "%%DATADIR%%/OS7.rom"; /* ColecoVision ROM file */
12
+char *EOSFile = "%%DATADIR%%/EOS.rom"; /* EOS ROM file */
13
+char *WPFile = "%%DATADIR%%/WP.rom"; /* SmartWriter ROM file */
14
char *SoundName; /* Sound log file */
15
char *DiskName[4]; /* Disk images */
16
char *TapeName[4]; /* Tape images */
17
@@ -616,7 +616,7 @@
18
OutE0,OutE0,OutE0,OutE0,OutE0,OutE0,OutE0,OutE0
19
};
20
21
-void Z80_Out (unsigned Port,byte Val)
22
+FASTCALL void Z80_Out (unsigned Port,byte Val)
23
{
24
OutPortFn fn;
25
Port&=0xff;
26
@@ -763,7 +763,7 @@
27
InpE0,InpE0,InpE2,InpE2,InpE0,InpE0,InpE2,InpE2
28
};
29
30
-byte Z80_In (unsigned Port)
31
+FASTCALL byte Z80_In (unsigned Port)
32
{
33
InPortFn fn;
34
Port&=0xff;
35
36