https://github.com/MADRAFi/Mad-Pascal/tree/x16
Madpascal for the x16 is only at the beginning of development.
A few x16 system commands still need to be implemented here.
could be a good intermediate level for basic and C.
I made a demo for the x16 with right-left scrolling.
layer0 with image and layer1 with text.
greeting
Code: Select all
uses x16_vera, x16, crt;
var
i: byte;
d: word;
stop: Boolean;
z: byte;
u: byte;
procedure rechts;
begin
z:=z-1;
if z=255 then begin
u:=u-1;
Poke($9F38,u);
end;
Poke($9F37,z);
end;
procedure links;
begin
z:=z+1;
if z=0 then begin
u:=u+1;
Poke($9F38,u);
end;
Poke($9F37,z);
end;
Procedure KeyScan;
var c2: char;
begin
If KeyPressed then
begin
C2 := UpCase(ReadKey);
case C2 of
'Q': begin links; end;
'E': begin rechts; end;
end;
stop := (C2 = X16_KEY_ESC);
end
end;
begin
veraInit;
veraDirectLoadPalette('FUNKPAL.PAL');
veraDirectLoadImage('test.raw');
gotoxy(10,11);
writeln('TEXT IM SCREEN 80');
Repeat
KeyScan;
Until stop;
end.