Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/emulators/adamem/files/patch-Z80IO.h
16461 views
1
--- Z80IO.h.orig 1999-02-14 19:45:30 UTC
2
+++ Z80IO.h
3
@@ -11,9 +11,8 @@
4
/****************************************************************************/
5
6
#define INLINE_OP /* Inline Z80_RDOP() */
7
-#define INLINE_MEM /* Inline Z80_RDMEM() and Z80_WRMEM() */
8
9
-#ifdef __GNUC__
10
+#if defined(__GNUC__) && (defined(__amd64__) || defined(__i386__))
11
#define FASTCALL __attribute__ ((regparm(3)))
12
#ifdef INLINE_MEM
13
#define INLINE_MEM_GNU
14
@@ -36,11 +35,11 @@ void Z80_Out (unsigned Port,byte Value) FASTCALL;
15
/***************************************************************************/
16
/* Read a byte from given memory location */
17
/***************************************************************************/
18
- unsigned Z80_RDMEM(dword a) FASTCALL;
19
+ unsigned Z80_RDMEM(dword a);
20
/***************************************************************************/
21
/* Write a byte to given memory location */
22
/***************************************************************************/
23
- void Z80_WRMEM(dword a,byte v) FASTCALL;
24
+ void Z80_WRMEM(dword a,byte v);
25
#else
26
extern byte *AddrTabl[256];
27
extern byte *WriteAddrTabl[256];
28
29