trunk/src/emu/bus/snes/sa1.c
r241563 | r241564 | |
96 | 96 | |
97 | 97 | void sns_sa1_device::device_start() |
98 | 98 | { |
| 99 | m_scpu_ctrl = 0; |
| 100 | m_nmi_vector = 0; |
| 101 | m_bank_c_hi = 0; |
| 102 | m_bank_c_rom = 0; |
99 | 103 | } |
100 | 104 | |
101 | 105 | void sns_sa1_device::device_reset() |
102 | 106 | { |
103 | | memset(m_internal_ram, 0, 0x800); |
| 107 | memset(m_internal_ram, 0, sizeof(m_internal_ram)); |
104 | 108 | |
105 | 109 | m_sa1_ctrl = 0x20; |
106 | 110 | m_scpu_ctrl = 0; |
r241563 | r241564 | |
127 | 131 | m_iram_write_sa1 = 1; |
128 | 132 | m_src_addr = 0; |
129 | 133 | m_dst_addr = 0; |
130 | | memset(m_brf_reg, 0, 0x10); |
| 134 | memset(m_brf_reg, 0, sizeof(m_brf_reg)); |
131 | 135 | m_math_ctlr = 0; |
132 | 136 | m_math_overflow = 0; |
133 | 137 | m_math_a = 0; |