TIP: Click on subject to list as thread! ANSI
echo: cis.os9.68000.osk
to: LARRY OLSON 72227,3467 (X)
from: Bill Dickhaus 70325,523
date: 1993-04-14 08:02:13
subject: #17898-#C_error_help

#: 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.

SOURCE: compuserve via textfiles.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.