diff options
author | 2018-07-24 07:19:38 -0500 | |
---|---|---|
committer | 2018-07-24 15:18:55 +0200 | |
commit | 668e583152e95833d9e4f6e543a8155a059d61ea (patch) | |
tree | 23b54444dec2920347c0cd4af5673b3c64598b1a | |
parent | 2e729b8a97edd0e7d3b20402888b267508a46a8f (diff) |
dsp16: Fixed a couple of typos pointed out by Coverity (nw)
-rw-r--r-- | src/devices/cpu/dsp16/dsp16fe.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/dsp16/dsp16fe.cpp b/src/devices/cpu/dsp16/dsp16fe.cpp index f7387768ccb..2e79371bdd2 100644 --- a/src/devices/cpu/dsp16/dsp16fe.cpp +++ b/src/devices/cpu/dsp16/dsp16fe.cpp @@ -816,7 +816,7 @@ void dsp16_device_base::frontend::describe_x(opcode_desc &desc, u16 op) void dsp16_device_base::frontend::describe_y(opcode_desc &desc, u16 op, bool read, bool write) { - u32 const r(REG_BIT_YAAU_R0 + ((op >> 2) && 0x0003U)); + u32 const r(REG_BIT_YAAU_R0 + ((op >> 2) & 0x0003U)); if (read) desc.flags |= OPFLAG_READS_MEMORY; if (write) @@ -844,7 +844,7 @@ void dsp16_device_base::frontend::describe_y(opcode_desc &desc, u16 op, bool rea void dsp16_device_base::frontend::describe_z(opcode_desc &desc, u16 op) { - u32 const r(REG_BIT_YAAU_R0 + ((op >> 2) && 0x0003U)); + u32 const r(REG_BIT_YAAU_R0 + ((op >> 2) & 0x0003U)); desc.flags |= OPFLAG_READS_MEMORY | OPFLAG_WRITES_MEMORY; flag_output_reg(desc, r); switch (op & 0x0003U) |