From cf589dacb393936208d3ae3bddb756a1b2e5111d Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Wed, 16 May 2018 22:47:31 +0100 Subject: [PATCH] trs80: adjust crt0 so we reclaim all memory between buffers and common Previously we just clawed back discard, now we use all the space left over --- Kernel/platform-trs80/crt0.s | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Kernel/platform-trs80/crt0.s b/Kernel/platform-trs80/crt0.s index 722a72be..dc830672 100644 --- a/Kernel/platform-trs80/crt0.s +++ b/Kernel/platform-trs80/crt0.s @@ -70,6 +70,11 @@ start: ld bc, #l__BUFFERS - 1 ld (hl), #0 ldir + ld hl,#s__COMMONMEM + ld de,#s__DISCARD + or a + sbc hl,de + ld (_discard_size),hl call init_early call init_hardware call _fuzix_main @@ -79,4 +84,4 @@ stop: halt .area _DISCARD _discard_size: - .dw l__DISCARD + .dw 0 -- 2.34.1