Previous | 199869 Revisions | Next |
r32896 Thursday 23rd October, 2014 at 07:31:42 UTC by Oliver Stöneberg |
---|
added assert for index out-of-bounds access in z8536_device::external_port_w() with apple3 (nw) |
[src/emu/machine] | z8536.c |
r241407 | r241408 | |
---|---|---|
828 | 828 | case PORT_A: |
829 | 829 | case PORT_B: |
830 | 830 | { |
831 | assert((PORT_A_DATA_DIRECTION + (port << 3)) >= 0 && (PORT_A_DATA_DIRECTION + (port << 3)) < ARRAY_LENGTH(m_register)); | |
831 | 832 | UINT8 ddr = m_register[PORT_A_DATA_DIRECTION + (port << 3)]; |
832 | 833 | |
833 | 834 | if (!BIT(ddr, bit)) return; |
https://github.com/mamedev/mame/commit/16acc5d9619de75e3e67bd6631e10f4b2a734559 |
Previous | 199869 Revisions | Next |