From 7887697e34e0141f359b1b5d43a569a1cca7fa93 Mon Sep 17 00:00:00 2001 From: tim lindner Date: Sun, 3 Oct 2021 16:09:02 -0700 Subject: add all debug options to template. fix shift count to properly display M bits. (#8656) 6883sam: add all debug options to template. fix shift count to properly display M bits. --- src/mame/machine/6883sam.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/mame/machine') diff --git a/src/mame/machine/6883sam.cpp b/src/mame/machine/6883sam.cpp index 9847442c553..e9ddb12b170 100644 --- a/src/mame/machine/6883sam.cpp +++ b/src/mame/machine/6883sam.cpp @@ -66,7 +66,7 @@ #define VERBOSE (0) // #define VERBOSE (LOG_FBITS) -// #define VERBOSE (LOG_FBITS | LOG_VBITS | LOG_PBITS | LOG_MBITS | LOG_RBITS) +// #define VERBOSE (LOG_FBITS | LOG_VBITS | LOG_PBITS | LOG_TBITS | LOG_MBITS | LOG_RBITS) #include "logmacro.h" @@ -405,7 +405,7 @@ void sam6883_device::internal_write(offs_t offset, uint8_t data) if (xorval & (SAM_STATE_TY)) { - LOGTBITS("%s: SAM TY Bits: $%02x\n", + LOGTBITS("%s: SAM TY Bit: $%02x\n", machine().describe_context(), (m_sam_state & (SAM_STATE_TY)) >> 15); } @@ -414,7 +414,7 @@ void sam6883_device::internal_write(offs_t offset, uint8_t data) { LOGMBITS("%s: SAM M Bits: $%02x\n", machine().describe_context(), - (m_sam_state & (SAM_STATE_M0|SAM_STATE_M1)) >> 9); + (m_sam_state & (SAM_STATE_M0|SAM_STATE_M1)) >> 13); } if (xorval & (SAM_STATE_R0|SAM_STATE_R1)) -- cgit v1.2.3