D'oh! A typo!

Fix typo on line 318.
This commit is contained in:
Sam Sneed 2024-07-27 18:44:46 -05:00 committed by GitHub
parent 205c4a8835
commit 8fed613d35
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -315,7 +315,7 @@ def translate_arm64_to_x86(arm64_ins):
x86_instructions.append(generate_x86_instruction('mov', [reg_mapping[operands[0]], f"[{operands[1]}]"])) # Simplified example for setting state x86_instructions.append(generate_x86_instruction('mov', [reg_mapping[operands[0]], f"[{operands[1]}]"])) # Simplified example for setting state
elif arm64_ins.mnemonic == 'clr': elif arm64_ins.mnemonic == 'clr':
x86_instructions.append(generate_x86_instruction('mov', [reg_mapping[operands[0]], 0]) # Simplified example for clearing state x86_instructions.append(generate_x86_instruction('mov', [reg_mapping[operands[0]], 0])) # Simplified example for clearing state
elif arm64_ins.mnemonic == 'ldx': elif arm64_ins.mnemonic == 'ldx':
if operands[0] in reg_mapping and operands[1] in reg_mapping: if operands[0] in reg_mapping and operands[1] in reg_mapping: