summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
author tim lindner <tlindner@macmess.org>2021-10-03 16:09:02 -0700
committer GitHub <noreply@github.com>2021-10-03 19:09:02 -0400
commit7887697e34e0141f359b1b5d43a569a1cca7fa93 (patch)
tree3756183f9dfe7c23ab11b15091d71866a9125827
parent11e3e35bba1f4bbe02b0f6072955fc41d61c2a01 (diff)
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.
-rw-r--r--src/mame/machine/6883sam.cpp6
1 files changed, 3 insertions, 3 deletions
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))