mirror of
https://github.com/cc65/cc65.git
synced 2024-11-18 00:07:21 +00:00
17 lines
310 B
ArmAsm
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
|