Skip to content

Commit

Permalink
Core: Add x86 asm opcode Jnp
Browse files Browse the repository at this point in the history
  • Loading branch information
project64 committed Jan 4, 2024
1 parent 91a8a82 commit 23cff4d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/Project64-core/N64System/Recompiler/x86/x86ops.cpp
Expand Up @@ -299,6 +299,12 @@ void CX86Ops::JneLabel(const char * LabelName, asmjit::Label & JumpLabel)
jne(JumpLabel);
}

void CX86Ops::JnpLabel(const char * LabelName, asmjit::Label & JumpLabel)
{
AddSymbol(stdstr_f("L%d", JumpLabel.id()).c_str(), LabelName);
jnp(JumpLabel);
}

void CX86Ops::JnsLabel(const char * LabelName, asmjit::Label & JumpLabel)
{
AddSymbol(stdstr_f("L%d", JumpLabel.id()).c_str(), LabelName);
Expand Down
1 change: 1 addition & 0 deletions Source/Project64-core/N64System/Recompiler/x86/x86ops.h
Expand Up @@ -55,6 +55,7 @@ class CX86Ops :
void JlLabel(const char * LabelName, asmjit::Label & JumpLabel);
void JmpLabel(const char * LabelName, asmjit::Label & JumpLabel);
void JneLabel(const char * LabelName, asmjit::Label & JumpLabel);
void JnpLabel(const char * LabelName, asmjit::Label & JumpLabel);
void JnsLabel(const char * LabelName, asmjit::Label & JumpLabel);
void JnzLabel(const char * LabelName, asmjit::Label & JumpLabel);
void JoLabel(const char * LabelName, asmjit::Label & JumpLabel);
Expand Down

0 comments on commit 23cff4d

Please sign in to comment.