mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2024-12-26 09:15:06 +00:00
Implement bgezal
/bgezall
(#23)
This commit is contained in:
parent
3ab0edf18a
commit
d7b223fde5
@ -1182,6 +1182,7 @@ int main(int argc, char** argv) {
|
||||
RabbitizerConfig_Cfg.pseudos.pseudoBeqz = false;
|
||||
RabbitizerConfig_Cfg.pseudos.pseudoBnez = false;
|
||||
RabbitizerConfig_Cfg.pseudos.pseudoNot = false;
|
||||
RabbitizerConfig_Cfg.pseudos.pseudoBal = false;
|
||||
|
||||
std::vector<std::string> relocatable_sections_ordered{};
|
||||
|
||||
|
@ -638,6 +638,15 @@ bool process_instruction(const RecompPort::Context& context, const RecompPort::C
|
||||
case InstrId::cpu_break:
|
||||
print_line("do_break({})", instr_vram);
|
||||
break;
|
||||
case InstrId::cpu_bgezall:
|
||||
is_branch_likely = true;
|
||||
[[fallthrough]];
|
||||
case InstrId::cpu_bgezal:
|
||||
print_indent();
|
||||
print_branch_condition("if (SIGNED({}{}) >= 0) {{", ctx_gpr_prefix(rs), rs);
|
||||
print_func_call(instr.getBranchVramGeneric());
|
||||
print_line("}}");
|
||||
break;
|
||||
|
||||
// Cop1 loads/stores
|
||||
case InstrId::cpu_mtc1:
|
||||
|
Loading…
Reference in New Issue
Block a user