hello, good day.
the pointer so not funktion???
zpscr : pointer ;
zpcol : pointer;
........
..........
if peek(^197,0)= 17 then
begin
warte(10);
x:=x-1;
if (x=255) then x:=0;
zpscr:=4096+(y*22+x);
zpcol:=4096+(y*22+x);
zpscr[0]:=0;
zpcol[0]:=f;
end;
.........
........
thanks
greeting
TRSE : pointer not function.
Moderator: Moderators
- AndyH
- Vic 20 Afficionado
- Posts: 442
- Joined: Thu Jun 17, 2004 5:51 am
- Website: https://www.hewco.uk
- Location: UK
- Occupation: Developer
Re: TRSE : pointer not function.
Shouldn't x be in range from 0 to 21 from your calculation?
For example, this works for me:
For example, this works for me:
Code: Select all
p1:= 4096+(y*22+x);
x:=x+1;
if (x>21) then x:=0;
p1[0] := 1;
- AndyH
- Vic 20 Afficionado
- Posts: 442
- Joined: Thu Jun 17, 2004 5:51 am
- Website: https://www.hewco.uk
- Location: UK
- Occupation: Developer
Re: TRSE : pointer not function.
Although I should add, I use AddressTable to get the Y address to avoid heavy calculations such as multiplication and then can do:
p1[ x ] := 1;
p1[ x ] := 1;
Re: TRSE : pointer not function.
hello thanks.
greeting
greeting