Update main.py

This commit is contained in:
Sam Sneed 2024-08-09 01:44:44 +00:00 committed by GitHub
parent be9d5bf6ee
commit ec7ab45cd9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -344,7 +344,7 @@ def translate_arm64_to_x86(arm64_ins):
elif arm64_ins.mnemonic == 'isb':
x86_instructions.append(generate_x86_instruction('sfence', [])) # Instruction synchronization
elif arm64_ins.mnemonic == 'eor':
elif arm64_ins.mnemonic == 'eor':
if operands[0] in reg_mapping and operands[1] in reg_mapping and operands[2] in reg_mapping:
x86_instructions.append(generate_x86_instruction('mov', [reg_mapping[operands[0]], reg_mapping[operands[1]]]))
x86_instructions.append(generate_x86_instruction('xor', [reg_mapping[operands[0]], reg_mapping[operands[2]]]))