From: cuz Date: Thu, 26 Dec 2002 15:45:48 +0000 (+0000) Subject: Moved jmpvec into a separate module X-Git-Tag: V2.12.0~1823 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9e2c7bc1dff8f0ddf2ce63fe0e5d8c631f85503e;p=cc65 Moved jmpvec into a separate module git-svn-id: svn://svn.cc65.org/cc65/trunk@1848 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 + +