trunk/src/mame/machine/seicop.c
| r17804 | r17805 | |
| 2502 | 2502 | //if(dma_trigger != 0x87) |
| 2503 | 2503 | //printf("SRC: %08x %08x DST:%08x SIZE:%08x TRIGGER: %08x %02x %02x\n",cop_dma_src[cop_dma_trigger] << 6,cop_dma_fade_table * 0x400,cop_dma_dst[cop_dma_trigger] << 6,cop_dma_size[cop_dma_trigger] << 5,cop_dma_trigger,pal_brightness_val,pal_brightness_mode); |
| 2504 | 2504 | |
| 2505 | | src = (cop_dma_src[cop_dma_trigger] << 6) ; |
| 2505 | src = (cop_dma_src[cop_dma_trigger] << 6); |
| 2506 | 2506 | dst = (cop_dma_dst[cop_dma_trigger] << 6); |
| 2507 | 2507 | size = ((cop_dma_size[cop_dma_trigger] << 5) - (cop_dma_dst[cop_dma_trigger] << 6) + 0x20)/2; |
| 2508 | 2508 | |
trunk/src/mame/drivers/raiden2.c
| r17804 | r17805 | |
| 680 | 680 | int xflip, yflip; |
| 681 | 681 | int xstep, ystep; |
| 682 | 682 | |
| 683 | | if (sx & 0x8000) sx -= 0x10000; |
| 684 | | if (sy & 0x8000) sy -= 0x10000; |
| 685 | 683 | |
| 686 | | |
| 687 | 684 | ytlim = (source[0] >> 12) & 0x7; |
| 688 | 685 | xtlim = (source[0] >> 8) & 0x7; |
| 689 | 686 | |
| r17804 | r17805 | |
| 714 | 711 | { |
| 715 | 712 | for (ytiles = 0; ytiles < ytlim; ytiles++) |
| 716 | 713 | { |
| 714 | /* note this wraparound handling could be wrong if some of the COP maths is wrong */ |
| 715 | |
| 716 | #define ZEROTEAM_MASK_X (0x1ff) // causes a blank square in the corner of zero team, but otherwise the thrusters of the ship in the r2 intro are clipped, using 0x8000 as a sign bit instead of this logic works for r2, but not zero team |
| 717 | #define ZEROTEAM_MASK_Y (0x1ff) |
| 718 | |
| 719 | |
| 717 | 720 | drawgfx_transpen( |
| 718 | 721 | bitmap, |
| 719 | 722 | cliprect, |
| r17804 | r17805 | |
| 721 | 724 | tile_number, |
| 722 | 725 | colr, |
| 723 | 726 | yflip,xflip, |
| 724 | | sx+xstep*xtiles,sy+ystep*ytiles,15); |
| 727 | (sx+xstep*xtiles)&ZEROTEAM_MASK_X,(sy+ystep*ytiles)&ZEROTEAM_MASK_Y,15); |
| 725 | 728 | |
| 729 | drawgfx_transpen( |
| 730 | bitmap, |
| 731 | cliprect, |
| 732 | gfx, |
| 733 | tile_number, |
| 734 | colr, |
| 735 | yflip,xflip, |
| 736 | ((sx+xstep*xtiles)&ZEROTEAM_MASK_X)-0x200,(sy+ystep*ytiles)&ZEROTEAM_MASK_Y,15); |
| 737 | |
| 738 | drawgfx_transpen( |
| 739 | bitmap, |
| 740 | cliprect, |
| 741 | gfx, |
| 742 | tile_number, |
| 743 | colr, |
| 744 | yflip,xflip, |
| 745 | (sx+xstep*xtiles)&ZEROTEAM_MASK_X,((sy+ystep*ytiles)&ZEROTEAM_MASK_Y)-0x200,15); |
| 746 | |
| 747 | drawgfx_transpen( |
| 748 | bitmap, |
| 749 | cliprect, |
| 750 | gfx, |
| 751 | tile_number, |
| 752 | colr, |
| 753 | yflip,xflip, |
| 754 | ((sx+xstep*xtiles)&ZEROTEAM_MASK_X)-0x200,((sy+ystep*ytiles)&ZEROTEAM_MASK_Y)-0x200,15); |
| 755 | |
| 756 | |
| 726 | 757 | tile_number++; |
| 727 | 758 | } |
| 728 | 759 | } |