Commit e7145577 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Add potential buildfix for DrZ80

parent a45aed7b
......@@ -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
\ No newline at end of file
#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;
......
#include "libretro.h"
#include "libretro_core_options.h"
#include "log.h"
#include <stdio.h>
#include <string.h>
#include "../types.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment