trunk/src/mess/machine/plus4exp.c
| r17751 | r17752 | |
| 347 | 347 | |
| 348 | 348 | |
| 349 | 349 | //------------------------------------------------- |
| 350 | | // screen_update - |
| 351 | | //------------------------------------------------- |
| 352 | | |
| 353 | | UINT32 plus4_expansion_slot_device::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 354 | | { |
| 355 | | bool value = false; |
| 356 | | |
| 357 | | if (m_cart != NULL) |
| 358 | | { |
| 359 | | value = m_cart->plus4_screen_update(screen, bitmap, cliprect); |
| 360 | | } |
| 361 | | |
| 362 | | return value; |
| 363 | | } |
| 364 | | |
| 365 | | |
| 366 | | //------------------------------------------------- |
| 367 | 350 | // breset_w - buffered reset write |
| 368 | 351 | //------------------------------------------------- |
| 369 | 352 | |
trunk/src/mess/machine/plus4exp.h
| r17751 | r17752 | |
| 165 | 165 | // runtime |
| 166 | 166 | virtual UINT8 plus4_cd_r(address_space &space, offs_t offset, UINT8 data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h) { return data; }; |
| 167 | 167 | virtual void plus4_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h) { }; |
| 168 | | virtual UINT32 plus4_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { return 0; } |
| 169 | 168 | virtual void plus4_breset_w(int state) { }; |
| 170 | 169 | |
| 171 | 170 | protected: |
trunk/src/mess/machine/vic20exp.c
| r17751 | r17752 | |
| 357 | 357 | } |
| 358 | 358 | } |
| 359 | 359 | |
| 360 | | |
| 361 | | //------------------------------------------------- |
| 362 | | // screen_update - |
| 363 | | //------------------------------------------------- |
| 364 | | |
| 365 | | UINT32 vic20_expansion_slot_device::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 366 | | { |
| 367 | | bool value = false; |
| 368 | | |
| 369 | | if (m_cart != NULL) |
| 370 | | { |
| 371 | | value = m_cart->vic20_screen_update(screen, bitmap, cliprect); |
| 372 | | } |
| 373 | | |
| 374 | | return value; |
| 375 | | } |
| 376 | | |
| 377 | 360 | WRITE_LINE_MEMBER( vic20_expansion_slot_device::port_res_w ) { if (m_cart != NULL) m_cart->vic20_res_w(state); } |
| 378 | 361 | |
| 379 | 362 | WRITE_LINE_MEMBER( vic20_expansion_slot_device::irq_w ) { m_out_irq_func(state); } |
trunk/src/mess/machine/vic20exp.h
| r17751 | r17752 | |
| 159 | 159 | // runtime |
| 160 | 160 | virtual UINT8 vic20_cd_r(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) { return data; }; |
| 161 | 161 | virtual void vic20_cd_w(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3) { }; |
| 162 | | virtual UINT32 vic20_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { return 0; } |
| 163 | 162 | virtual void vic20_res_w(int state) { }; |
| 164 | 163 | |
| 165 | 164 | vic20_expansion_slot_device *m_slot; |
trunk/src/mess/machine/vic1010.c
| r17751 | r17752 | |
| 136 | 136 | |
| 137 | 137 | |
| 138 | 138 | //------------------------------------------------- |
| 139 | | // vic20_screen_update - screen update |
| 140 | | //------------------------------------------------- |
| 141 | | |
| 142 | | UINT32 vic1010_device::vic20_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 143 | | { |
| 144 | | UINT32 data = 0; |
| 145 | | |
| 146 | | for (int i = 0; i < MAX_SLOTS; i++) |
| 147 | | { |
| 148 | | data |= m_expansion_slot[i]->screen_update(screen, bitmap, cliprect); |
| 149 | | } |
| 150 | | |
| 151 | | return data; |
| 152 | | } |
| 153 | | |
| 154 | | |
| 155 | | //------------------------------------------------- |
| 156 | 139 | // vic20_res_w - reset write |
| 157 | 140 | //------------------------------------------------- |
| 158 | 141 | |
trunk/src/mess/machine/vic1010.h
| r17751 | r17752 | |
| 56 | 56 | // device_vic20_expansion_card_interface overrides |
| 57 | 57 | virtual UINT8 vic20_cd_r(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3); |
| 58 | 58 | virtual void vic20_cd_w(address_space &space, offs_t offset, UINT8 data, int ram1, int ram2, int ram3, int blk1, int blk2, int blk3, int blk5, int io2, int io3); |
| 59 | | virtual UINT32 vic20_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 60 | 59 | virtual void vic20_res_w(int state); |
| 61 | 60 | |
| 62 | 61 | private: |
trunk/src/mess/machine/c1551.c
| r17751 | r17752 | |
| 602 | 602 | |
| 603 | 603 | |
| 604 | 604 | //------------------------------------------------- |
| 605 | | // plus4_screen_update - screen update |
| 606 | | //------------------------------------------------- |
| 607 | | |
| 608 | | UINT32 c1551_device::plus4_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 609 | | { |
| 610 | | return m_exp->screen_update(screen, bitmap, cliprect); |
| 611 | | } |
| 612 | | |
| 613 | | |
| 614 | | //------------------------------------------------- |
| 615 | 605 | // plus4_breset_w - buffered reset write |
| 616 | 606 | //------------------------------------------------- |
| 617 | 607 | |
trunk/src/mess/machine/c1551.h
| r17751 | r17752 | |
| 79 | 79 | // device_plus4_expansion_card_interface overrides |
| 80 | 80 | virtual UINT8 plus4_cd_r(address_space &space, offs_t offset, UINT8 data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h); |
| 81 | 81 | virtual void plus4_cd_w(address_space &space, offs_t offset, UINT8 data, int ba, int cs0, int c1l, int c2l, int cs1, int c1h, int c2h); |
| 82 | | virtual UINT32 plus4_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect); |
| 83 | 82 | virtual void plus4_breset_w(int state); |
| 84 | 83 | |
| 85 | 84 | private: |
trunk/src/mess/machine/c64exp.h
| r17751 | r17752 | |
| 173 | 173 | virtual int c64_game_r(offs_t offset, int ba, int rw, int hiram) { return m_game; } |
| 174 | 174 | virtual int c64_exrom_r(offs_t offset, int ba, int rw, int hiram) { return m_exrom; } |
| 175 | 175 | virtual void c64_reset_w(int state) { }; |
| 176 | | virtual UINT32 c64_screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) { return 0; } |
| 177 | 176 | |
| 178 | 177 | c64_expansion_slot_device *m_slot; |
| 179 | 178 | |
trunk/src/mess/machine/vic10exp.c
| r17751 | r17752 | |
| 279 | 279 | |
| 280 | 280 | |
| 281 | 281 | //------------------------------------------------- |
| 282 | | // screen_update - |
| 283 | | //------------------------------------------------- |
| 284 | | |
| 285 | | UINT32 vic10_expansion_slot_device::screen_update(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect) |
| 286 | | { |
| 287 | | bool value = false; |
| 288 | | |
| 289 | | if (m_cart != NULL) |
| 290 | | { |
| 291 | | value = m_cart->vic10_screen_update(screen, bitmap, cliprect); |
| 292 | | } |
| 293 | | |
| 294 | | return value; |
| 295 | | } |
| 296 | | |
| 297 | | |
| 298 | | //------------------------------------------------- |
| 299 | 282 | // cd_r - cartridge data read |
| 300 | 283 | //------------------------------------------------- |
| 301 | 284 | |