sonarlinting and formatting in src/cpu
This commit is contained in:
@@ -88,7 +88,8 @@ opJ(LE)
|
||||
opJ(NLE)
|
||||
// clang-format on
|
||||
|
||||
static int opLOOPNE_w(uint32_t fetchdat)
|
||||
static int
|
||||
opLOOPNE_w(uint32_t fetchdat)
|
||||
{
|
||||
int8_t offset = (int8_t) getbytef();
|
||||
CX--;
|
||||
@@ -271,8 +272,10 @@ opJMP_r32(uint32_t fetchdat)
|
||||
static int
|
||||
opJMP_far_a16(uint32_t fetchdat)
|
||||
{
|
||||
uint16_t addr, seg;
|
||||
uint16_t addr;
|
||||
uint16_t seg;
|
||||
uint32_t old_pc;
|
||||
|
||||
addr = getwordf();
|
||||
seg = getword();
|
||||
if (cpu_state.abrt)
|
||||
@@ -289,7 +292,9 @@ static int
|
||||
opJMP_far_a32(uint32_t fetchdat)
|
||||
{
|
||||
uint16_t seg;
|
||||
uint32_t addr, old_pc;
|
||||
uint32_t addr;
|
||||
uint32_t old_pc;
|
||||
|
||||
addr = getlong();
|
||||
seg = getword();
|
||||
if (cpu_state.abrt)
|
||||
@@ -307,6 +312,7 @@ static int
|
||||
opCALL_r16(uint32_t fetchdat)
|
||||
{
|
||||
int16_t addr = (int16_t) getwordf();
|
||||
|
||||
PUSH_W(cpu_state.pc);
|
||||
cpu_state.pc += addr;
|
||||
cpu_state.pc &= 0xffff;
|
||||
@@ -320,6 +326,7 @@ static int
|
||||
opCALL_r32(uint32_t fetchdat)
|
||||
{
|
||||
int32_t addr = getlong();
|
||||
|
||||
if (cpu_state.abrt)
|
||||
return 1;
|
||||
PUSH_L(cpu_state.pc);
|
||||
|
||||
Reference in New Issue
Block a user