unused variable
This commit is contained in:
parent
1fbb3cbd14
commit
ee6f4904c3
1 changed files with 3 additions and 1 deletions
4
cpu.cpp
4
cpu.cpp
|
@ -599,13 +599,15 @@ bool cpu::single_operand_instructions(const uint16_t instr)
|
||||||
|
|
||||||
if (dst_mode == 0) {
|
if (dst_mode == 0) {
|
||||||
uint16_t t = getRegister(dst_reg, false);
|
uint16_t t = getRegister(dst_reg, false);
|
||||||
|
|
||||||
t1 = t >> 8;
|
t1 = t >> 8;
|
||||||
t2 = t & 255;
|
t2 = t & 255;
|
||||||
|
|
||||||
setRegister(dst_reg, false, (t2 << 8) | t1);
|
setRegister(dst_reg, false, (t2 << 8) | t1);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
uint16_t a = getGAMAddress(dst_mode, dst_reg, word_mode, false);
|
uint16_t a = getGAMAddress(dst_mode, dst_reg, word_mode, false);
|
||||||
uint16_t t = getRegister(dst_reg, false);
|
|
||||||
t1 = b -> readByte(a);
|
t1 = b -> readByte(a);
|
||||||
t2 = b -> readByte(a + 1);
|
t2 = b -> readByte(a + 1);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue