From 9e2c7bc1dff8f0ddf2ce63fe0e5d8c631f85503e Mon Sep 17 00:00:00 2001 From: cuz Date: Thu, 26 Dec 2002 15:45:48 +0000 Subject: [PATCH] Moved jmpvec into a separate module git-svn-id: svn://svn.cc65.org/cc65/trunk@1848 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/runtime/Makefile | 1 + libsrc/runtime/condes.s | 8 +------- libsrc/runtime/jmpvec.s | 14 ++++++++++++++ 3 files changed, 16 insertions(+), 7 deletions(-) create mode 100644 libsrc/runtime/jmpvec.s diff --git a/libsrc/runtime/Makefile b/libsrc/runtime/Makefile index 4e0a20bfa..d2445ec4e 100644 --- a/libsrc/runtime/Makefile +++ b/libsrc/runtime/Makefile @@ -76,6 +76,7 @@ OBJS = add.o \ incsp6.o \ incsp7.o \ incsp8.o \ + jmpvec.o \ ladd.o \ laddeq.o \ laddeqsp.o \ diff --git a/libsrc/runtime/condes.s b/libsrc/runtime/condes.s index 36940530c..dbe6d01f8 100644 --- a/libsrc/runtime/condes.s +++ b/libsrc/runtime/condes.s @@ -12,14 +12,10 @@ ; 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 index 000000000..6ae8715ca --- /dev/null +++ b/libsrc/runtime/jmpvec.s @@ -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 + + -- 2.39.5