View Single Post
Old 22 July 2021, 00:06   #16
TCH
Newbie Amiga programmer
 
TCH's Avatar
 
Join Date: Jun 2012
Location: Front of my A500+
Age: 38
Posts: 372
Quote:
Originally Posted by ross View Post
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 View Post
Regardless, it is needed for it to work - I made that mistake so many times
I see, thanks.
Quote:
Originally Posted by roondar View Post
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 View Post
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 View Post
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?

Last edited by TCH; 22 July 2021 at 00:19.
TCH is offline  
 
Page generated in 0.07026 seconds with 11 queries