mirror of
https://github.com/livingcomputermuseum/sImlac.git
synced 2026-01-13 15:27:40 +00:00
Fix for boneheaded mistake in disassembler.
This commit is contained in:
parent
18bb3eb9bd
commit
d33cc3d166
@ -920,8 +920,8 @@ namespace imlac
|
||||
{
|
||||
string opr = String.Empty;
|
||||
|
||||
string[] lowerCodes = { "CLA", "CMA", "STA", "IAC", "COA", "CIA", "CMA, IAC", "CLA, CMA, IAC" };
|
||||
string[] upperCodes = { "CLL", "CML", "STL", "ODA", "CLL, CML", "CML, ODA", "CLL, CML", "CLL, CML, ODA" };
|
||||
string[] lowerCodes = { "NOP", "CLA", "CMA", "STA", "IAC", "COA", "CIA", "CMA, IAC", "CLA, CMA, IAC" };
|
||||
string[] upperCodes = { "", "CLL", "CML", "STL", "ODA", "CLL, CML", "CML, ODA", "CLL, CML", "CLL, CML, ODA" };
|
||||
|
||||
// check for two specially named combinations of upper and lower bits:
|
||||
if (Data == 0x9)
|
||||
@ -943,11 +943,11 @@ namespace imlac
|
||||
}
|
||||
else if (highIndex != 0)
|
||||
{
|
||||
opr = upperCodes[highIndex - 1];
|
||||
opr = upperCodes[highIndex];
|
||||
}
|
||||
else if (lowIndex != 0)
|
||||
{
|
||||
opr = lowerCodes[lowIndex - 1];
|
||||
opr = lowerCodes[lowIndex];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -584,7 +584,7 @@ namespace imlac
|
||||
throw new InvalidOperationException(String.Format("Start address must be less than the size of system memory ({0}).", Helpers.ToOctal(Memory.Size)));
|
||||
}
|
||||
|
||||
ushort endAddress = (ushort)Math.Min(Memory.Size - 1, startAddress + length);
|
||||
ushort endAddress = (ushort)Math.Min(Memory.Size, startAddress + length);
|
||||
|
||||
for (ushort address = startAddress; address < endAddress; address++)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user