Expose PC
This commit is contained in:
parent
52c5610528
commit
bc073e3d09
@ -111,6 +111,7 @@ enum {
|
||||
GB_REGISTER_DE,
|
||||
GB_REGISTER_HL,
|
||||
GB_REGISTER_SP,
|
||||
GB_REGISTER_PC,
|
||||
GB_REGISTERS_16_BIT /* Count */
|
||||
};
|
||||
|
||||
@ -330,7 +331,8 @@ typedef union {
|
||||
bc,
|
||||
de,
|
||||
hl,
|
||||
sp;
|
||||
sp,
|
||||
pc;
|
||||
};
|
||||
struct {
|
||||
#ifdef GB_BIG_ENDIAN
|
||||
@ -370,7 +372,6 @@ struct GB_gameboy_internal_s {
|
||||
|
||||
GB_SECTION(core_state,
|
||||
/* Registers */
|
||||
uint16_t pc;
|
||||
union {
|
||||
uint16_t registers[GB_REGISTERS_16_BIT];
|
||||
struct {
|
||||
@ -378,7 +379,8 @@ struct GB_gameboy_internal_s {
|
||||
bc,
|
||||
de,
|
||||
hl,
|
||||
sp;
|
||||
sp,
|
||||
pc;
|
||||
};
|
||||
struct {
|
||||
#ifdef GB_BIG_ENDIAN
|
||||
|
Loading…
Reference in New Issue
Block a user