fix misleading-indentation

This commit is contained in:
Chris Cromer 2019-05-01 19:16:51 -04:00
parent 3220c5f1b1
commit 655f62082d
Signed by: cromer
GPG Key ID: 39CC813FF3C8708A

View File

@ -360,21 +360,40 @@ void Logic::AddSpecialSyntaxCommand(void)
// assignv // assignv
case 0x04: ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(ReadByte()); break; case 0x04: ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(ReadByte()); break;
// addn // addn
case 0x05: if (SpecialSyntaxType == 0) case 0x05:
ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" + "+IntToStr(ReadByte()); if (SpecialSyntaxType == 0) {
else ThisLine += "v"+IntToStr(arg1)+" += "+IntToStr(ReadByte()); break; ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" + "+IntToStr(ReadByte());
}
else {
ThisLine += "v"+IntToStr(arg1)+" += "+IntToStr(ReadByte());
}
break;
// addv // addv
case 0x06: if (SpecialSyntaxType == 0) case 0x06:
ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" + v"+IntToStr(ReadByte()); if (SpecialSyntaxType == 0)
else ThisLine += "v"+IntToStr(arg1)+" += v"+IntToStr(ReadByte()); break; ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" + v"+IntToStr(ReadByte());
else {
ThisLine += "v"+IntToStr(arg1)+" += v"+IntToStr(ReadByte());
}
break;
// subn // subn
case 0x07: if (SpecialSyntaxType == 0) case 0x07:
ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" - "+IntToStr(ReadByte()); if (SpecialSyntaxType == 0) {
else ThisLine += "v"+IntToStr(arg1)+" -= "+IntToStr(ReadByte()); break; ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" - "+IntToStr(ReadByte());
}
else {
ThisLine += "v"+IntToStr(arg1)+" -= "+IntToStr(ReadByte());
}
break;
// subv // subv
case 0x08: if (SpecialSyntaxType == 0) case 0x08:
ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" - v"+IntToStr(ReadByte()); if (SpecialSyntaxType == 0) {
else ThisLine += "v"+IntToStr(arg1)+" -= v"+IntToStr(ReadByte()); break; ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" - v"+IntToStr(ReadByte());
}
else {
ThisLine += "v"+IntToStr(arg1)+" -= v"+IntToStr(ReadByte());
}
break;
// lindirectv // lindirectv
case 0x09: ThisLine += "*v"+IntToStr(arg1)+" = v"+IntToStr(ReadByte()); break; case 0x09: ThisLine += "*v"+IntToStr(arg1)+" = v"+IntToStr(ReadByte()); break;
// rindirect // rindirect
@ -382,21 +401,41 @@ void Logic::AddSpecialSyntaxCommand(void)
// lindirectn // lindirectn
case 0x0B: ThisLine += "*v"+IntToStr(arg1)+" = "+IntToStr(ReadByte()); break; case 0x0B: ThisLine += "*v"+IntToStr(arg1)+" = "+IntToStr(ReadByte()); break;
// mul.n // mul.n
case 0xA5: if (SpecialSyntaxType == 0) case 0xA5:
ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" * "+IntToStr(ReadByte()); if (SpecialSyntaxType == 0) {
else ThisLine += "v"+IntToStr(arg1)+" *= "+IntToStr(ReadByte()); break; ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" * "+IntToStr(ReadByte());
}
else {
ThisLine += "v"+IntToStr(arg1)+" *= "+IntToStr(ReadByte());
}
break;
// mul.v // mul.v
case 0xA6: if (SpecialSyntaxType == 0) case 0xA6:
ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" * v"+IntToStr(ReadByte()); if (SpecialSyntaxType == 0) {
else ThisLine += "v"+IntToStr(arg1)+" *= v"+IntToStr(ReadByte()); break; ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" * v"+IntToStr(ReadByte());
}
else {
ThisLine += "v"+IntToStr(arg1)+" *= v"+IntToStr(ReadByte());
}
break;
// div.n // div.n
case 0xA7: if (SpecialSyntaxType == 0) case 0xA7:
ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" / "+IntToStr(ReadByte()); if (SpecialSyntaxType == 0) {
else ThisLine += "v"+IntToStr(arg1)+" /= "+IntToStr(ReadByte()); break; ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" / "+IntToStr(ReadByte());
}
else {
ThisLine += "v"+IntToStr(arg1)+" /= "+IntToStr(ReadByte());
}
break;
// div.v // div.v
case 0xA8: if (SpecialSyntaxType == 0) case 0xA8:
ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" / v"+IntToStr(ReadByte()); if (SpecialSyntaxType == 0) {
else ThisLine += "v"+IntToStr(arg1)+" /= v"+IntToStr(ReadByte()); break; ThisLine += "v"+IntToStr(arg1)+" = v"+IntToStr(arg1)+" / v"+IntToStr(ReadByte());
}
else {
ThisLine += "v"+IntToStr(arg1)+" /= v"+IntToStr(ReadByte());
}
break;
} }
} }