amiga_cyberspace
diff src/hwregs.h @ 1:b5d609c7161d
copper
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Wed, 26 Jul 2017 08:45:20 +0300 |
parents | e6fd57053627 |
children |
line diff
1.1 --- a/src/hwregs.h Tue Jul 25 08:17:34 2017 +0300 1.2 +++ b/src/hwregs.h Wed Jul 26 08:45:20 2017 +0300 1.3 @@ -254,6 +254,13 @@ 1.4 #define REGN_HCENTER 0x1e2 1.5 #define REGN_DIWHIGH 0x1e4 1.6 1.7 +#define REGN_COP1LCH 0x080 1.8 +#define REGN_COP1LCL 0x082 1.9 +#define REGN_COP2LCH 0x084 1.10 +#define REGN_COP2LCL 0x086 1.11 +#define REGN_COPJMP1 0x088 1.12 +#define REGN_COPJMP2 0x08a 1.13 + 1.14 #define REG(r) (*(volatile uint16_t*)(REG_BASE_ADDR | (r))) 1.15 1.16 #define REG_CIAA_PORTA *(volatile uint8_t*)0xbfe001 1.17 @@ -327,6 +334,11 @@ 1.18 #define REG_COLOR30 REG(REGN_COLOR30) 1.19 #define REG_COLOR31 REG(REGN_COLOR31) 1.20 1.21 +#define REG32_COP1LC *(volatile uint32_t*)(REG_BASE_ADDR | REGN_COP1LCH) 1.22 +#define REG32_COP2LC *(volatile uint32_t*)(REG_BASE_ADDR | REGN_COP2LCH) 1.23 +#define REG_COPJMP1 REG(REGN_COPJMP1) 1.24 +#define REG_COPJMP2 REG(REGN_COPJMP2) 1.25 + 1.26 /* ------ bits ------- */ 1.27 #define SETBITS(x) ((x) | 0x8000) 1.28 #define CLRBITS(x) (x)