Mercurial > repos > blastem
diff segacd.h @ 2069:8e51c0c3f2e3 segacd
Initial attempt at implementing the Sega CD graphics hardware
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 30 Jan 2022 19:55:33 -0800 |
parents | a61a8a87410c |
children | bafb757e1cd2 |
line wrap: on
line diff
--- a/segacd.h Sun Jan 30 11:58:34 2022 -0800 +++ b/segacd.h Sun Jan 30 19:55:33 2022 -0800 @@ -18,8 +18,16 @@ uint8_t *bram; uint32_t stopwatch_cycle; uint32_t int2_cycle; + uint32_t graphics_int_cycle; uint32_t periph_reset_cycle; + uint32_t graphics_cycle; uint32_t base; + uint32_t graphics_x; + uint32_t graphics_y; + uint32_t graphics_dx; + uint32_t graphics_dy; + uint16_t graphics_dst_x; + uint8_t graphics_pixels[4]; uint8_t timer_pending; uint8_t timer_value; uint8_t busreq; @@ -31,6 +39,8 @@ cdd_mcu cdd; uint8_t cdc_dst_low; uint8_t cdc_int_ack; + uint8_t graphics_step; + uint8_t graphics_dst_y; } segacd_context; segacd_context *alloc_configure_segacd(system_media *media, uint32_t opts, uint8_t force_region, rom_info *info);