initial import, completely untested, does not compile yet
This commit is contained in:
19
libsrc/pcengine/call.s
Normal file
19
libsrc/pcengine/call.s
Normal file
@@ -0,0 +1,19 @@
|
||||
;
|
||||
; Ullrich von Bassewitz, 06.08.1998
|
||||
;
|
||||
; CC65 runtime: call function via pointer in ax
|
||||
;
|
||||
|
||||
.export callax
|
||||
|
||||
.code
|
||||
|
||||
callax:
|
||||
sta vec
|
||||
stx vec+1
|
||||
jmp (vec) ; jump there
|
||||
|
||||
.bss
|
||||
|
||||
vec:
|
||||
.res 2
|
||||
Reference in New Issue
Block a user