#: 17911 S12/OS9/68000 (OSK)
14-Apr-93 08:02:13
Sb: #17898-#C_error_help
Fm: Bill Dickhaus 70325,523
To: LARRY OLSON 72227,3467 (X)
Larry,
> lea _64(pc),a0 <-- Here is the VALUE OUT OF RANGE ERROR
This is the problem, and it has nothing to do with variables. If you look
toward the end of the assembler code, I think you will find that _64 is the
label of the "/w" constant. This instruction puts the address of that constant
in a0. The problem is that the compiler puts all string constants (like "/w")
at the end of the module, there is no way to get around this (that I know of)
other than make the modules smaller. As soon as you add more code, it will push
the constants beyond the 64K limit, and this will happen again.
I strongly suggest that you take the time now to learn how to use the linker
and make. It will actually save you time, as you won't be compiling one large
module each time you make a change. I'd be happy to provide some sample make
files, and there are pleny of people around to help out. Once you learn how to
use make, and the linker, you will never go back :-)
-Bill-
There is 1 Reply.
|