Quote:
Originally Posted by ross
The following code is the 'correct' version of what you tried to do.
|
Thanks, it is much more clearer. (Although i canot store the DMA value in d0, i need that register, so that will be changed.) What is this
LVO
prefix?
Quote:
Originally Posted by roondar
Regardless, it is needed for it to work - I made that mistake so many times
|
I see, thanks.
Quote:
Originally Posted by roondar
If you're aiming this at a standard A500 with a 68000, your variables need to be aligned to an address which is a multiple of two. If they aren't, you can get a crash. However, I can't be certain this is the case here because you didn't show the part of the code where you declare the variables. Something worth checking for sure.
|
You must be right, i am an idiot.
Quote:
Originally Posted by roondar
About error 121: this means your assembled program is not a proper executable. What VASM/VLINK flags are you using and what version of Kickstart/Workbench are you running your code on?
|
-Fhunkexe -nosym
KickStart 1.3, there is no WorkBench.
Quote:
Originally Posted by ross
This is a good point.
vasm require -kick1hunks to be KS1.x compatible, probably by default it generates reloc tables for KS2.0+ only.
I edited the code to be fully pc relative, so problem solved at the root.
|
Well, it only happened when i tried to access some variables, it worked without
-kick1hunks
, so roondar must be right about the alignment. If i use
-kick1hunks
, then it will not be usable under KS 2.0? (Although the targetted game itself has glitches over 1.3, so it is not recommended to run it on KS 2.0+ anyway.)
Edit: @ross: You open
graphics.library
, but do not call anything from it, you've removed the
WaitTOF
calls; if it is not needed, why open it?