This is as easy as write P4 compatible code, compile on PC, test on PC, convert to p-code.
So far all is going well - I hope to have a WIP release in a week or so.
The process is 3 steps
Step 1 - write PASCAL P4 compliant code
Code: Select all
program test ;
var
isdone : integer ;
begin
writeln ('hello world') ;
writeln ('from Pascal-M 6502') ;
isdone :=1 ;
while (isdone = 1) do
begin
isdone := 1 ;
end ;
end.
Code: Select all
P400test BF
P11FB5000002C2BC0B68656C6C6F20776F726C640B0BBD02BD0602C2BC12667242
P11F6F6D2050617363616C2D4D2036353032A00012A00012BD02BD06018008605A
P10B080196B10045B2003BA1D1
P200010002FC
P9
For step 3, I have written a small utility which converts the p-code to bytecode for the 6502 interpreter.
On the CSL / Salora Manager / Laser 2001, it will load just out of the way of BASIC at $5100. The interpreter is around 4k - so it leaves around 24k for program and data!
To run the demo, BLOAD, then call 20736 ($5100)