mirror of
https://github.com/ptitSeb/box86.git
synced 2024-11-24 02:13:27 +08:00
[PRINTER] Fixed a class of var. size opcodes printer
This commit is contained in:
parent
55d216f024
commit
71c7ec6fed
@ -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")
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user