]> git.sur5r.net Git - cc65/commitdiff
New module that contains the load address expected by the Commodore machines
authoruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 13 Nov 2010 16:56:42 +0000 (16:56 +0000)
committeruz <uz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Sat, 13 Nov 2010 16:56:42 +0000 (16:56 +0000)
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
libsrc/cbm/loadaddr.s [new file with mode: 0644]

index 99bf8c1d43132d76ecd12a622755f19f4eb8aadb..a012eb3ee8deb715f7b893c04a7b05a7dff1353f 100644 (file)
@@ -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 (file)
index 0000000..0675dd6
--- /dev/null
@@ -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
+