summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/luckgrln.c
diff options
context:
space:
mode:
author Angelo Salese <angelosa@users.noreply.github.com>2010-02-23 17:33:32 +0000
committer Angelo Salese <angelosa@users.noreply.github.com>2010-02-23 17:33:32 +0000
commite221afd7ceae2f6f26e708884d1151945333a7a3 (patch)
tree2c24cc98dc703f6d4ff713d14a723878652cb603 /src/mame/drivers/luckgrln.c
parentcfb241793398e4b2c29272bd7cae18d0af9ff1d0 (diff)
Hooked-up preliminary heuristic vram table in Lucky Girl New HW, no whatsnew
Diffstat (limited to 'src/mame/drivers/luckgrln.c')
-rw-r--r--src/mame/drivers/luckgrln.c36
1 files changed, 34 insertions, 2 deletions
diff --git a/src/mame/drivers/luckgrln.c b/src/mame/drivers/luckgrln.c
index 8a98e83cfba..5c44df8a53b 100644
--- a/src/mame/drivers/luckgrln.c
+++ b/src/mame/drivers/luckgrln.c
@@ -89,16 +89,48 @@ static VIDEO_UPDATE(luckgrln)
{
int y,x;
int count = 0;
+ static int test;
+
+ if(input_code_pressed_once(screen->machine, KEYCODE_Z))
+ test++;
+
+ if(input_code_pressed_once(screen->machine, KEYCODE_X))
+ test--;
+
+ popmessage("%02x",test);
for (y=0;y<32;y++)
{
for (x=0;x<64;x++)
{
- UINT16 tile = (luck_vram1[count] & 0xff) | ((luck_vram2[count] & 0x1f)<<8);
+ UINT16 tile = (luck_vram1[count] & 0xff);
+ UINT16 enc_tile = (luck_vram2[count] & 0xff) | (luck_vram3[count] << 8);
+ UINT16 dec_tile;
UINT8 col = 0;
+ UINT8 region = 0;
//UINT8 region = (luck_vram2[count] & 0x20) >> 5;
- drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[0],tile,col,0,0,x*8,y*8);
+ switch(enc_tile)
+ {
+ case 0x0ed4: dec_tile = 0x1c; break;
+ case 0x0ed5: dec_tile = 0x1d; break;
+ case 0x0ed8: dec_tile = 0x1d; break;
+ case 0x0ad8: dec_tile = 0x1d; break;
+ case 0x0a18: dec_tile = 0x11; break;
+ case 0x0a3a: dec_tile = 0x12; break; //0x12-0x13 or 0x14 (J, Q or K)
+ case 0x16d8: dec_tile = 0x00; break; //???
+ case 0x0831: dec_tile = 0x03; break; //???
+ case 0x0811: dec_tile = 0x01; break;
+ case 0x0821: dec_tile = 0x01; break; //or 0x1f
+ case 0x0840: dec_tile = 0x04; break;
+ case 0x0891: dec_tile = 0x09; break;
+ case 0x0a08: dec_tile = 0x10; break;
+ default: dec_tile = 0; break;
+ }
+
+ tile = tile|(dec_tile<<8);
+
+ drawgfx_opaque(bitmap,cliprect,screen->machine->gfx[region],tile,col,0,0,x*8,y*8);
count++;
}