Made two indirect jumps through the zero-page go through page $20 on the PC-Engine.
This commit is contained in:
14
libsrc/pce/callptr4.s
Normal file
14
libsrc/pce/callptr4.s
Normal file
@@ -0,0 +1,14 @@
|
||||
;
|
||||
; CC65 runtime: call function via pointer in ptr4
|
||||
;
|
||||
; 2018-02-28, Greg King
|
||||
;
|
||||
|
||||
.export callptr4
|
||||
.importzp ptr4
|
||||
|
||||
callptr4:
|
||||
|
||||
; The PC-Engine puts the zero-page at $2000.
|
||||
|
||||
jmp (ptr4 + $2000)
|
||||
Reference in New Issue
Block a user