aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2024-04-11 21:34:12 +0100
committerIan C <ianc@noddybox.co.uk>2024-04-11 21:34:12 +0100
commite12820746e064f366f8d10488941fdaee0f40e12 (patch)
tree43c37310f39c783493011de4caa14e6e45aca178 /src
parent5263696a44cc4f2c23e53dd68af0c66efd1fd896 (diff)
Turns out you do need the BASIC stub in a PRG. Updated docs and headers.
Diffstat (limited to 'src')
-rw-r--r--src/example/vic20.asm6
-rw-r--r--src/prgout.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/example/vic20.asm b/src/example/vic20.asm
index 8bb222d..2da53a2 100644
--- a/src/example/vic20.asm
+++ b/src/example/vic20.asm
@@ -18,6 +18,12 @@ main:
loop:
sta 36879
adc #1
+ pha
+ jsr $ffe4
+ beq nokey
+ rts
+nokey:
+ pla
jmp loop
start:
diff --git a/src/prgout.c b/src/prgout.c
index da14cae..39b70e1 100644
--- a/src/prgout.c
+++ b/src/prgout.c
@@ -19,7 +19,7 @@
-------------------------------------------------------------------------
- Commodore T64 tape output handler.
+ Commodore PRG output handler.
*/
#include <stdlib.h>