tebe6502 / Mad-Pascal

Mad Pascal Compiler for 6502 (Atari XE/XL, C64, C4Plus, Neo6502)
122 stars 20 forks source link

[BUG] Access violation #112

Closed zbyti closed 1 year ago

zbyti commented 1 year ago
var
  i     : byte                     absolute $ff;
  glass : array[0..31] of cardinal absolute $5000;  
  p     : ^cardinal;

begin
  p := pointer($4000);
  for i := 0 to 31 do begin
    p^ := glass[i]; inc(p, 10);
  end;   
end.
Mad Pascal Compiler version 1.6.6 [2022/12/12] for 6502
Compiling hello.pas
An unhandled exception occurred at $000000000050A7EE:
                                                     EAccessViolation: Access violation
                                                                                         $000000000050A7EE
tebe6502 commented 1 year ago

fixed

zbyti commented 1 year ago

thx, works! :)