From: Alan Cox Date: Wed, 16 May 2018 21:47:31 +0000 (+0100) Subject: trs80: adjust crt0 so we reclaim all memory between buffers and common X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=cf589dacb393936208d3ae3bddb756a1b2e5111d;p=FUZIX.git 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 --- 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