Add potential buildfix for DrZ80

This commit is contained in:
twinaphex 2020-10-06 03:58:34 +02:00
parent a45aed7b1a
commit e7145577c8
3 changed files with 7 additions and 6 deletions

View File

@ -30,7 +30,7 @@ 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------ */
@ -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);

View File

@ -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;

View File

@ -1,6 +1,7 @@
#include "libretro.h"
#include "libretro_core_options.h"
#include "log.h"
#include <stdio.h>
#include <string.h>
#include "../types.h"