From 4a7a766aa84928fa83c625a787ce4e69b57e33bc Mon Sep 17 00:00:00 2001 From: Mattias Hansson Date: Fri, 17 Apr 2026 16:53:41 +0200 Subject: [PATCH] Updated script_library_demo.c65 so it does at least something --- examples/script_library_demo/script_library_demo.c65 | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/examples/script_library_demo/script_library_demo.c65 b/examples/script_library_demo/script_library_demo.c65 index f7221e5..4d6a8fd 100644 --- a/examples/script_library_demo/script_library_demo.c65 +++ b/examples/script_library_demo/script_library_demo.c65 @@ -54,10 +54,12 @@ ENDSCRIPT // Macro with label parameter (passed as string) SCRIPT MACRO set_irq(handler) + print(" sei") print(" lda #<%s" % handler) - print(" sta $fffe") + print(" sta $0314") print(" lda #>%s" % handler) - print(" sta $ffff") + print(" sta $0315") + print(" cli") ENDSCRIPT //----------------------------------------------------------- @@ -96,8 +98,6 @@ LABEL start LABEL my_handler ASM - pha inc $d020 - pla - rti + jmp $ea31 ENDASM