Write state to unused tape buffer
This commit is contained in:
parent
5508e77589
commit
9c71e8bbb0
2 changed files with 4 additions and 1 deletions
|
@ -38,6 +38,7 @@ BAUD_RATE = 300
|
||||||
rs_status_device_already_initialized = 4
|
rs_status_device_already_initialized = 4
|
||||||
.export rs_status
|
.export rs_status
|
||||||
rs_status: .byte 0
|
rs_status: .byte 0
|
||||||
|
; TODO add a state variable that can be monitored by the BASIC WAIT command
|
||||||
|
|
||||||
; entry points
|
; entry points
|
||||||
.code
|
.code
|
||||||
|
|
4
mem.cfg
4
mem.cfg
|
@ -5,6 +5,8 @@ MEMORY {
|
||||||
RAM: file = %O, start = $7000, size = $0800;
|
RAM: file = %O, start = $7000, size = $0800;
|
||||||
# if we reside in ROM instead, we should have more space available
|
# if we reside in ROM instead, we should have more space available
|
||||||
ROM: file = %O, start = $9000, size = $2000;
|
ROM: file = %O, start = $9000, size = $2000;
|
||||||
|
# usable memory from the "tape #1 input buffer"
|
||||||
|
SCRATCH: file = "", start = $027A, size = 191;
|
||||||
}
|
}
|
||||||
SEGMENTS {
|
SEGMENTS {
|
||||||
ZEROPAGE: load = ZP, type = zp;
|
ZEROPAGE: load = ZP, type = zp;
|
||||||
|
@ -13,5 +15,5 @@ SEGMENTS {
|
||||||
RODATA: load = RAM, type = ro;
|
RODATA: load = RAM, type = ro;
|
||||||
# data and bss should come after the code if they all reside in RAM
|
# data and bss should come after the code if they all reside in RAM
|
||||||
DATA: load = RAM, type = rw;
|
DATA: load = RAM, type = rw;
|
||||||
BSS: load = RAM, type = bss, define = yes;
|
BSS: load = SCRATCH, type = bss, define = yes;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue