}
-uint64 NMD::extr_uil3il3bs9Fmsb11(uint64 instruction)
+uint64 NMD::extract_u_11_10_9_8_7_6_5_4_3__s3(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 3, 9) << 3;
}
-uint64 NMD::extr_uil1il1bs17Fmsb17(uint64 instruction)
+uint64 NMD::extract_u_17_to_1__s1(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 1, 17) << 1;
}
-uint64 NMD::extr_shiftxil7il1bs4Fmsb4(uint64 instruction)
+uint64 NMD::extract_shiftx_10_9_8_7__s1(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 7, 4) << 1;
}
-uint64 NMD::extr_uil1il1bs2Fmsb2(uint64 instruction)
+uint64 NMD::extract_u_2_1__s1(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 1, 2) << 1;
}
-uint64 NMD::extr_uil3il3bs18Fmsb20(uint64 instruction)
+uint64 NMD::extract_u_20_to_3__s3(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 3, 18) << 3;
}
-uint64 NMD::extr_uil0il2bs4Fmsb5(uint64 instruction)
+uint64 NMD::extract_u_3_2_1_0__s2(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 0, 4) << 2;
}
-uint64 NMD::extr_uil0il2bs3Fmsb4(uint64 instruction)
+uint64 NMD::extract_u_2_1_0__s2(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 0, 3) << 2;
}
-uint64 NMD::extr_uil0il2bs6Fmsb7(uint64 instruction)
+uint64 NMD::extract_u_5_4_3_2_1_0__s2(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 0, 6) << 2;
}
-uint64 NMD::extr_uil0il32bs32Fmsb63(uint64 instruction)
+uint64 NMD::extract_u_31_to_0__s32(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 0, 32) << 32;
}
-uint64 NMD::extr_uil0il2bs7Fmsb8(uint64 instruction)
+uint64 NMD::extract_u_6_5_4_3_2_1_0__s2(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 0, 7) << 2;
}
-uint64 NMD::extr_uil4il4bs4Fmsb7(uint64 instruction)
+uint64 NMD::extract_u_7_6_5_4__s4(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 4, 4) << 4;
}
-uint64 NMD::extr_uil2il2bs16Fmsb17(uint64 instruction)
+uint64 NMD::extract_u_17_to_2__s2(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 2, 16) << 2;
}
-uint64 NMD::extr_uil3il3bs1_il8il2bs1Fmsb3(uint64 instruction)
+uint64 NMD::extract_u_3_8__s2(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 3, 1) << 3;
}
-uint64 NMD::extr_uil0il2bs5Fmsb6(uint64 instruction)
+uint64 NMD::extract_u_4_3_2_1_0__s2(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 0, 5) << 2;
}
-uint64 NMD::extr_uil2il2bs19Fmsb20(uint64 instruction)
+uint64 NMD::extract_u_20_to_2__s2(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 2, 19) << 2;
}
-uint64 NMD::extr_uil0il1bs4Fmsb4(uint64 instruction)
+uint64 NMD::extract_u_3_2_1_0__s1(uint64 instruction)
{
uint64 value = 0;
value |= extract_bits(instruction, 0, 4) << 1;
{
uint64 rs3 = extract_rs3_6_5_4(instruction);
uint64 rt3 = extract_rt3_9_8_7(instruction);
- uint64 u = extr_uil0il1bs4Fmsb4(instruction);
+ uint64 u = extract_u_3_2_1_0__s1(instruction);
return rs3 < rt3 && u != 0;
}
{
uint64 rs3 = extract_rs3_6_5_4(instruction);
uint64 rt3 = extract_rt3_9_8_7(instruction);
- uint64 u = extr_uil0il1bs4Fmsb4(instruction);
+ uint64 u = extract_u_3_2_1_0__s1(instruction);
return rs3 >= rt3 && u != 0;
}
bool NMD::P16_BR1_cond(uint64 instruction)
{
- uint64 u = extr_uil0il1bs4Fmsb4(instruction);
+ uint64 u = extract_u_3_2_1_0__s1(instruction);
return u != 0;
}
std::string NMD::ADDIU_GP_W_(uint64 instruction)
{
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
- uint64 u_value = extr_uil2il2bs19Fmsb20(instruction);
+ uint64 u_value = extract_u_20_to_2__s2(instruction);
std::string rt = GPR(copy(rt_value));
std::string u = IMMEDIATE(copy(u_value));
*/
std::string NMD::ADDIU_R1_SP_(uint64 instruction)
{
- uint64 u_value = extr_uil0il2bs6Fmsb7(instruction);
+ uint64 u_value = extract_u_5_4_3_2_1_0__s2(instruction);
uint64 rt3_value = extract_rt3_9_8_7(instruction);
std::string rt3 = GPR(encode_gpr3(rt3_value));
*/
std::string NMD::ADDIU_R2_(uint64 instruction)
{
- uint64 u_value = extr_uil0il2bs3Fmsb4(instruction);
+ uint64 u_value = extract_u_2_1_0__s2(instruction);
uint64 rt3_value = extract_rt3_9_8_7(instruction);
uint64 rs3_value = extract_rs3_6_5_4(instruction);
*/
std::string NMD::BEQC_16_(uint64 instruction)
{
- uint64 u_value = extr_uil0il1bs4Fmsb4(instruction);
+ uint64 u_value = extract_u_3_2_1_0__s1(instruction);
uint64 rt3_value = extract_rt3_9_8_7(instruction);
uint64 rs3_value = extract_rs3_6_5_4(instruction);
*/
std::string NMD::BNEC_16_(uint64 instruction)
{
- uint64 u_value = extr_uil0il1bs4Fmsb4(instruction);
+ uint64 u_value = extract_u_3_2_1_0__s1(instruction);
uint64 rt3_value = extract_rt3_9_8_7(instruction);
uint64 rs3_value = extract_rs3_6_5_4(instruction);
std::string NMD::DLUI_48_(uint64 instruction)
{
uint64 rt_value = extract_rt_41_40_39_38_37(instruction);
- uint64 u_value = extr_uil0il32bs32Fmsb63(instruction);
+ uint64 u_value = extract_u_31_to_0__s32(instruction);
std::string rt = GPR(copy(rt_value));
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::LD_GP_(uint64 instruction)
{
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
- uint64 u_value = extr_uil3il3bs18Fmsb20(instruction);
+ uint64 u_value = extract_u_20_to_3__s3(instruction);
std::string rt = GPR(copy(rt_value));
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::LDC1_GP_(uint64 instruction)
{
uint64 ft_value = extract_ft_20_19_18_17_16(instruction);
- uint64 u_value = extr_uil2il2bs16Fmsb17(instruction);
+ uint64 u_value = extract_u_17_to_2__s2(instruction);
std::string ft = FPR(copy(ft_value));
std::string u = IMMEDIATE(copy(u_value));
*/
std::string NMD::LH_16_(uint64 instruction)
{
- uint64 u_value = extr_uil1il1bs2Fmsb2(instruction);
+ uint64 u_value = extract_u_2_1__s1(instruction);
uint64 rt3_value = extract_rt3_9_8_7(instruction);
uint64 rs3_value = extract_rs3_6_5_4(instruction);
std::string NMD::LH_GP_(uint64 instruction)
{
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
- uint64 u_value = extr_uil1il1bs17Fmsb17(instruction);
+ uint64 u_value = extract_u_17_to_1__s1(instruction);
std::string rt = GPR(copy(rt_value));
std::string u = IMMEDIATE(copy(u_value));
*/
std::string NMD::LHU_16_(uint64 instruction)
{
- uint64 u_value = extr_uil1il1bs2Fmsb2(instruction);
+ uint64 u_value = extract_u_2_1__s1(instruction);
uint64 rt3_value = extract_rt3_9_8_7(instruction);
uint64 rs3_value = extract_rs3_6_5_4(instruction);
std::string NMD::LHU_GP_(uint64 instruction)
{
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
- uint64 u_value = extr_uil1il1bs17Fmsb17(instruction);
+ uint64 u_value = extract_u_17_to_1__s1(instruction);
std::string rt = GPR(copy(rt_value));
std::string u = IMMEDIATE(copy(u_value));
*/
std::string NMD::LW_16_(uint64 instruction)
{
- uint64 u_value = extr_uil0il2bs4Fmsb5(instruction);
+ uint64 u_value = extract_u_3_2_1_0__s2(instruction);
uint64 rt3_value = extract_rt3_9_8_7(instruction);
uint64 rs3_value = extract_rs3_6_5_4(instruction);
{
uint64 rs4_value = extract_rs4_4_2_1_0(instruction);
uint64 rt4_value = extract_rt4_9_7_6_5(instruction);
- uint64 u_value = extr_uil3il3bs1_il8il2bs1Fmsb3(instruction);
+ uint64 u_value = extract_u_3_8__s2(instruction);
std::string rt4 = GPR(encode_gpr4(rt4_value));
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::LW_GP_(uint64 instruction)
{
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
- uint64 u_value = extr_uil2il2bs19Fmsb20(instruction);
+ uint64 u_value = extract_u_20_to_2__s2(instruction);
std::string rt = GPR(copy(rt_value));
std::string u = IMMEDIATE(copy(u_value));
*/
std::string NMD::LW_GP16_(uint64 instruction)
{
- uint64 u_value = extr_uil0il2bs7Fmsb8(instruction);
+ uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction);
uint64 rt3_value = extract_rt3_9_8_7(instruction);
std::string rt3 = GPR(encode_gpr3(rt3_value));
std::string NMD::LW_SP_(uint64 instruction)
{
uint64 rt_value = extract_rt_9_8_7_6_5(instruction);
- uint64 u_value = extr_uil0il2bs5Fmsb6(instruction);
+ uint64 u_value = extract_u_4_3_2_1_0__s2(instruction);
std::string rt = GPR(copy(rt_value));
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::LWC1_GP_(uint64 instruction)
{
uint64 ft_value = extract_ft_20_19_18_17_16(instruction);
- uint64 u_value = extr_uil2il2bs16Fmsb17(instruction);
+ uint64 u_value = extract_u_17_to_2__s2(instruction);
std::string ft = FPR(copy(ft_value));
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::LWU_GP_(uint64 instruction)
{
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
- uint64 u_value = extr_uil2il2bs16Fmsb17(instruction);
+ uint64 u_value = extract_u_17_to_2__s2(instruction);
std::string rt = GPR(copy(rt_value));
std::string u = IMMEDIATE(copy(u_value));
{
uint64 count_value = extract_count_19_18_17_16(instruction);
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
- uint64 u_value = extr_uil3il3bs9Fmsb11(instruction);
+ uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction);
uint64 gp_value = extract_gp_2(instruction);
std::string u = IMMEDIATE(copy(u_value));
{
uint64 count_value = extract_count_3_2_1_0(instruction);
uint64 rt1_value = extract_rtl_11(instruction);
- uint64 u_value = extr_uil4il4bs4Fmsb7(instruction);
+ uint64 u_value = extract_u_7_6_5_4__s4(instruction);
std::string u = IMMEDIATE(copy(u_value));
return img::format("RESTORE.JRC %s%s", u,
{
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
uint64 count_value = extract_count_19_18_17_16(instruction);
- uint64 u_value = extr_uil3il3bs9Fmsb11(instruction);
+ uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction);
uint64 gp_value = extract_gp_2(instruction);
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::RESTOREF(uint64 instruction)
{
uint64 count_value = extract_count_19_18_17_16(instruction);
- uint64 u_value = extr_uil3il3bs9Fmsb11(instruction);
+ uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction);
std::string u = IMMEDIATE(copy(u_value));
std::string count = IMMEDIATE(copy(count_value));
{
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
uint64 rs_value = extract_rs_20_19_18_17_16(instruction);
- uint64 shiftx_value = extr_shiftxil7il1bs4Fmsb4(instruction);
+ uint64 shiftx_value = extract_shiftx_10_9_8_7__s1(instruction);
uint64 stripe_value = extract_stripe_6(instruction);
uint64 shift_value = extract_shift_4_3_2_1_0(instruction);
{
uint64 count_value = extract_count_3_2_1_0(instruction);
uint64 rt1_value = extract_rtl_11(instruction);
- uint64 u_value = extr_uil4il4bs4Fmsb7(instruction);
+ uint64 u_value = extract_u_7_6_5_4__s4(instruction);
std::string u = IMMEDIATE(copy(u_value));
return img::format("SAVE %s%s", u,
{
uint64 count_value = extract_count_19_18_17_16(instruction);
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
- uint64 u_value = extr_uil3il3bs9Fmsb11(instruction);
+ uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction);
uint64 gp_value = extract_gp_2(instruction);
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::SAVEF(uint64 instruction)
{
uint64 count_value = extract_count_19_18_17_16(instruction);
- uint64 u_value = extr_uil3il3bs9Fmsb11(instruction);
+ uint64 u_value = extract_u_11_10_9_8_7_6_5_4_3__s3(instruction);
std::string u = IMMEDIATE(copy(u_value));
std::string count = IMMEDIATE(copy(count_value));
std::string NMD::SD_GP_(uint64 instruction)
{
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
- uint64 u_value = extr_uil3il3bs18Fmsb20(instruction);
+ uint64 u_value = extract_u_20_to_3__s3(instruction);
std::string rt = GPR(copy(rt_value));
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::SDC1_GP_(uint64 instruction)
{
uint64 ft_value = extract_ft_20_19_18_17_16(instruction);
- uint64 u_value = extr_uil2il2bs16Fmsb17(instruction);
+ uint64 u_value = extract_u_17_to_2__s2(instruction);
std::string ft = FPR(copy(ft_value));
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::SH_16_(uint64 instruction)
{
uint64 rtz3_value = extract_rtz3_9_8_7(instruction);
- uint64 u_value = extr_uil1il1bs2Fmsb2(instruction);
+ uint64 u_value = extract_u_2_1__s1(instruction);
uint64 rs3_value = extract_rs3_6_5_4(instruction);
std::string rtz3 = GPR(encode_gpr3_store(rtz3_value));
std::string NMD::SH_GP_(uint64 instruction)
{
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
- uint64 u_value = extr_uil1il1bs17Fmsb17(instruction);
+ uint64 u_value = extract_u_17_to_1__s1(instruction);
std::string rt = GPR(copy(rt_value));
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::SW_16_(uint64 instruction)
{
uint64 rtz3_value = extract_rtz3_9_8_7(instruction);
- uint64 u_value = extr_uil0il2bs4Fmsb5(instruction);
+ uint64 u_value = extract_u_3_2_1_0__s2(instruction);
uint64 rs3_value = extract_rs3_6_5_4(instruction);
std::string rtz3 = GPR(encode_gpr3_store(rtz3_value));
{
uint64 rs4_value = extract_rs4_4_2_1_0(instruction);
uint64 rtz4_value = extract_rtz4_9_7_6_5(instruction);
- uint64 u_value = extr_uil3il3bs1_il8il2bs1Fmsb3(instruction);
+ uint64 u_value = extract_u_3_8__s2(instruction);
std::string rtz4 = GPR(encode_gpr4_zero(rtz4_value));
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::SW_GP16_(uint64 instruction)
{
uint64 rtz3_value = extract_rtz3_9_8_7(instruction);
- uint64 u_value = extr_uil0il2bs7Fmsb8(instruction);
+ uint64 u_value = extract_u_6_5_4_3_2_1_0__s2(instruction);
std::string rtz3 = GPR(encode_gpr3_store(rtz3_value));
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::SW_GP_(uint64 instruction)
{
uint64 rt_value = extract_rt_25_24_23_22_21(instruction);
- uint64 u_value = extr_uil2il2bs19Fmsb20(instruction);
+ uint64 u_value = extract_u_20_to_2__s2(instruction);
std::string rt = GPR(copy(rt_value));
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::SW_SP_(uint64 instruction)
{
uint64 rt_value = extract_rt_9_8_7_6_5(instruction);
- uint64 u_value = extr_uil0il2bs5Fmsb6(instruction);
+ uint64 u_value = extract_u_4_3_2_1_0__s2(instruction);
std::string rt = GPR(copy(rt_value));
std::string u = IMMEDIATE(copy(u_value));
std::string NMD::SWC1_GP_(uint64 instruction)
{
uint64 ft_value = extract_ft_20_19_18_17_16(instruction);
- uint64 u_value = extr_uil2il2bs16Fmsb17(instruction);
+ uint64 u_value = extract_u_17_to_2__s2(instruction);
std::string ft = FPR(copy(ft_value));
std::string u = IMMEDIATE(copy(u_value));