[cc65] Atari port of cc65

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2000-03-08 21:35:47


									 
The following message was directed to the list, but bounced because it had
some archive files as attachments and was larger than the maximum allowed size
of 400000 bytes. I have placed the archives on the musoftware ftp server:

	ftp://www.musoftware.de/pub/uz/cc65/atari/

Thanks a lot!


Original message was:
------------------------------------------------------------------------
From: Mark Keates <markk_at_dendrite.co.uk>
To: "'CC65 Mailing'" <cc65_at_musoftware.de>
Subject: Atari port of CC65
Date: Wed, 8 Mar 2000 09:23:59 -0500

Dear all,

The current state of the Atari library is attached as follows:

includes.zip : contains atari.h and an updated conio.h
to simply include the atari.h header. Extract this
to the include folder.

atarilib.zip : source code for lib/atari (clear this first).
You'll need to update the Makefile in the lib folder to
include an atarilib section as follows:

atarilib:
	export CFLAGS="-Osir -g -t atari -I../../include";\
	for i in atari common runtime conio dbg ; do \
	    $(MAKE) -C $$i;\
	done
	mv atari/crt0.o atari.o
	for i in atari common runtime conio dbg ; do \
	    $(AR) a atari.lib $$i/*.o;\
	done

(Note: Its also a good idea to run a clean in each of the library
subfolders too!)

hello.zip: Example file. Modified to set the colours AFTER the
clear-screen. (this is currently a Gr.0 rather that an actual
clear) and I've shrunk the X border by 2 to stop the screen corrupting
after displaying the the 39th column. 'Make' the program 'hello'
and then run it through Atari800Win using the 'Load from file' option.

We have settled on the following memory layout (for now)
which you can build into your LD65 by defining 'CfgAtari' in
'target.c' and rebuilding:

static const char CfgAtari [] =
    "MEMORY { RAM: start = $1FFA, size = $6006, file = %O, define = yes; }"
    "SEGMENTS { "
        "CODE: load = RAM, type = ro;"
        "RODATA: load = RAM, type = ro;"
        "DATA: load = RAM, type = rw;"
        "BSS: load = RAM, type = bss, define = yes;"
    "}";

Let me know how you get on.

Regards,

Mark Keates.

 <<atarilib.zip>>  <<hello.zip>>  <<includes.zip>>

--
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:35 CET