[PRINTER] Fixed a class of var. size opcodes printer

This commit is contained in:
rajdakin 2020-09-08 18:30:35 +02:00
parent 55d216f024
commit 71c7ec6fed
2 changed files with 9 additions and 9 deletions

View File

@ -1105,7 +1105,7 @@ def main(root, ver, __debug_forceAllDebugging=False):
l = len(imms) == 2
if l:
append("uint8_t l = (opcode >> " + str(imms[1][1]) + ") & 0x1;\n")
append("uint8_t l = (opcode >> " + str(imms[1][0]) + ") & 0x1;\n")
immssz = 6
append("uint8_t imm6 = (opcode >> " + str(imms[0][0]) + ") & 0x3F;\n")

View File

@ -828,7 +828,7 @@ const char* arm_print(uint32_t opcode) {
int q = (opcode >> 6) & 1;
int d = ((opcode >> 22) & 1) << 4 | ((opcode >> 12) & 0xF);
int m = ((opcode >> 5) & 1) << 4 | ((opcode >> 0) & 0xF);
uint8_t l = (opcode >> 1) & 0x1;
uint8_t l = (opcode >> 7) & 0x1;
uint8_t imm6 = (opcode >> 16) & 0x3F;
uint8_t decodedImm = 0;
uint8_t size = 0;
@ -851,7 +851,7 @@ const char* arm_print(uint32_t opcode) {
int q = (opcode >> 6) & 1;
int d = ((opcode >> 22) & 1) << 4 | ((opcode >> 12) & 0xF);
int m = ((opcode >> 5) & 1) << 4 | ((opcode >> 0) & 0xF);
uint8_t l = (opcode >> 1) & 0x1;
uint8_t l = (opcode >> 7) & 0x1;
uint8_t imm6 = (opcode >> 16) & 0x3F;
uint8_t decodedImm = 0;
uint8_t size = 0;
@ -874,7 +874,7 @@ const char* arm_print(uint32_t opcode) {
int q = (opcode >> 6) & 1;
int d = ((opcode >> 22) & 1) << 4 | ((opcode >> 12) & 0xF);
int m = ((opcode >> 5) & 1) << 4 | ((opcode >> 0) & 0xF);
uint8_t l = (opcode >> 1) & 0x1;
uint8_t l = (opcode >> 7) & 0x1;
uint8_t imm6 = (opcode >> 16) & 0x3F;
uint8_t decodedImm = 0;
uint8_t size = 0;
@ -897,7 +897,7 @@ const char* arm_print(uint32_t opcode) {
int q = (opcode >> 6) & 1;
int d = ((opcode >> 22) & 1) << 4 | ((opcode >> 12) & 0xF);
int m = ((opcode >> 5) & 1) << 4 | ((opcode >> 0) & 0xF);
uint8_t l = (opcode >> 1) & 0x1;
uint8_t l = (opcode >> 7) & 0x1;
uint8_t imm6 = (opcode >> 16) & 0x3F;
uint8_t decodedImm = 0;
uint8_t size = 0;
@ -919,7 +919,7 @@ const char* arm_print(uint32_t opcode) {
int q = (opcode >> 6) & 1;
int d = ((opcode >> 22) & 1) << 4 | ((opcode >> 12) & 0xF);
int m = ((opcode >> 5) & 1) << 4 | ((opcode >> 0) & 0xF);
uint8_t l = (opcode >> 1) & 0x1;
uint8_t l = (opcode >> 7) & 0x1;
uint8_t imm6 = (opcode >> 16) & 0x3F;
uint8_t decodedImm = 0;
uint8_t size = 0;
@ -941,7 +941,7 @@ const char* arm_print(uint32_t opcode) {
int q = (opcode >> 6) & 1;
int d = ((opcode >> 22) & 1) << 4 | ((opcode >> 12) & 0xF);
int m = ((opcode >> 5) & 1) << 4 | ((opcode >> 0) & 0xF);
uint8_t l = (opcode >> 1) & 0x1;
uint8_t l = (opcode >> 7) & 0x1;
uint8_t imm6 = (opcode >> 16) & 0x3F;
uint8_t decodedImm = 0;
uint8_t size = 0;
@ -963,7 +963,7 @@ const char* arm_print(uint32_t opcode) {
int q = (opcode >> 6) & 1;
int d = ((opcode >> 22) & 1) << 4 | ((opcode >> 12) & 0xF);
int m = ((opcode >> 5) & 1) << 4 | ((opcode >> 0) & 0xF);
uint8_t l = (opcode >> 1) & 0x1;
uint8_t l = (opcode >> 7) & 0x1;
uint8_t imm6 = (opcode >> 16) & 0x3F;
uint8_t decodedImm = 0;
uint8_t size = 0;
@ -987,7 +987,7 @@ const char* arm_print(uint32_t opcode) {
int q = (opcode >> 6) & 1;
int d = ((opcode >> 22) & 1) << 4 | ((opcode >> 12) & 0xF);
int m = ((opcode >> 5) & 1) << 4 | ((opcode >> 0) & 0xF);
uint8_t l = (opcode >> 1) & 0x1;
uint8_t l = (opcode >> 7) & 0x1;
uint8_t imm6 = (opcode >> 16) & 0x3F;
uint8_t decodedImm = 0;
uint8_t size = 0;