Skip to content

Commit

Permalink
Split if statements, clean
Browse files Browse the repository at this point in the history
  • Loading branch information
IHatePineapples committed May 7, 2024
1 parent cf31258 commit c320091
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/RoL/emulation/emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,8 @@ namespace emulation
jalr_(rd, rs1, imm);
return;
}
else if (opc_r == parse::B)

if (opc_r == parse::B)
{

std::bitset<12> imm = 0;
Expand Down Expand Up @@ -558,7 +559,8 @@ namespace emulation
break;
}
}
else if (opc_r == parse::I or opc_r == parse::L)

if (opc_r == parse::I or opc_r == parse::L)
{
std::bitset<12> imm;

Expand Down Expand Up @@ -633,7 +635,8 @@ namespace emulation
}
}
}
else if (opc_r == parse::S)

if (opc_r == parse::S)
{
std::bitset<12> imm;

Expand All @@ -655,7 +658,8 @@ namespace emulation
break;
}
}
else if (opc_r == parse::R)

if (opc_r == parse::R)
{
switch (opc_l.to_ulong())
{
Expand Down

0 comments on commit c320091

Please sign in to comment.