]> git.sur5r.net Git - cc65/commitdiff
callptr4
authorLauri Kasanen <cand@gmx.com>
Mon, 1 May 2017 17:12:18 +0000 (20:12 +0300)
committerLauri Kasanen <cand@gmx.com>
Mon, 1 May 2017 18:08:03 +0000 (21:08 +0300)
libsrc/runtime/callptr4.s [new file with mode: 0644]

diff --git a/libsrc/runtime/callptr4.s b/libsrc/runtime/callptr4.s
new file mode 100644 (file)
index 0000000..9a15609
--- /dev/null
@@ -0,0 +1,10 @@
+;
+; CC65 runtime: call function via pointer in ptr4
+;
+
+        .export         callptr4
+        .importzp       ptr4
+
+callptr4:
+        jmp     (ptr4)          ; jump there
+