|
Post by vetea on Sept 9, 2015 12:13:22 GMT -5
Hi all, For now all is ok with my code, but today, I want to work with, I compile a new version and I have this error : I see in a old post the same problem : I have to move all Sub and Function to the TOP of the code ( behind the Variable's declaration ), that what I do, but I have always this error. The code is not very big : 1570 lines only ( without DATALONG graphics ) As I read, I have to change also, all Bsr by a Jsr. But how can I edit and change the Asm's compiled code ? Do you have some tools with link for ? Thanks a lot, I really need help for that. Greetings.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 9, 2015 12:52:04 GMT -5
That seems to happen when functions are outside of the 32kb code block. If you can, change all functions to subs, use global variables, and put the subroutines at the bottom of the code (before rom data) and see if that helps.
|
|
|
Post by vetea on Sept 9, 2015 12:55:01 GMT -5
Ok, I find the solution for now : 1/ I edit the Basic.S. 2/ I change all Bsr allign_heap2 by Jsr allign_heap23/ I compile the Basic.S with AsmX : AsmX Basic.S with the console, it works ! Well I hope this solution will be useful for the future, but I have to compile the code manually ...
|
|
|
Post by vetea on Sept 9, 2015 12:56:45 GMT -5
That seems to happen when functions are outside of the 32kb code block. If you can, change all functions to subs, use global variables, and put the subroutines at the bottom of the code (before rom data) and see if that helps. Hey thanks Elusive ! I always use Global Variable and I use just one function with my new project, I try to change it to Subs as you say. The Subroutines are always to the bottom too ! Thanks for your tips friend !
|
|
|
Post by vetea on Sept 9, 2015 13:05:09 GMT -5
You are right Elusive, I had only a little function and I change with a Sub : it Works too !! Damn good !
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Sept 9, 2015 13:08:54 GMT -5
Woo! Glad to be of help, sir (I literally ran into this issue 2 weeks ago and found the one thread here on it, I think Titan was the one who pointed people in the right direction, so I can't take credit for that solution)
|
|