Previous 199869 Revisions Next

r21035 Wednesday 13th February, 2013 at 15:46:50 UTC by Angelo Salese
Enough of this
[src/emu/machine]scudsp.c stvcd.c
[src/emu/video]stvvdp2.c

trunk/src/emu/machine/scudsp.c
r21034r21035
7171  0A    D208000D    JMP NZ,$D
7272  0B    00000000    NOP
7373  0C    F8000000    ENDI
74  ...
74
7575  40    00863502                                            MOV M0,A  MOV M2,PL
7676  41    10003009    ADD                                               MOV ALL,MC0
7777  42    D3400042    JMP T0,$42
r21034r21035
917917
918918      cycles_run++;
919919
920      /* If we run this many cycles guess that the SCU DSP stalled, throw a fatalerror */
921      if(cycles_run > 1000000)
922      {
923         fatalerror("SCU DSP stalled");
924      }
925
920926   } while( cont );
921927#if DEBUG_DSP
922928   dsp_dump_mem( log_file );
trunk/src/emu/machine/stvcd.c
r21034r21035
202202            /* Guess: X-Men COTA sequence is 0x48->0x48->0x04(01)->0x04(00)->0x30 then 0x10, without this game throws a FAD reject error */
203203            /* X-Men vs. SF is even fussier, sequence is  0x04 (1) 0x04 (0) 0x03 (0) 0x03 (1) 0x30 */
204204            #if 0
205            for(i=0;i<MAX_FILTERS;i++)
205            for(int i=0;i<MAX_FILTERS;i++)
206206            {
207207               filters[i].fad = 0;
208208               filters[i].range = 0xffffffff;
trunk/src/emu/video/stvvdp2.c
r21034r21035
64676467   //popmessage("%04x %04x %04x %04x %04x %04x",STV_VDP2_COAR,STV_VDP2_COAG,STV_VDP2_COAB,STV_VDP2_COBR,STV_VDP2_COBG,STV_VDP2_COBB);
64686468}
64696469
6470/******************************************************************************************
6471
6472ST-V VDP2 window effect function version 0.04
6473
6474How it works: returns 0 if the requested pixel is drawnable,1 if it isn't.
6475For tilemap and sprite layer, clipping rectangle is changed.
6476
6477Done:
6478-Basic support(w0 or w1),bitmaps only.
6479-W0 (outside) for tilemaps and sprite layer.
6480-Window logic.
6481
6482Not Done:
6483-Complete Windows on cells.A split between cells and bitmaps is in progress...
6484-w0 & w1 at the same time.
6485-Line window.
6486-Color Calculation.
6487-Rotation parameter Window (already done?).
6488
6489Window Registers are hooked up like this ATM:
6490    x--- ---- UNUSED
6491    -x-- ---- Sprite Window Area
6492    --x- ---- Window 1 Area
6493    ---x ---- Window 0 Area
6494                  (0 = Inside,1 = Outside)
6495    ---- x--- Sprite Window Enable
6496    ---- -x-- Window 1 Enable
6497    ---- --x- Window 0 Enable
6498                  (0 = Disabled,1 = Enabled)
6499    ---- ---x Window Logic
6500                  (0 = OR,1 = AND)
6501******************************************************************************************/
6502
65036470void saturn_state::stv_vdp2_get_window0_coordinates(int *s_x, int *e_x, int *s_y, int *e_y)
65046471{
65056472   /*W0*/

Previous 199869 Revisions Next


© 1997-2024 The MAME Team