t-edson / P65Pas

CPU 6502 Pascal Compiler/IDE/Debugger
GNU General Public License v3.0
119 stars 27 forks source link

Long string causes a range check error. #55

Closed Skertan closed 1 year ago

Skertan commented 1 year ago

Hello,

program NewProgram;
uses Commodore64;
var
  text: array [] of char = '256 Bytes long: This is a long Text.This is a long Text.This is a long Text.This is a long Text.This is a long Text.This is a long Text.This is a long Text.This is a long Text.This is a long Text.This is a long Text.This is a long Text.This is a long Text.';
begin
  STROUT(@text);
end.

When a text is longer than 255 Bytes it causes an range check error with the options OK or ABORT. This happens since the latest version, previous versions were ok.

t-edson commented 1 year ago

I've updated the array initialization routine. Long arrays can be initialized now. But I'm not sure STROUT() can show long arrays