Give the system another page of each memory

CosmOS had 1,161 bytes of Program Memory left before the address applications
load at, and Tab completion is not going to fit in that with anything to spare.
So the wall moves up one page: the system keeps below 0x4FFF and 0x2FFF, and an
application is based at 0x5000 and 0x3000.

A PAGE IS A CHEAP THING TO GIVE IT AND AN EXPENSIVE THING TO RUN OUT OF. An
application still has 44K of Program Memory before the vector table and the
largest one here uses 7.5K, so what was taken from applications is space nothing
has ever asked for - while what the system gained is the difference between
building the next thing and counting bytes while building it.

Not doubling, which was the version that would have cost application space worth
minding. One page, and the same again when it is needed.

Nothing in the machine knows where the wall is, so this is 34 #Base lines, one
threshold in the fault handler, and the table in the CosmOS README that
Tests/docs.sh reads its limits out of.

The native assembler's scratch map had to move with it, and docs.sh said so
before anything ran: its data reached 0x40D6 and its buffers began at 0x4000, so
they were sitting on its variables. That file already carries a paragraph about
the floor coming up and the map staying where it was. It has happened twice now,
and been caught by a check the first time wrote.

Twenty three recordings are the same runs a page higher.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E2JrLzFvuFX9fgi1LDRjrW
This commit is contained in:
Anachronaut
2026-09-01 16:49:12 -04:00
co-authored by Claude Opus 5
parent f97d15de08
commit 3449405b18
59 changed files with 148 additions and 140 deletions
+16 -16
View File
@@ -6,30 +6,30 @@ b <program|data|number>
* b 9
there is no such bank
* load greet.sbx
loaded, starting at 4000
loaded, starting at 5000
* b program
bank 00
* d 4000
4000 47 00 20 00 SETD.0 2000
4004 72 10 SWI 10
4006 47 00 20 44 SETD.0 2044
400A 72 10 SWI 10
400C 47 00 20 7A SETD.0 207A
4010 27 1F INIB 1F
4012 72 11 SWI 11
4014 47 00 20 5D SETD.0 205D
4000 00 ?
4001 00 ?
4002 00 ?
4003 00 ?
4004 00 ?
4005 00 ?
4006 00 ?
4007 00 ?
* x 4000
4000 47 00 20 00 72 10 47 00 20 44 72 10 47 00 20 7A G. .r.G. Dr.G. z
4010 27 1F 72 11 47 00 20 5D 72 10 47 00 20 7A 72 10 '.r.G. ]r.G. zr.
4020 47 00 20 65 72 10 20 72 12 00 00 00 00 00 00 00 G. er. r........
4000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
4010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
4020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
4030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
* b data
bank 01
* x 2000
2000 61 20 70 72 6F 67 72 61 6D 2C 20 6C 6F 61 64 65 a program, loade
2010 64 20 6F 66 66 20 61 20 64 69 73 6B 2C 20 72 75 d off a disk, ru
2020 6E 6E 69 6E 67 20 6F 6E 20 74 68 65 20 73 79 73 nning on the sys
2030 74 65 6D 20 74 68 61 74 20 6C 6F 61 64 65 64 20 tem that loaded
2000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2010 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2020 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
2030 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
* b 2
bank 02
* x 0