| 1 | /* |
| 2 | basic, incomplete SSP160x (SSP1601?) interpreter |
| 3 | with SVP memory controller emu |
| 4 | |
| 5 | (c) Copyright 2008, Grazvydas "notaz" Ignotas |
| 6 | Free for non-commercial use. |
| 7 | |
| 8 | For commercial use, separate licencing terms must be obtained. |
| 9 | |
| 10 | Modified for Genesis Plus GX (Eke-Eke): added BIG ENDIAN support, fixed addr/code inversion |
| 11 | */ |
| 12 | |
| 13 | #ifndef _SVP_H_ |
| 14 | #define _SVP_H_ |
| 15 | |
| 16 | #include "shared.h" |
| 17 | #include "ssp16.h" |
| 18 | |
| 19 | typedef struct { |
| 20 | unsigned char iram_rom[0x20000]; /* IRAM (0-0x7ff) and program ROM (0x800-0x1ffff) */ |
| 21 | unsigned char dram[0x20000]; |
| 22 | ssp1601_t ssp1601; |
| 23 | } svp_t; |
| 24 | |
| 25 | extern svp_t *svp; |
| 26 | |
| 27 | extern void svp_init(void); |
| 28 | extern void svp_reset(void); |
| 29 | |
| 30 | #endif |