Skip to content

Commit

Permalink
Fix JSR stack operations
Browse files Browse the repository at this point in the history
  • Loading branch information
tatokis committed Jun 18, 2020
1 parent 281ea7f commit 52b2085
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion trnemu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ static const QString regstderef("[%1] ← %2");
emit registerUpdated(Register::src, OperationType::Read, reg##src); \
emit registerUpdated(Register::dst, OperationType::Write, reg##dst)

#define REG_LOAD_OR_MASK(dst, src, mask) reg##dst |= reg##src & mask; \
#define REG_LOAD_OR_MASK(dst, src, mask) reg##dst &= ~mask; \
reg##dst |= reg##src & mask; \
EMIT_LOG(regassignormask.arg(regToString[Register::dst], regToString[Register::src], \
QString("0b%1").arg(mask, 13, 2, QChar('0'))), \
QString::number(reg##dst)\
Expand Down

0 comments on commit 52b2085

Please sign in to comment.