summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/sm510/sm500.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/cpu/sm510/sm500.cpp')
-rw-r--r--src/devices/cpu/sm510/sm500.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/devices/cpu/sm510/sm500.cpp b/src/devices/cpu/sm510/sm500.cpp
index e9772a1780c..347f17423dd 100644
--- a/src/devices/cpu/sm510/sm500.cpp
+++ b/src/devices/cpu/sm510/sm500.cpp
@@ -65,7 +65,6 @@ void sm500_device::device_start()
// init/zerofill
memset(m_ox, 0, sizeof(m_ox));
memset(m_o, 0, sizeof(m_o));
- m_cn = 0;
m_mx = 0;
m_cb = 0;
m_s = 0;
@@ -74,7 +73,6 @@ void sm500_device::device_start()
// register for savestates
save_item(NAME(m_ox));
save_item(NAME(m_o));
- save_item(NAME(m_cn));
save_item(NAME(m_mx));
save_item(NAME(m_cb));
save_item(NAME(m_s));
@@ -95,7 +93,7 @@ void sm500_device::device_reset()
// SM500 specific
push_stack();
op_idiv();
- m_1s = true;
+ m_gamma = 1;
m_cb = 0;
m_rsub = false;
m_r = 0xf;
@@ -109,14 +107,14 @@ void sm500_device::device_reset()
void sm500_device::lcd_update()
{
- // 2 columns
+ // 2 rows
for (int h = 0; h < 2; h++)
{
for (int o = 0; o < m_o_pins; o++)
{
// 4 segments per group
u8 seg = h ? m_ox[o] : m_o[o];
- m_write_segs(o << 1 | h, m_bp ? seg : 0, 0xffff);
+ m_write_segs(o << 1 | h, (m_bp & 1) ? seg : 0);
}
}
}