Path: blob/main/emulators/adamem/files/patch-Z80IO.h
16461 views
--- Z80IO.h.orig 1999-02-14 19:45:30 UTC1+++ Z80IO.h2@@ -11,9 +11,8 @@3/****************************************************************************/45#define INLINE_OP /* Inline Z80_RDOP() */6-#define INLINE_MEM /* Inline Z80_RDMEM() and Z80_WRMEM() */78-#ifdef __GNUC__9+#if defined(__GNUC__) && (defined(__amd64__) || defined(__i386__))10#define FASTCALL __attribute__ ((regparm(3)))11#ifdef INLINE_MEM12#define INLINE_MEM_GNU13@@ -36,11 +35,11 @@ void Z80_Out (unsigned Port,byte Value) FASTCALL;14/***************************************************************************/15/* Read a byte from given memory location */16/***************************************************************************/17- unsigned Z80_RDMEM(dword a) FASTCALL;18+ unsigned Z80_RDMEM(dword a);19/***************************************************************************/20/* Write a byte to given memory location */21/***************************************************************************/22- void Z80_WRMEM(dword a,byte v) FASTCALL;23+ void Z80_WRMEM(dword a,byte v);24#else25extern byte *AddrTabl[256];26extern byte *WriteAddrTabl[256];272829