mirror of
https://github.com/dmolony/DiskBrowser.git
synced 2024-06-27 08:29:31 +00:00
removed spaces from tokens
This commit is contained in:
parent
fdc15f7eb3
commit
18289f382c
|
@ -942,8 +942,7 @@ public class ApplesoftBasicProgram extends BasicProgram implements ApplesoftCons
|
||||||
|
|
||||||
while ((b = buffer[ptr++]) != 0)
|
while ((b = buffer[ptr++]) != 0)
|
||||||
if (Utility.isHighBitSet (b))
|
if (Utility.isHighBitSet (b))
|
||||||
text.append (
|
text.append (String.format (" %s ", ApplesoftConstants.tokens[b & 0x7F]));
|
||||||
String.format (" %s ", ApplesoftConstants.tokens[b & 0x7F].trim ()));
|
|
||||||
else
|
else
|
||||||
text.append ((char) b);
|
text.append ((char) b);
|
||||||
|
|
||||||
|
|
|
@ -33,8 +33,8 @@ public interface ApplesoftConstants
|
||||||
"STR$", "VAL", "ASC", "CHR$", // 0xE4 - 0xE7
|
"STR$", "VAL", "ASC", "CHR$", // 0xE4 - 0xE7
|
||||||
"LEFT$", "RIGHT$", "MID$", "", // 0xE8 - 0xEB
|
"LEFT$", "RIGHT$", "MID$", "", // 0xE8 - 0xEB
|
||||||
"", "", "", "", // 0xEC - 0xEF
|
"", "", "", "", // 0xEC - 0xEF
|
||||||
"ELSE", "MOD", "INC", "DEC", // 0xF0 - 0xF3
|
"", "", "", "", // 0xF0 - 0xF3
|
||||||
"DEEK", "DOKE", "REPEAT", "UNTIL", // 0xF4 - 0xF7
|
"", "", "", "", // 0xF4 - 0xF7
|
||||||
"", "", "", "", // 0xF8 - 0xFB
|
"", "", "", "", // 0xF8 - 0xFB
|
||||||
"", "", "", "", // 0xFC - 0xFF
|
"", "", "", "", // 0xFC - 0xFF
|
||||||
};
|
};
|
||||||
|
|
|
@ -543,7 +543,7 @@ public class SubLine implements ApplesoftConstants
|
||||||
for (int p = startPtr; p <= max; p++)
|
for (int p = startPtr; p <= max; p++)
|
||||||
{
|
{
|
||||||
byte b = buffer[p];
|
byte b = buffer[p];
|
||||||
if (Utility.isHighBitSet (b))
|
if (Utility.isHighBitSet (b)) // token
|
||||||
{
|
{
|
||||||
if (line.length () > 0 && line.charAt (line.length () - 1) != ' ')
|
if (line.length () > 0 && line.charAt (line.length () - 1) != ' ')
|
||||||
line.append (' ');
|
line.append (' ');
|
||||||
|
@ -551,7 +551,7 @@ public class SubLine implements ApplesoftConstants
|
||||||
if (val < ApplesoftConstants.tokens.length)
|
if (val < ApplesoftConstants.tokens.length)
|
||||||
{
|
{
|
||||||
if (b != TOKEN_THEN || ApplesoftBasicProgram.basicPreferences.showThen)
|
if (b != TOKEN_THEN || ApplesoftBasicProgram.basicPreferences.showThen)
|
||||||
line.append (ApplesoftConstants.tokens[val]);
|
line.append (ApplesoftConstants.tokens[val] + " ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (Utility.isControlCharacter (b))
|
else if (Utility.isControlCharacter (b))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user