Re: [cc65] Question about writing assembler app for both C128 and C64

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2010-05-14 22:51:16
On Thu, May 13, 2010 at 10:15:05AM -0500, Payton Byrd wrote:
> 1) How to determine the current system.
> 2) How to configure the code so that it will load and run from the same
> executable on both platforms

What do you mean with that? Are you trying to distinguish between the C64 and
the C128, for example? If so, this will cause some problems, since the code
(if piggy-backed on a basic program, as with cc65 generated executables) will
run at different addresses, so it must be relocatable. Your best bet may
actually be to write it in BASIC, since it will then run on most if not all
CBM platforms, provided that you only use BASIC commands from earlier
versions.

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Fri May 14 22:51:31 2010

This archive was generated by hypermail 2.1.8 : 2010-05-14 22:51:33 CEST