-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
something wrong with the compilation: Illegal addressing mode (CPU 6502) #35
Comments
It looks like the compiler can't handle a nested "SHL" instruction. modulate[winShift+winPos]:=modulate[winShift+winPos] and $0f or (v shl 4); If I move the "SHL" operations outside this area, everything is OK. v:=v shl 4;
modulate[winShift+winPos]:=modulate[winShift+winPos] and $0f or v; |
i can't reproduce this issue probably you use old compiler version, current 165 works fine |
var
vol_dist is an array[0..127] of byte;
winShift,winPos:smallint;
v:byte; I will try a newer version. |
It turns out that I'm using version 1.6.4, and the error is still showing. |
In Mad Pascal world most stable version is ALWAYS master branch. |
@GSoftwareDevelopment this issue is solved and ready to close with with MP 1.6.5? |
Suddenly I got this message during compilation:
This is for the following source line:
Compilation result:
I'll add that I didn't change anything at this point and this (source) code worked. What is wrong?
The text was updated successfully, but these errors were encountered: