From ae922930a141fcccb41b665ed18ffe1e22bd5126 Mon Sep 17 00:00:00 2001 From: uz Date: Sat, 13 Nov 2010 16:56:42 +0000 Subject: [PATCH] New module that contains the load address expected by the Commodore machines in the first two bytes of a file loaded with LOAD. git-svn-id: svn://svn.cc65.org/cc65/trunk@4855 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/cbm/Makefile | 1 + libsrc/cbm/loadaddr.s | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 libsrc/cbm/loadaddr.s diff --git a/libsrc/cbm/Makefile b/libsrc/cbm/Makefile index 99bf8c1d4..a012eb3ee 100644 --- a/libsrc/cbm/Makefile +++ b/libsrc/cbm/Makefile @@ -71,6 +71,7 @@ S_OBJS = c_acptr.o \ gotoxy.o \ gotoy.o \ initcwd.o \ + loadaddr.o \ open.o \ oserrlist.o \ oserror.o \ diff --git a/libsrc/cbm/loadaddr.s b/libsrc/cbm/loadaddr.s new file mode 100644 index 000000000..0675dd67d --- /dev/null +++ b/libsrc/cbm/loadaddr.s @@ -0,0 +1,16 @@ +; +; Ullrich von Bassewitz, 2010-11-13 +; +; This module supplies the load address that is expected by Commodore +; machines in the first two bytes of an excutable disk file. +; + + + ; The following symbol is used by linker config to force the module + ; to get included into the output file + .export __LOADADDR__: absolute = 1 + +.segment "LOADADDR" + + .addr *+2 +