add debug flag register to engine.

This commit is contained in:
Kelvin Sherlock 2019-01-26 17:07:40 -05:00
parent f376e2a442
commit 66f3971027
2 changed files with 17 additions and 12 deletions

View File

@ -152,6 +152,7 @@ STRUCT(Fplus) {
};
STRUCT(Engine_reg) {
Fplus *fplus_ptr;
double fcycles;
word32 kpc;
word32 acc;
@ -164,7 +165,7 @@ STRUCT(Engine_reg) {
word32 direct;
word32 psr;
Fplus *fplus_ptr;
word32 flags;
};
STRUCT(Kimage) {

View File

@ -49,17 +49,21 @@
#define BANK_BAD_MEM (&g_dummy_memory1_ptr[0xff])
#define ENGINE_FCYCLES 0x00
#define ENGINE_REG_KPC 0x08
#define ENGINE_REG_ACC 0x0c
#define ENGINE_REG_XREG 0x10
#define ENGINE_REG_YREG 0x14
#define ENGINE_REG_STACK 0x18
#define ENGINE_REG_DBANK 0x1c
#define ENGINE_REG_DIRECT 0x20
#define ENGINE_REG_PSR 0x24
#define ENGINE_FPLUS_PTR 0x28
/*
* this is only relevant for the PA RISC asm.
*
*/
#define ENGINE_FPLUS_PTR 0x00
#define ENGINE_FCYCLES 0x08
#define ENGINE_REG_KPC 0x10
#define ENGINE_REG_ACC 0x14
#define ENGINE_REG_XREG 0x18
#define ENGINE_REG_YREG 0x1c
#define ENGINE_REG_STACK 0x20
#define ENGINE_REG_DBANK 0x24
#define ENGINE_REG_DIRECT 0x28
#define ENGINE_REG_PSR 0x2c
#define ENGINE_FLAGS 0x30
#define LOG_PC_DCYCS 0x00
#define LOG_PC_DBANK_KPC 0x08