Skip to content

Commit

Permalink
- ARM64
Browse files Browse the repository at this point in the history
  • Loading branch information
tgiphil committed Dec 3, 2023
1 parent b071601 commit 9574b6b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Data/ARM64-Instructions.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"OperandCount": 2,
"ResultCount": 1,
"Description": "Add with carry",
"OpcodeEncodingAppend": "sf=1,opcode=11010000,options=000000",
"OpcodeEncodingAppend": "sf=1,opcode=11010000,options=000000,op=0",
"OpcodeEncoding": [
{
"Condition": "[register][register]",
Expand Down
1 change: 1 addition & 0 deletions Source/Mosa.Compiler.ARM64/Instructions/Adc.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public override void Emit(Node node, OpcodeEncoder opcodeEncoder)
if (node.Operand1.IsPhysicalRegister && node.Operand2.IsPhysicalRegister)
{
opcodeEncoder.Append1Bit(0b1);
opcodeEncoder.Append1Bit(0b0);
opcodeEncoder.Append1Bit(node.IsSetFlags ? 1 : 0);
opcodeEncoder.Append4Bits(0b1101);
opcodeEncoder.Append4Bits(0b0000);
Expand Down

0 comments on commit 9574b6b

Please sign in to comment.