mirror of
https://github.com/holub/mame
synced 2025-04-20 15:32:45 +03:00
68340tmu.cpp: fix potential crash on mode logging
This commit is contained in:
parent
3c34de968d
commit
d7cfc3c187
@ -156,7 +156,7 @@ void mc68340_timer_module_device::write(offs_t offset, uint16_t data, uint16_t m
|
||||
"Period Measurement - not implemented",
|
||||
"Event Count - not implemented",
|
||||
"Timer Bypass (Simple Test Method) - not implemented"
|
||||
}}[data & REG_CR_MODE_MASK]);
|
||||
}}[(data & REG_CR_MODE_MASK) >> 2]);
|
||||
|
||||
LOGTIMER("- OC: %s mode\n", std::array<char const *, 4>{{"Disabled", "Toggle", "Zero", "One"}}[data & REG_CR_OC_MASK]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user