mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 12:11:55 +00:00
Fix BIT instruction description.
Flag handling for the BIT instruction did not follow the datasheet. This fixes #2558.
This commit is contained in:
parent
68a9c0a5a3
commit
d588033a56
@ -168,8 +168,10 @@ ADDRI: imm16 is imm16 { tmp:2 = imm16; export *:2 tmp; }
|
||||
|
||||
:BIT OP2 is (op=0x24 | op=0x2C) ... & OP2
|
||||
{
|
||||
N = (OP2 & 0x80) == 0x80;
|
||||
V = (OP2 & 0x40) == 0x40;
|
||||
local value = A & OP2;
|
||||
resultFlags(value);
|
||||
Z = (value == 0);
|
||||
}
|
||||
|
||||
:BMI REL is op=0x30; REL
|
||||
|
Loading…
Reference in New Issue
Block a user