summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author angelosa <salese_corp_ltd@email.it>2016-02-09 21:21:40 +0100
committer angelosa <salese_corp_ltd@email.it>2016-02-09 22:34:49 +0100
commit068efa2a6ed5b2c796c77a386af335fdf33b8484 (patch)
tree3b32c8ee50eb561d8982ee1a7025614081f12a2e
parent66ba72bc9ef1ec2ce4ae9f18b975ac378735ba1a (diff)
Better algo for sexygal
-rw-r--r--src/devices/video/jangou_blitter.cpp15
1 files changed, 4 insertions, 11 deletions
diff --git a/src/devices/video/jangou_blitter.cpp b/src/devices/video/jangou_blitter.cpp
index 89d643fe5bb..a7d7aa7e566 100644
--- a/src/devices/video/jangou_blitter.cpp
+++ b/src/devices/video/jangou_blitter.cpp
@@ -165,19 +165,12 @@ WRITE8_MEMBER( jangou_blitter_device::blitter_process_w )
}
}
+// Sexy Gal swaps around upper src address
WRITE8_MEMBER( jangou_blitter_device::blitter_alt_process_w)
{
- // TODO: convert this into a more useable function
- switch(offset)
- {
- case 0: blitter_process_w(space,0,data); break;
- case 1: blitter_process_w(space,1,data); break;
- case 2: blitter_process_w(space,6,data); break;
- case 3: blitter_process_w(space,2,data); break;
- case 4: blitter_process_w(space,3,data); break;
- case 5: blitter_process_w(space,4,data); break;
- case 6: blitter_process_w(space,5,data); break;
- }
+ const UINT8 translate_addr[7] = { 0, 1, 6, 2, 3, 4, 5 };
+
+ blitter_process_w(space,translate_addr[offset],data);
}
WRITE8_MEMBER( jangou_blitter_device::blitter_vregs_w)