Open Zephurah opened 1 year ago
The subtraction is from CMPB
. I don't know anything about HCS12 but cmp instructions in most processors is an unstored subtraction. I'm not saying I'd implement it in sleigh that way, I'd actually avoid it for exactly this reason, but it looks like it has been implemented with subtraction.
Describe the bug Decompiler for HCS12 processors adds unnecessary local variables to the decompiler window when analyzing functions. Not sure where the - 34 info is coming from, nowhere in the instructions is there a subtraction that's relevant to those registers / variables.
To Reproduce Steps to reproduce the behavior: 1.Load given binary 2.Apply either HCS12 or HC12 processor languages 3.Go to memory location 0xd6fc 4.See error
Expected behavior Decompiler window should show a simple line of code that should be as following:
Screenshots
![image](https://user-images.githubusercontent.com/8497103/182252110-fbc4f9f9-8def-4495-ab85-8f365b96d374.png)
Attachments Example issue.zip
Environment (please complete the following information):