Update decode fix capitalisation, w/ T
This commit is contained in:
parent
d4ff1ee40e
commit
2e0668aefd
10
src/decode.c
10
src/decode.c
@ -24,16 +24,16 @@ a64inst_instruction *decode(word wrd) {
|
|||||||
|
|
||||||
word DPImmFlag = getBits(wrd, DATA_PROCESSING_DPIMM_LSB, DATA_PROCESSING_DPIMM_MSB);
|
word DPImmFlag = getBits(wrd, DATA_PROCESSING_DPIMM_LSB, DATA_PROCESSING_DPIMM_MSB);
|
||||||
if (wrd == HALT_WORD) {
|
if (wrd == HALT_WORD) {
|
||||||
inst->type = a64inst_Halt;
|
inst->type = a64inst_HALT;
|
||||||
|
|
||||||
} else if (DPImmFlag == 0) {
|
} else if (DPImmFlag == 0) {
|
||||||
inst->type = a64inst_DPImmediate;
|
inst->type = a64inst_DPIMMEDIATE;
|
||||||
|
|
||||||
}else if (DPImmFlag == 1) {
|
}else if (DPImmFlag == 1) {
|
||||||
inst->type = a64inst_Branch;
|
inst->type = a64inst_BRANCH;
|
||||||
|
|
||||||
} else if (getBits(wrd, DATA_PROCESSING_DPReg_LSB, DATA_PROCESSING_DPReg_MSB) == 1) {
|
} else if (getBits(wrd, DATA_PROCESSING_DPREG_LSB, DATA_PROCESSING_DPREG_MSB) == 1) {
|
||||||
inst->type = a64inst_DPRegister;
|
inst->type = a64inst_DPREGISTER;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
// Load and Store, or unknown
|
// Load and Store, or unknown
|
||||||
|
|||||||
@ -7,7 +7,7 @@
|
|||||||
#define DATA_PROCESSING_DPIMM_LSB 26
|
#define DATA_PROCESSING_DPIMM_LSB 26
|
||||||
#define DATA_PROCESSING_DPIMM_MSB 29
|
#define DATA_PROCESSING_DPIMM_MSB 29
|
||||||
|
|
||||||
#define DATA_PROCESSING_DPReg_LSB 25
|
#define DATA_PROCESSING_DPREG_LSB 25
|
||||||
#define DATA_PROCESSING_DPReg_MSB 26
|
#define DATA_PROCESSING_DPREG_MSB 26
|
||||||
|
|
||||||
a64inst_instruction *decode(word w);
|
a64inst_instruction *decode(word w);
|
||||||
Loading…
Reference in New Issue
Block a user