04-13-2013, 02:19 AM
Darkstar Wrote:I have not tried to SAVE with 11 chars.The original BASIC does not accept the command but comes up with: F Invalid file name, 0:1.
The compiled BASIC accepts the command but truncates the last letter when saved to tape but
I do hope that this does not lead to a buffer overflow of sorts.
When saving with an empty string the original gives error message F while the compiled basic just
falls through to the next executable statment giving no clue at all.
Code:
ERROR_Ok EQU -1
ERROR_SubscriptWrong EQU 2
ERROR_OutOfMemory EQU 3
ERROR_OutOfScreen EQU 4
ERROR_NumberTooBig EQU 5
ERROR_InvalidArg EQU 9
ERROR_IntOutOfRange EQU 10
ERROR_InvalidColour EQU 19
ERROR_BreakIntoProgram EQU 20
ERROR_TapeLoadingErr EQU 26
This could be mapped to error #9 but that would not be compatible with the original, I think file operations are important enough to add
error message F.
Otherwise this works fine.