1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-01 13:41:34 +00:00
cc65/libsrc/pce/call.s

17 lines
310 B
ArmAsm

;
; CC65 runtime: call function via pointer in ax
;
; 1998-08-06, Ullrich von Bassewitz
; 2018-02-28, Greg King
;
.export callax
.importzp ptr1
callax: sta ptr1
stx ptr1+1
; The PC-Engine puts the zero-page at $2000.
jmp (ptr1 + $2000) ; go there