mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2025-06-29 13:36:17 +00:00
Implement trap instructions as conditional breaks
This commit is contained in:
parent
989a86b369
commit
a8b247ed03
7 changed files with 92 additions and 46 deletions
|
@ -204,10 +204,18 @@ namespace N64Recomp {
|
|||
bool likely;
|
||||
};
|
||||
|
||||
struct TrapOp {
|
||||
// The type of binary operation to use for this compare
|
||||
BinaryOpType comparison;
|
||||
// The input operands.
|
||||
BinaryOperands operands;
|
||||
};
|
||||
|
||||
extern const std::unordered_map<InstrId, UnaryOp> unary_ops;
|
||||
extern const std::unordered_map<InstrId, BinaryOp> binary_ops;
|
||||
extern const std::unordered_map<InstrId, ConditionalBranchOp> conditional_branch_ops;
|
||||
extern const std::unordered_map<InstrId, StoreOp> store_ops;
|
||||
extern const std::unordered_map<InstrId, TrapOp> trap_ops;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue