mirror of
https://github.com/libretro/RACE.git
synced 2024-11-23 00:49:43 +00:00
Add potential buildfix for DrZ80
This commit is contained in:
parent
a45aed7b1a
commit
e7145577c8
8
DrZ80.h
8
DrZ80.h
@ -30,8 +30,8 @@ extern "C" {
|
||||
|
||||
extern int DrZ80Ver; /* Version number of library */
|
||||
|
||||
struct DrZ80
|
||||
{
|
||||
typedef struct DrZ80
|
||||
{
|
||||
unsigned int Z80PC; /*0x00 - PC Program Counter (Memory Base + PC) */
|
||||
unsigned int Z80A; /*0x04 - A Register: 0xAA------ */
|
||||
unsigned int Z80F; /*0x08 - F Register: 0x------FF */
|
||||
@ -66,7 +66,7 @@ struct DrZ80
|
||||
unsigned int (*z80_rebaseSP)(unsigned short new_sp);
|
||||
unsigned int (*z80_rebasePC)(unsigned short new_pc);
|
||||
unsigned int bla;
|
||||
};
|
||||
} DrZ80_s;
|
||||
|
||||
extern int DrZ80Run(struct DrZ80 *pcy,unsigned int cyc);
|
||||
|
||||
@ -74,4 +74,4 @@ extern int DrZ80Run(struct DrZ80 *pcy,unsigned int cyc);
|
||||
|
||||
#ifdef __cplusplus
|
||||
} /* End of extern "C" */
|
||||
#endif
|
||||
#endif
|
||||
|
@ -11,9 +11,9 @@ extern "C" {
|
||||
/* The Z80 registers. HALT is set to 1 when the CPU is halted, the refresh */
|
||||
/* register is calculated as follows: refresh=(Regs.R&127)|(Regs.R2&128) */
|
||||
/****************************************************************************/
|
||||
typedef struct {
|
||||
typedef struct Z80_Regs {
|
||||
struct DrZ80 regs;
|
||||
} Z80_Regs;
|
||||
} Z80_Regs_s;
|
||||
|
||||
extern struct Z80_Regs Z80;
|
||||
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include "libretro.h"
|
||||
#include "libretro_core_options.h"
|
||||
#include "log.h"
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include "../types.h"
|
||||
|
Loading…
Reference in New Issue
Block a user