Previous 199869 Revisions Next

r20761 Wednesday 6th February, 2013 at 05:53:31 UTC by Angelo Salese
Moved a variable around in VDP1, fixes gfx updating in Slam N Jam 96 and Cross Romance
[src/mame/machine]scudsp.c
[src/mame/video]stvvdp1.c

trunk/src/mame/machine/scudsp.c
r20760r20761
6565- Disassembler: complete it
6666- Add control flags
6767- Croc: has a bug somewhere that never allows it to trip the ENDI opcode.
68Snippet of interest is:
6908   00823500                                           CLR A     MOV M0,PL
7009   08040000   OR                                      MOV ALU,A
710A   D208000D   JMP NZ,$D
720B   00000000   NOP
730C   F8000000   ENDI
74...
7540   00863502                                           MOV M0,A  MOV M2,PL
7641   10003009   ADD                                               MOV ALL,MC0
7742   D3400042   JMP T0,$42
7843   00000000   NOP
7944   D0000007   JMP $7
68  Snippet of interest is:
69  08   00823500                                           CLR A     MOV M0,PL
70  09   08040000   OR                                      MOV ALU,A
71  0A   D208000D   JMP NZ,$D
72  0B   00000000   NOP
73  0C   F8000000   ENDI
74  ...
75  40   00863502                                           MOV M0,A  MOV M2,PL
76  41   10003009   ADD                                               MOV ALL,MC0
77  42   D3400042   JMP T0,$42
78  43   00000000   NOP
79  44   D0000007   JMP $7
8080
8181******************************************************************************************/
8282#include "emu.h"
r20760r20761
913913
914914      cycles_run++;
915915
916      if(cycles_run > 10000)
917      {
918         opcode = 0x38000000;
919         dsp_end(dmaspace);
920         cont = 0;
921      }
922
916923   } while( cont );
917924#if DEBUG_DSP
918925   dsp_dump_mem( log_file );
trunk/src/mame/video/stvvdp1.c
r20760r20761
20902090         }
20912091         break;
20922092      case 3: /* Manual mode - change */
2093         /* TODO: Slam n Jam 96 doesn't like this, investigate. */
20942093         if ( state->m_vdp1.fbcr_accessed )
20952094         {
20962095            stv_vdp1_change_framebuffers(machine);
r20760r20761
20982097            {
20992098               stv_clear_framebuffer(machine, state->m_vdp1.framebuffer_current_draw);
21002099            }
2101            framebuffer_changed = 1;
2100            /* TODO: Slam n Jam 96 & Cross Romance doesn't like this, investigate. */
2101//            framebuffer_changed = 1;
21022102         }
2103         framebuffer_changed = 1;
21032104         break;
21042105   }
21052106   state->m_vdp1.fbcr_accessed = 0;

Previous 199869 Revisions Next


© 1997-2024 The MAME Team