31 lines
565 B
C
31 lines
565 B
C
#ifndef __ADDRS_H__
|
|
#define __ADDRS_H__
|
|
#include "mem_seg.h"
|
|
|
|
#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
|
|
#define GPREG_ZL_ADDR 30
|
|
|
|
#define GPREG_YH_ADDR 29
|
|
#define GPREG_YL_ADDR 28
|
|
|
|
#define GPREG_XH_ADDR 27
|
|
#define GPREG_XL_ADDR 26
|
|
|
|
|
|
#endif // ifndef __ADDRS_H__
|