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
1 changed files with 80 additions and 41 deletions

View File

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