From 9c71e8bbb0d96d718f4245f1a51169940658124d Mon Sep 17 00:00:00 2001 From: Gregor Riepl Date: Sat, 20 Aug 2022 20:31:48 +0200 Subject: [PATCH] Write state to unused tape buffer --- driver.a65 | 1 + mem.cfg | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/driver.a65 b/driver.a65 index 95ede2a..bc3f0e0 100644 --- a/driver.a65 +++ b/driver.a65 @@ -38,6 +38,7 @@ BAUD_RATE = 300 rs_status_device_already_initialized = 4 .export rs_status rs_status: .byte 0 + ; TODO add a state variable that can be monitored by the BASIC WAIT command ; entry points .code diff --git a/mem.cfg b/mem.cfg index cc187ae..01381c0 100644 --- a/mem.cfg +++ b/mem.cfg @@ -5,6 +5,8 @@ MEMORY { RAM: file = %O, start = $7000, size = $0800; # if we reside in ROM instead, we should have more space available ROM: file = %O, start = $9000, size = $2000; + # usable memory from the "tape #1 input buffer" + SCRATCH: file = "", start = $027A, size = 191; } SEGMENTS { ZEROPAGE: load = ZP, type = zp; @@ -13,5 +15,5 @@ SEGMENTS { RODATA: load = RAM, type = ro; # data and bss should come after the code if they all reside in RAM DATA: load = RAM, type = rw; - BSS: load = RAM, type = bss, define = yes; + BSS: load = SCRATCH, type = bss, define = yes; }