summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/jangou_blitter.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/jangou_blitter.h')
-rw-r--r--src/devices/video/jangou_blitter.h19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/devices/video/jangou_blitter.h b/src/devices/video/jangou_blitter.h
index 5160f42850e..9613488128c 100644
--- a/src/devices/video/jangou_blitter.h
+++ b/src/devices/video/jangou_blitter.h
@@ -28,12 +28,22 @@ public:
jangou_blitter_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// I/O operations
- DECLARE_WRITE8_MEMBER( process_w );
- DECLARE_WRITE8_MEMBER( alt_process_w );
+ DECLARE_ADDRESS_MAP(blit_v1_regs, 8);
+ DECLARE_ADDRESS_MAP(blit_v2_regs, 8);
+
DECLARE_WRITE8_MEMBER( vregs_w );
DECLARE_WRITE8_MEMBER( bltflip_w );
DECLARE_READ_LINE_MEMBER( status_r );
+ // blitter write accessors
+ DECLARE_WRITE8_MEMBER( x_w );
+ DECLARE_WRITE8_MEMBER( y_w );
+ DECLARE_WRITE8_MEMBER( height_and_trigger_w );
+ DECLARE_WRITE8_MEMBER( width_w );
+ DECLARE_WRITE8_MEMBER( src_lo_address_w );
+ DECLARE_WRITE8_MEMBER( src_md_address_w );
+ DECLARE_WRITE8_MEMBER( src_hi_address_w );
+
const uint8_t &blit_buffer(unsigned y, unsigned x) const { return m_blit_buffer[(256 * y) + x]; }
protected:
@@ -46,8 +56,11 @@ private:
void plot_gfx_pixel( uint8_t pix, int x, int y );
uint8_t gfx_nibble( uint32_t niboffset );
+ void trigger_write(void);
uint8_t m_pen_data[0x10];
- uint8_t m_blit_data[7];
+ uint8_t m_x,m_y,m_width,m_height;
+ uint32_t m_src_addr;
+ //uint8_t m_blit_data[7];
uint8_t *m_gfxrom;
uint32_t m_gfxrommask;
bool m_bltflip;