Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Libretro
RACE
Commits
e7145577
Commit
e7145577
authored
Oct 06, 2020
by
Libretro-Admin
Browse files
Add potential buildfix for DrZ80
parent
a45aed7b
Changes
3
Hide whitespace changes
Inline
Side-by-side
DrZ80.h
View file @
e7145577
...
...
@@ -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
DrZ80_support.h
View file @
e7145577
...
...
@@ -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
;
...
...
libretro/libretro.c
View file @
e7145577
#include "libretro.h"
#include "libretro_core_options.h"
#include "log.h"
#include <stdio.h>
#include <string.h>
#include "../types.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment