mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-06 03:50:02 +02:00
GT-3366: Corrected pcode in 6805 BSET instruction
This commit is contained in:
parent
c6d14ab55f
commit
ad7e6b2f05
1 changed files with 5 additions and 2 deletions
|
@ -234,16 +234,19 @@ DIRECT: imm8 is imm8 { export *:1 imm8; }
|
||||||
local result = DIRECT & mask;
|
local result = DIRECT & mask;
|
||||||
if (result == 0) goto REL;
|
if (result == 0) goto REL;
|
||||||
}
|
}
|
||||||
|
|
||||||
:BRSET n,DIRECT,REL is op4_7=0 & bit_0=0 & n; DIRECT; REL
|
:BRSET n,DIRECT,REL is op4_7=0 & bit_0=0 & n; DIRECT; REL
|
||||||
{
|
{
|
||||||
local mask = (1 << n);
|
local mask = (1 << n);
|
||||||
local result = DIRECT & mask;
|
local result = DIRECT & mask;
|
||||||
if (result != 0) goto REL;
|
if (result != 0) goto REL;
|
||||||
}
|
}
|
||||||
|
|
||||||
:BSET n,DIRECT is op4_7=1 & bit_0=0 & n; DIRECT {
|
:BSET n,DIRECT is op4_7=1 & bit_0=0 & n; DIRECT {
|
||||||
local mask = ~(1 << n);
|
local mask = (1 << n);
|
||||||
DIRECT = DIRECT & mask;
|
DIRECT = DIRECT | mask;
|
||||||
}
|
}
|
||||||
|
|
||||||
:BSR REL is op=0xAD; REL
|
:BSR REL is op=0xAD; REL
|
||||||
{
|
{
|
||||||
SP=SP-1;
|
SP=SP-1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue