Mercurial > repos > blastem
comparison vdp.h @ 2359:04d29635d238
Support for arrays in debugger language
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sat, 28 Oct 2023 14:39:19 -0700 |
parents | 4b2ac43c106e |
children | 3350b3c8faa8 |
comparison
equal
deleted
inserted
replaced
2358:4b2ac43c106e | 2359:04d29635d238 |
---|---|
29 #define MAX_SPRITES_LINE 20 | 29 #define MAX_SPRITES_LINE 20 |
30 #define MAX_SPRITES_LINE_H32 16 | 30 #define MAX_SPRITES_LINE_H32 16 |
31 #define MAX_SPRITES_FRAME 80 | 31 #define MAX_SPRITES_FRAME 80 |
32 #define MAX_SPRITES_FRAME_H32 64 | 32 #define MAX_SPRITES_FRAME_H32 64 |
33 #define SAT_CACHE_SIZE (MAX_SPRITES_FRAME * 4) | 33 #define SAT_CACHE_SIZE (MAX_SPRITES_FRAME * 4) |
34 | |
35 #define CRAM_BITS 0xEEE | |
36 #define VSRAM_BITS 0x7FF | |
34 | 37 |
35 #define FBUF_SHADOW 0x0001 | 38 #define FBUF_SHADOW 0x0001 |
36 #define FBUF_HILIGHT 0x0010 | 39 #define FBUF_HILIGHT 0x0010 |
37 #define FBUF_MODE4 0x0100 | 40 #define FBUF_MODE4 0x0100 |
38 #define FBUF_MASK (FBUF_SHADOW|FBUF_HILIGHT|FBUF_MODE4) | 41 #define FBUF_MASK (FBUF_SHADOW|FBUF_HILIGHT|FBUF_MODE4) |
316 //to be implemented by the host system | 319 //to be implemented by the host system |
317 uint16_t read_dma_value(uint32_t address); | 320 uint16_t read_dma_value(uint32_t address); |
318 void vdp_dma_started(void); | 321 void vdp_dma_started(void); |
319 void vdp_replay_event(vdp_context *context, uint8_t event, event_reader *reader); | 322 void vdp_replay_event(vdp_context *context, uint8_t event, event_reader *reader); |
320 uint16_t vdp_status(vdp_context *context); | 323 uint16_t vdp_status(vdp_context *context); |
324 void vdp_reg_write(vdp_context *context, uint16_t reg, uint16_t value); | |
321 | 325 |
322 #endif //VDP_H_ | 326 #endif //VDP_H_ |