diff options
author | Vas Crabb <vas@vastheman.com> | 2019-10-26 10:40:50 +1100 |
---|---|---|
committer | Vas Crabb <vas@vastheman.com> | 2019-10-26 10:40:50 +1100 |
commit | 32868b8e2ae103dd1134ec0596f0966762ac401a (patch) | |
tree | 2245656b8592a3ee94c8959d9a8f64c4690136d0 /src/mame/video | |
parent | cf3f4b2530770465d4f8f123dde94c7ab7032dd1 (diff) |
srcclean (nw)
Diffstat (limited to 'src/mame/video')
-rw-r--r-- | src/mame/video/alpha68k_palette.cpp | 44 | ||||
-rw-r--r-- | src/mame/video/alpha68k_palette.h | 4 | ||||
-rw-r--r-- | src/mame/video/nmk16spr.cpp | 52 | ||||
-rw-r--r-- | src/mame/video/sgi_gr1.cpp | 14 | ||||
-rw-r--r-- | src/mame/video/snk68_spr.cpp | 10 | ||||
-rw-r--r-- | src/mame/video/tmap038.cpp | 4 | ||||
-rw-r--r-- | src/mame/video/tmap038.h | 4 |
7 files changed, 66 insertions, 66 deletions
diff --git a/src/mame/video/alpha68k_palette.cpp b/src/mame/video/alpha68k_palette.cpp index fe4cbf9525d..c39efacf31f 100644 --- a/src/mame/video/alpha68k_palette.cpp +++ b/src/mame/video/alpha68k_palette.cpp @@ -2,26 +2,26 @@ // copyright-holders:Angelo Salese /****************************************************************************** - Alpha Denshi "NeoGeo" palette devices - - Notes: - - URL reference: https://wiki.neogeodev.org/index.php?title=Palettes - - TODO: - - Make mods to support NeoGeo HW (palette bank, shadows); - - Are alpha68k.cpp/snk68.cpp with or without shadows? - - Reference color, research exact consequences about this wiki claim: - "It always has to be pure black ($8000)(*) otherwise monitors won't - be happy and other colors won't be displayed correctly." - (*) tested nam1975/skyadvnt, they actually setup $0000. - Update: Gold Medalist actually setup $0fff when starter pistol is shot - on dash events, according to a reference video it causes generally darker - colors on playfield and a color overflow in the border area. - We currently just dim the palette to simulate the effect, it's totally - possible that the side effects are different depending on type of monitor - used, and maybe the dimming is caused by the capture card uncapable of - catching up the actual signal and intended behaviour is actually a bright - flash (without palette clamp?). + Alpha Denshi "NeoGeo" palette devices + + Notes: + - URL reference: https://wiki.neogeodev.org/index.php?title=Palettes + + TODO: + - Make mods to support NeoGeo HW (palette bank, shadows); + - Are alpha68k.cpp/snk68.cpp with or without shadows? + - Reference color, research exact consequences about this wiki claim: + "It always has to be pure black ($8000)(*) otherwise monitors won't + be happy and other colors won't be displayed correctly." + (*) tested nam1975/skyadvnt, they actually setup $0000. + Update: Gold Medalist actually setup $0fff when starter pistol is shot + on dash events, according to a reference video it causes generally darker + colors on playfield and a color overflow in the border area. + We currently just dim the palette to simulate the effect, it's totally + possible that the side effects are different depending on type of monitor + used, and maybe the dimming is caused by the capture card uncapable of + catching up the actual signal and intended behaviour is actually a bright + flash (without palette clamp?). ******************************************************************************/ @@ -139,7 +139,7 @@ inline void alpha68k_palette_device::set_color_entry(u16 offset, u16 pal_data, i int r = ((pal_data >> 14) & 0x1) | ((pal_data >> 7) & 0x1e); int g = ((pal_data >> 13) & 0x1) | ((pal_data >> 3) & 0x1e); int b = ((pal_data >> 12) & 0x1) | ((pal_data << 1) & 0x1e); - + r >>= shift; g >>= shift; b >>= shift; @@ -159,7 +159,7 @@ WRITE16_MEMBER( alpha68k_palette_device::write ) // TODO: actual behaviour, needs HW tests. bool is_sync_color = (pal_data & 0x7fff) == 0; int sync_color_shift = is_sync_color ? 0 : 2; - + for (int i=0; i<m_entries; i++) set_color_entry(i, m_paletteram[i], sync_color_shift); } diff --git a/src/mame/video/alpha68k_palette.h b/src/mame/video/alpha68k_palette.h index 3cf23de9833..ac258644b95 100644 --- a/src/mame/video/alpha68k_palette.h +++ b/src/mame/video/alpha68k_palette.h @@ -2,7 +2,7 @@ // copyright-holders:Angelo Salese /*************************************************************************** - Alpha Denshi "NeoGeo" palette devices + Alpha Denshi "NeoGeo" palette devices ***************************************************************************/ @@ -44,7 +44,7 @@ protected: // device-level overrides virtual void device_start() override; virtual void device_reset() override; - + virtual uint32_t palette_entries() const override { return m_entries; } private: std::vector<uint16_t> m_paletteram; diff --git a/src/mame/video/nmk16spr.cpp b/src/mame/video/nmk16spr.cpp index d3cd6f83999..3109f1dbccf 100644 --- a/src/mame/video/nmk16spr.cpp +++ b/src/mame/video/nmk16spr.cpp @@ -2,32 +2,32 @@ // copyright-holders:Mirko Buffoni,Nicola Salmoria,Bryan McPhail,David Haywood,R. Belmont,Alex Marshall,Angelo Salese,Luca Elia // thanks-to:Richard Bush /* - NMK 16 bit sprite hardware - - Configured in NMK008 + one or more NMK009s or TTL logics or FPGA - - From hardware manual : http://upl-gravedigger.boo.jp/pcb_info/pcb_manual_7.jpg - - used by: - nmk16.cpp - powerins.cpp - - Sprite format (16 byte per each sprite): - - Offset Bits Description - fedcba98 76543210 - 00 -------- -------s Visible - 02 ---x---- -------- Flip X (powerins) - ------x- -------- Flip Y (manybloc) - -------x -------- Flip X (manybloc) or Code hi bits (powerins) - -------- xxxx---- Number of tiles along Y, minus 1 (1-16) - -------- ----xxxx Number of tiles along X, minus 1 (1-16) - 04 -------- -------- Unused - 06 xxxxxxxx xxxxxxxx Code (low 15 bit for powerins) - 08 ------xx xxxxxxxx X (10 bit for powerins, 9 bit for others) - 0a -------- -------- Unused - 0c ------xx xxxxxxxx Y (10 bit for powerins, 9 bit for others) - 0e -------- --xxxxxx Palette select (differ bits per game (4/5/6 bits)) + NMK 16 bit sprite hardware + + Configured in NMK008 + one or more NMK009s or TTL logics or FPGA + + From hardware manual : http://upl-gravedigger.boo.jp/pcb_info/pcb_manual_7.jpg + + used by: + nmk16.cpp + powerins.cpp + + Sprite format (16 byte per each sprite): + + Offset Bits Description + fedcba98 76543210 + 00 -------- -------s Visible + 02 ---x---- -------- Flip X (powerins) + ------x- -------- Flip Y (manybloc) + -------x -------- Flip X (manybloc) or Code hi bits (powerins) + -------- xxxx---- Number of tiles along Y, minus 1 (1-16) + -------- ----xxxx Number of tiles along X, minus 1 (1-16) + 04 -------- -------- Unused + 06 xxxxxxxx xxxxxxxx Code (low 15 bit for powerins) + 08 ------xx xxxxxxxx X (10 bit for powerins, 9 bit for others) + 0a -------- -------- Unused + 0c ------xx xxxxxxxx Y (10 bit for powerins, 9 bit for others) + 0e -------- --xxxxxx Palette select (differ bits per game (4/5/6 bits)) */ diff --git a/src/mame/video/sgi_gr1.cpp b/src/mame/video/sgi_gr1.cpp index 62ddad2b4a1..126959cf108 100644 --- a/src/mame/video/sgi_gr1.cpp +++ b/src/mame/video/sgi_gr1.cpp @@ -222,42 +222,42 @@ void sgi_gr1_device::device_reset() u8 sgi_gr1_device::dr0_r() { LOG("dr0_r 0x%02x (%s)\n", m_dr0, machine().describe_context()); - + return m_dr0; } u8 sgi_gr1_device::dr1_r() { LOG("dr1_r 0x%02x (%s)\n", m_dr1, machine().describe_context()); - + return m_dr1; } u8 sgi_gr1_device::dr2_r() { LOG("dr2_r 0x%02x (%s)\n", m_dr2, machine().describe_context()); - + return m_dr2; } u8 sgi_gr1_device::dr3_r() { LOG("dr3_r 0x%02x (%s)\n", m_dr3, machine().describe_context()); - + return m_dr3; } u8 sgi_gr1_device::dr4_r() { LOG("dr4_r 0x%02x (%s)\n", m_dr4, machine().describe_context()); - + return (m_dr4 | (m_ge->suspended() ? 0 : DR4_GESTALL)) & DR4_RM; } void sgi_gr1_device::dr0_w(u8 data) { LOG("dr0_w 0x%02x (%s)\n", data, machine().describe_context()); - + m_dr0 = (m_dr0 & ~DR0_WM) | (data & DR0_WM); } @@ -280,7 +280,7 @@ void sgi_gr1_device::dr2_w(u8 data) void sgi_gr1_device::dr3_w(u8 data) { LOG("dr3_w 0x%02x (%s)\n", data, machine().describe_context()); - + m_dr3 = (m_dr3 & ~DR3_WM) | (data & DR3_WM); } diff --git a/src/mame/video/snk68_spr.cpp b/src/mame/video/snk68_spr.cpp index 8d1e51dc351..d1a9746763e 100644 --- a/src/mame/video/snk68_spr.cpp +++ b/src/mame/video/snk68_spr.cpp @@ -2,9 +2,9 @@ // copyright-holders:Bryan McPhail, Acho A. Tang, Nicola Salmoria /* * Alpha 68k II/V sprite system - * tile-based, with 8-bit accesses. + * tile-based, with 8-bit accesses. * Two banks, first at 0x0000-0x1000, second at 0x1000 until end of VRAM. - * First bank is processed by 64 bytes stepping starting from address $8, + * First bank is processed by 64 bytes stepping starting from address $8, * then once it reaches end it restarts at $c, finally at $4. * * 0x0000-0x1000 @@ -35,10 +35,10 @@ * - player death animation has first frame with inverted horizontal halves; * - stage 1 priest desyncs with background; * - glitchy first frame on title screen; - * Given how this and the actual HW works it is pretty likely this having a consistent delay, + * Given how this and the actual HW works it is pretty likely this having a consistent delay, * however it isn't known how exactly DMA triggers, and one frame of bufferd spriteram isn't enough. * - Why entry 0x7c0 requires a one line and a priority hack for alpha68k.cpp games? - * - Super Champion Baseball: selecting a 3rd or 5th column team causes a shadow to appear on the drawn + * - Super Champion Baseball: selecting a 3rd or 5th column team causes a shadow to appear on the drawn * object which isn't present on the other columns, verify real HW behaviour; * - Sky Adventure: stage 1 priest priority goes above the bonus ship, confirmed to be a btanb; * @@ -121,7 +121,7 @@ void snk68_spr_device::draw_sprites(bitmap_ind16 &bitmap, const rectangle &clipr mx = ((mx + 16) & 0x1ff) - 16; my = -my; - + // TODO: alpha68k games all wants this hack, why? if (group == 1 && start_offset == 0x7c0) my++; diff --git a/src/mame/video/tmap038.cpp b/src/mame/video/tmap038.cpp index ef66c49c868..ebd4b552b25 100644 --- a/src/mame/video/tmap038.cpp +++ b/src/mame/video/tmap038.cpp @@ -70,14 +70,14 @@ ---- ---- ---4 ---- Layer Disable ---- ---- ---- 3210 Varies* - *color bank for mcatadv or Layer-Layer priority for cave + *color bank for mcatadv or Layer-Layer priority for cave There are more! *************************************************************************** TODO: - de-fragmentation and merge drawing behavior into tmap038.cpp + de-fragmentation and merge drawing behavior into tmap038.cpp *************************************************************************** diff --git a/src/mame/video/tmap038.h b/src/mame/video/tmap038.h index 55833bd9bb2..e479933861b 100644 --- a/src/mame/video/tmap038.h +++ b/src/mame/video/tmap038.h @@ -47,10 +47,10 @@ public: u16 lineram_r(offs_t offset) { return m_lineram[offset]; } void lineram_w(offs_t offset, u16 data, u16 mem_mask = ~0) { COMBINE_DATA(&m_lineram[offset]); } - + u16 vregs_r(offs_t offset) { return m_vregs[offset]; } void vregs_w(offs_t offset, u16 data, u16 mem_mask = ~0) { COMBINE_DATA(&m_vregs[offset]); } - + void mark_all_dirty() { m_tmap->mark_all_dirty(); }; void set_flip(u32 attributes) { m_tmap->set_flip(attributes); } void set_palette_offset(u32 offset) { m_tmap->set_palette_offset(offset); } |