optim, try different dispatch strategies, add reset handler

This commit is contained in:
2026-05-07 14:13:55 +03:00
parent 5cd472c173
commit 1b3f49fc3b
11 changed files with 1438 additions and 12 deletions

View File

@@ -2,11 +2,20 @@
#define __ADDRS_H__
#include "mem_seg.h"
#define IOREG_SREG_ADDR 0x5F
#define IOREG_SPH_ADDR 0x5E
#define IOREG_SPL_ADDR 0x5D
#define IOREG_EIND_ADDR 0x5C
#define IOREG_RAMPZ_ADDR 0x5B
#define IOREG_SREG_ADDR 0x3F
#define IOREG_SPH_ADDR 0x3E
#define IOREG_SPL_ADDR 0x3D
#define IOREG_EIND_ADDR 0x3C
#define IOREG_RAMPZ_ADDR 0x3B
#define SREG_BIT_I 7
#define SREG_BIT_T 6
#define SREG_BIT_H 5
#define SREG_BIT_S 4
#define SREG_BIT_V 3
#define SREG_BIT_N 2
#define SREG_BIT_Z 1
#define SREG_BIT_C 0
#define GPREG_ZH_ADDR 31