summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author hap <happppp@users.noreply.github.com>2025-09-04 13:55:45 +0200
committer hap <happppp@users.noreply.github.com>2025-09-04 13:55:45 +0200
commitc08250c14180f15bd4a9ffb480f5ca3966aa8651 (patch)
tree957ef30d859728f44f8bd23f047a42b5c11edf80
parentb681efaa04f569a28983cfb68486d0d9dc30f56b (diff)
snk68_spr: add flipscreen variable to savestates (other vars are configuration),
alpha68k_n: small cleanup to gamelist spacing
-rw-r--r--src/mame/alpha/alpha68k.cpp1
-rw-r--r--src/mame/alpha/alpha68k_n.cpp11
-rw-r--r--src/mame/shared/snk68_spr.cpp7
-rw-r--r--src/mame/shared/snk68_spr.h4
4 files changed, 12 insertions, 11 deletions
diff --git a/src/mame/alpha/alpha68k.cpp b/src/mame/alpha/alpha68k.cpp
index ae0785f9473..69b00cad8a6 100644
--- a/src/mame/alpha/alpha68k.cpp
+++ b/src/mame/alpha/alpha68k.cpp
@@ -2182,4 +2182,3 @@ GAME( 1989, gangwarsb, gangwars, gangwars, gangwars, gangwars_state, init_g
GAME( 1989, sbasebal, 0, alpha68k_V, sbasebal, alpha68k_V_state, init_sbasebal, ROT0, "Alpha Denshi Co. (SNK of America license)", "Super Champion Baseball (US)", MACHINE_SUPPORTS_SAVE | MACHINE_UNEMULATED_PROTECTION ) // calculated pitcher launching speed
GAME( 1989, sbasebalj, sbasebal, alpha68k_V, sbasebalj, alpha68k_V_state, init_sbasebalj, ROT0, "Alpha Denshi Co.", "Super Champion Baseball (Japan)", MACHINE_SUPPORTS_SAVE | MACHINE_UNEMULATED_PROTECTION ) // same as above
-
diff --git a/src/mame/alpha/alpha68k_n.cpp b/src/mame/alpha/alpha68k_n.cpp
index 8d6b85c6ac7..813c81a4d2e 100644
--- a/src/mame/alpha/alpha68k_n.cpp
+++ b/src/mame/alpha/alpha68k_n.cpp
@@ -135,7 +135,6 @@ PCB Pinout
SPK- A5 B5 GND
GND A6 B6 GND
-
***************************************************************************/
@@ -1056,11 +1055,11 @@ void jongbou_state::init_jongbou2()
}
-GAME( 1986, sstingry, 0, sstingry, sstingry, sstingray_state, init_sstingry, ROT90, "Alpha Denshi Co.", "Super Stingray (Japan)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_TIMING )
+GAME( 1986, sstingry, 0, sstingry, sstingry, sstingray_state, init_sstingry, ROT90, "Alpha Denshi Co.", "Super Stingray (Japan)", MACHINE_SUPPORTS_SAVE | MACHINE_IMPERFECT_TIMING )
-GAME( 1987, kyros, 0, kyros, kyros, kyros_state, init_kyros, ROT90, "Alpha Denshi Co. (World Games Inc. license)", "Kyros", MACHINE_SUPPORTS_SAVE )
-GAME( 1986, kyrosj, kyros, kyros, kyros, kyros_state, init_kyros, ROT90, "Alpha Denshi Co.", "Kyros no Yakata (Japan)", MACHINE_SUPPORTS_SAVE )
+GAME( 1987, kyros, 0, kyros, kyros, kyros_state, init_kyros, ROT90, "Alpha Denshi Co. (World Games Inc. license)", "Kyros", MACHINE_SUPPORTS_SAVE )
+GAME( 1986, kyrosj, kyros, kyros, kyros, kyros_state, init_kyros, ROT90, "Alpha Denshi Co.", "Kyros no Yakata (Japan)", MACHINE_SUPPORTS_SAVE )
-GAME( 1987, jongbou, 0, jongbou, jongbou, jongbou_state, init_jongbou, ROT90, "SNK", "Mahjong Block Jongbou (Japan)", MACHINE_SUPPORTS_SAVE )
+GAME( 1987, jongbou, 0, jongbou, jongbou, jongbou_state, init_jongbou, ROT90, "SNK", "Mahjong Block Jongbou (Japan)", MACHINE_SUPPORTS_SAVE )
-GAME( 1987, jongbou2, 0, jongbou, jongbou, jongbou_state, init_jongbou2, ROT90, "SNK", "Mahjong Block Jongbou 2 (Japan)", MACHINE_SUPPORTS_SAVE )
+GAME( 1987, jongbou2, 0, jongbou, jongbou, jongbou_state, init_jongbou2, ROT90, "SNK", "Mahjong Block Jongbou 2 (Japan)", MACHINE_SUPPORTS_SAVE )
diff --git a/src/mame/shared/snk68_spr.cpp b/src/mame/shared/snk68_spr.cpp
index a6b12e256db..f293d192aee 100644
--- a/src/mame/shared/snk68_spr.cpp
+++ b/src/mame/shared/snk68_spr.cpp
@@ -57,6 +57,8 @@ snk68_spr_device::snk68_spr_device(const machine_config &mconfig, const char *ta
, m_screen(*this, "^screen")
, m_flipscreen(false)
, m_partialupdates(1)
+ , m_xpos_shift(0)
+ , m_color_entry_mask(0)
{
}
@@ -66,6 +68,8 @@ void snk68_spr_device::tile_callback_noindirect(int &tile, int& fx, int& fy, int
void snk68_spr_device::device_start()
{
+ save_item(NAME(m_flipscreen));
+
// bind our handler
m_newtilecb.resolve();
}
@@ -114,7 +118,6 @@ void snk68_spr_device::draw_sprites(bitmap_ind16 &bitmap, const rectangle &clipr
{
int mx = (m_spriteram[offs + 2*group] & 0xff) << (16-m_xpos_shift);
int my = m_spriteram[offs + 2*group + 1];
- int i;
// TODO: for some reason alpha68k wants this to be 15 instead of 12, different row/col arrangement?
mx = mx | (my >> m_xpos_shift);
@@ -133,7 +136,7 @@ void snk68_spr_device::draw_sprites(bitmap_ind16 &bitmap, const rectangle &clipr
}
// every sprite is a column 32 tiles (512 pixels) tall
- for (i = 0; i < 0x20; ++i)
+ for (int i = 0; i < 0x20; ++i)
{
my &= 0x1ff;
diff --git a/src/mame/shared/snk68_spr.h b/src/mame/shared/snk68_spr.h
index 7600c9c285f..249f20bf280 100644
--- a/src/mame/shared/snk68_spr.h
+++ b/src/mame/shared/snk68_spr.h
@@ -42,8 +42,8 @@ private:
required_device<screen_device> m_screen;
bool m_flipscreen;
int m_partialupdates; // the original hardware needs this, the cloned hardware does not.
- u8 m_xpos_shift = 0;
- u16 m_color_entry_mask = 0;
+ u8 m_xpos_shift;
+ u16 m_color_entry_mask;
};