trunk/src/mame/video/snes.c
r17615 | r17616 | |
1671 | 1671 | snes_ppu.beam.latch_horz = 0; |
1672 | 1672 | snes_ppu.beam.current_vert = 0; |
1673 | 1673 | 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 */ |
1675 | 1675 | snes_ppu.mode = 0; |
1676 | 1676 | snes_ppu.ppu1_version = 1; // 5C77 chip version number, read by STAT77, only '1' is known |
1677 | 1677 | snes_ppu.ppu2_version = 3; // 5C78 chip version number, read by STAT78, only '2' & '3' encountered so far. |
r17615 | r17616 | |
1904 | 1904 | res = m_snes_vram[offset]; |
1905 | 1905 | else |
1906 | 1906 | { |
1907 | | printf("%d %d VRAM read, CHECK!\n",h,v); |
| 1907 | //printf("%d %d VRAM read, CHECK!\n",h,v); |
1908 | 1908 | res = 0; |
1909 | 1909 | } |
1910 | 1910 | } |
r17615 | r17616 | |
1932 | 1932 | m_snes_vram[offset] = snes_open_bus_r(&space, 0); |
1933 | 1933 | else |
1934 | 1934 | { |
1935 | | printf("%d %d VRAM write, CHECK!\n",h,v); |
| 1935 | //printf("%d %d VRAM write, CHECK!\n",h,v); |
1936 | 1936 | //no write |
1937 | 1937 | } |
1938 | 1938 | } |
1939 | 1939 | else if (v < snes_ppu.beam.last_visible_line) |
1940 | 1940 | { |
1941 | | printf("%d %d VRAM write, CHECK!\n",h,v); |
| 1941 | //printf("%d %d VRAM write, CHECK!\n",h,v); |
1942 | 1942 | //no write |
1943 | 1943 | } |
1944 | 1944 | else if (v == snes_ppu.beam.last_visible_line) |
1945 | 1945 | { |
1946 | 1946 | if (h <= 4) |
1947 | 1947 | { |
1948 | | printf("%d %d VRAM write, CHECK!\n",h,v); |
| 1948 | //printf("%d %d VRAM write, CHECK!\n",h,v); |
1949 | 1949 | //no write |
1950 | 1950 | } |
1951 | 1951 | else |
trunk/src/mame/includes/snes.h
r17615 | r17616 | |
47 | 47 | |
48 | 48 | /* Useful definitions */ |
49 | 49 | #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 /* ??? */ |
52 | 52 | #define SNES_VTOTAL_NTSC 262 /* Maximum number of lines for NTSC systems */ |
53 | 53 | #define SNES_VTOTAL_PAL 312 /* Maximum number of lines for PAL systems */ |
54 | 54 | #define SNES_HTOTAL 341 /* Maximum number pixels per line (incl. hblank) */ |