1
0
mirror of https://github.com/cc65/cc65.git synced 2024-12-22 12:30:41 +00:00

Moved jmpvec into a separate module

git-svn-id: svn://svn.cc65.org/cc65/trunk@1848 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2002-12-26 15:45:48 +00:00
parent 05c990795e
commit 9e2c7bc1df
3 changed files with 16 additions and 7 deletions

View File

@ -76,6 +76,7 @@ OBJS = add.o \
incsp6.o \ incsp6.o \
incsp7.o \ incsp7.o \
incsp8.o \ incsp8.o \
jmpvec.o \
ladd.o \ ladd.o \
laddeq.o \ laddeq.o \
laddeqsp.o \ laddeqsp.o \

View File

@ -12,14 +12,10 @@
; destructor tables, they must be called from the platform specific startup ; destructor tables, they must be called from the platform specific startup
; code. ; 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 initlib, donelib, condes
.export jmpvec
.import jmpvec
.import __CONSTRUCTOR_TABLE__, __CONSTRUCTOR_COUNT__ .import __CONSTRUCTOR_TABLE__, __CONSTRUCTOR_COUNT__
.import __DESTRUCTOR_TABLE__, __DESTRUCTOR_COUNT__ .import __DESTRUCTOR_TABLE__, __DESTRUCTOR_COUNT__
@ -98,6 +94,4 @@ index: .byte 0
getbyt: lda $FFFF,y getbyt: lda $FFFF,y
rts rts
jmpvec: jmp $FFFF

14
libsrc/runtime/jmpvec.s Normal file
View File

@ -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