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