Previous 199869 Revisions Next

r17616 Monday 3rd September, 2012 at 14:45:56 UTC by Angelo Salese
One line to conquer 'em all ...
[src/mame/includes]snes.h
[src/mame/video]snes.c

trunk/src/mame/video/snes.c
r17615r17616
16711671   snes_ppu.beam.latch_horz = 0;
16721672   snes_ppu.beam.current_vert = 0;
16731673   snes_ppu.beam.current_horz = 0;
1674   snes_ppu.beam.last_visible_line = 240;
1674   snes_ppu.beam.last_visible_line = 225; /* TODO: PAL setting */
16751675   snes_ppu.mode = 0;
16761676   snes_ppu.ppu1_version = 1;   // 5C77 chip version number, read by STAT77, only '1' is known
16771677   snes_ppu.ppu2_version = 3;   // 5C78 chip version number, read by STAT78, only '2' & '3' encountered so far.
r17615r17616
19041904            res = m_snes_vram[offset];
19051905         else
19061906         {
1907            printf("%d %d VRAM read, CHECK!\n",h,v);
1907            //printf("%d %d VRAM read, CHECK!\n",h,v);
19081908            res = 0;
19091909         }
19101910      }
r17615r17616
19321932            m_snes_vram[offset] = snes_open_bus_r(&space, 0);
19331933         else
19341934         {
1935            printf("%d %d VRAM write, CHECK!\n",h,v);
1935            //printf("%d %d VRAM write, CHECK!\n",h,v);
19361936            //no write
19371937         }
19381938      }
19391939      else if (v < snes_ppu.beam.last_visible_line)
19401940      {
1941         printf("%d %d VRAM write, CHECK!\n",h,v);
1941         //printf("%d %d VRAM write, CHECK!\n",h,v);
19421942         //no write
19431943      }
19441944      else if (v == snes_ppu.beam.last_visible_line)
19451945      {
19461946         if (h <= 4)
19471947         {
1948            printf("%d %d VRAM write, CHECK!\n",h,v);
1948            //printf("%d %d VRAM write, CHECK!\n",h,v);
19491949            //no write
19501950         }
19511951         else
trunk/src/mame/includes/snes.h
r17615r17616
4747
4848/* Useful definitions */
4949#define SNES_SCR_WIDTH        256      /* 32 characters 8 pixels wide */
50#define SNES_SCR_HEIGHT_NTSC  224      /* Can be 224 or 240 height */
51#define SNES_SCR_HEIGHT_PAL   274      /* ??? */
50#define SNES_SCR_HEIGHT_NTSC  225      /* Can be 224 or 240 height */
51#define SNES_SCR_HEIGHT_PAL   240      /* ??? */
5252#define SNES_VTOTAL_NTSC      262      /* Maximum number of lines for NTSC systems */
5353#define SNES_VTOTAL_PAL       312      /* Maximum number of lines for PAL systems */
5454#define SNES_HTOTAL           341      /* Maximum number pixels per line (incl. hblank) */

Previous 199869 Revisions Next


© 1997-2024 The MAME Team