]> git.sur5r.net Git - cc65/commitdiff
Moved jmpvec into a separate module
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 26 Dec 2002 15:45:48 +0000 (15:45 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Thu, 26 Dec 2002 15:45:48 +0000 (15:45 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@1848 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/runtime/Makefile
libsrc/runtime/condes.s
libsrc/runtime/jmpvec.s [new file with mode: 0644]

index 4e0a20bfab0929e6784152859d2a5dfe2cac91c0..d2445ec4efe8dd8859abaf32d5ea114b7b855d27 100644 (file)
@@ -76,6 +76,7 @@ OBJS =        add.o           \
        incsp6.o        \
        incsp7.o        \
        incsp8.o        \
+        jmpvec.o        \
                ladd.o          \
                laddeq.o        \
                laddeqsp.o      \
index 36940530c37fbaf154ed9756a0d38144d2b6e020..dbe6d01f86cf09a2eb0483c3658754cb30ef53c2 100644 (file)
 ; destructor tables, they must be called from the platform specific startup
 ; code.
 
-;
-; The function does also export jmpvec as general purpose jump vector that
-; lies in the data segment so it's address may be patched at runtime.
-;
 
                .export initlib, donelib, condes
-               .export jmpvec
 
+        .import jmpvec
                .import __CONSTRUCTOR_TABLE__, __CONSTRUCTOR_COUNT__
        .import __DESTRUCTOR_TABLE__, __DESTRUCTOR_COUNT__
 
@@ -98,6 +94,4 @@ index:        .byte   0
 getbyt:        lda     $FFFF,y
        rts
 
-jmpvec:        jmp     $FFFF
-
 
diff --git a/libsrc/runtime/jmpvec.s b/libsrc/runtime/jmpvec.s
new file mode 100644 (file)
index 0000000..6ae8715
--- /dev/null
@@ -0,0 +1,14 @@
+;
+; Ullrich von Bassewitz, 2002-12-26
+;
+; CC65 runtime: Jump vector that resides in the data segment so it's address 
+; may be patched at runtime.
+;
+
+               .export jmpvec
+
+.data
+
+jmpvec:        jmp     $FFFF
+
+