trunk/src/mame/video/taitoic.c
| r17692 | r17693 | |
| 586 | 586 | DEVICE HANDLERS |
| 587 | 587 | *****************************************************************************/ |
| 588 | 588 | |
| 589 | | INLINE void common_get_pc080sn_bg_tile_info( device_t *device, tile_data &tileinfo, int tile_index, UINT16 *ram, int gfxnum ) |
| 589 | INLINE void common_get_pc080sn_bg_tile_info( running_machine &machine, device_t *device, tile_data &tileinfo, int tile_index, UINT16 *ram, int gfxnum ) |
| 590 | 590 | { |
| 591 | 591 | pc080sn_state *pc080sn = pc080sn_get_safe_token(device); |
| 592 | 592 | UINT16 code, attr; |
| r17692 | r17693 | |
| 602 | 602 | attr = ram[tile_index]; |
| 603 | 603 | } |
| 604 | 604 | |
| 605 | | SET_TILE_INFO_DEVICE( |
| 605 | SET_TILE_INFO( |
| 606 | 606 | gfxnum, |
| 607 | 607 | code, |
| 608 | 608 | (attr & 0x1ff), |
| 609 | 609 | TILE_FLIPYX((attr & 0xc000) >> 14)); |
| 610 | 610 | } |
| 611 | 611 | |
| 612 | | INLINE void common_get_pc080sn_fg_tile_info( device_t *device, tile_data &tileinfo, int tile_index, UINT16 *ram, int gfxnum ) |
| 612 | INLINE void common_get_pc080sn_fg_tile_info( running_machine &machine, device_t *device, tile_data &tileinfo, int tile_index, UINT16 *ram, int gfxnum ) |
| 613 | 613 | { |
| 614 | 614 | pc080sn_state *pc080sn = pc080sn_get_safe_token(device); |
| 615 | 615 | UINT16 code,attr; |
| r17692 | r17693 | |
| 625 | 625 | attr = ram[tile_index]; |
| 626 | 626 | } |
| 627 | 627 | |
| 628 | | SET_TILE_INFO_DEVICE( |
| 628 | SET_TILE_INFO( |
| 629 | 629 | gfxnum, |
| 630 | 630 | code, |
| 631 | 631 | (attr & 0x1ff), |
| r17692 | r17693 | |
| 635 | 635 | TILE_GET_INFO_MEMBER(pc080sn_device::pc080sn_get_bg_tile_info) |
| 636 | 636 | { |
| 637 | 637 | pc080sn_state *pc080sn = pc080sn_get_safe_token(this); |
| 638 | | common_get_pc080sn_bg_tile_info(this, tileinfo, tile_index, pc080sn->bg_ram[0], pc080sn->bg_gfx); |
| 638 | common_get_pc080sn_bg_tile_info(machine(), this, tileinfo, tile_index, pc080sn->bg_ram[0], pc080sn->bg_gfx); |
| 639 | 639 | } |
| 640 | 640 | |
| 641 | 641 | TILE_GET_INFO_MEMBER(pc080sn_device::pc080sn_get_fg_tile_info) |
| 642 | 642 | { |
| 643 | 643 | pc080sn_state *pc080sn = pc080sn_get_safe_token(this); |
| 644 | | common_get_pc080sn_fg_tile_info(this, tileinfo, tile_index, pc080sn->bg_ram[1], pc080sn->bg_gfx); |
| 644 | common_get_pc080sn_fg_tile_info(machine(), this, tileinfo, tile_index, pc080sn->bg_ram[1], pc080sn->bg_gfx); |
| 645 | 645 | } |
| 646 | 646 | |
| 647 | 647 | |