From 92755c62877718fe8255a5a238bc4107bc636e01 Mon Sep 17 00:00:00 2001 From: jespergravgaard Date: Mon, 9 Aug 2021 00:51:28 +0200 Subject: [PATCH] Added support for indirect calls to advanced expressions through a new fragment type. Closes #708 --- src/main/fragment/mos6502-common/call__deref_pprz1.asm | 3 +++ src/main/fragment/mos6502-common/call_vprc1.asm | 1 + 2 files changed, 4 insertions(+) create mode 100644 src/main/fragment/mos6502-common/call__deref_pprz1.asm create mode 100644 src/main/fragment/mos6502-common/call_vprc1.asm diff --git a/src/main/fragment/mos6502-common/call__deref_pprz1.asm b/src/main/fragment/mos6502-common/call__deref_pprz1.asm new file mode 100644 index 000000000..d678fe7f3 --- /dev/null +++ b/src/main/fragment/mos6502-common/call__deref_pprz1.asm @@ -0,0 +1,3 @@ +jsr {la1} +icall: @outside_flow +jmp ({z1}) @outside_flow \ No newline at end of file diff --git a/src/main/fragment/mos6502-common/call_vprc1.asm b/src/main/fragment/mos6502-common/call_vprc1.asm new file mode 100644 index 000000000..0fd13c7be --- /dev/null +++ b/src/main/fragment/mos6502-common/call_vprc1.asm @@ -0,0 +1 @@ +jsr {c1} \ No newline at end of file