Reserve SHR mem in AUX

This commit is contained in:
David Schmenk committed 2026-04-04 14:07:21 -07:00
1 parent c23d7c3ed9
commit bc2fc3e432
2 files changed
+17 -8

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ import cmdsys
const resxhgr1 = $0040
const resxhgr2 = $0080
const nojitc = $0100
const resxshr = $0200
const vid80col = $0800
//
// Module don't free memory
+16 -8
View File
@@ -18,6 +18,7 @@ const reshgr2 = $0020
const resxhgr1 = $0040
const resxhgr2 = $0080
const nojitc = $0100
const resxshr = $0200
//
// Module don't free memory
//
@@ -980,16 +981,23 @@ def allocxheap(size)#1
xheap = xaddr + size
fin
fin
if systemflags & resxhgr1
if uword_islt(xaddr, $4000) and uword_isgt(xheap, $2000)
xaddr = $4000
if systemflags & resxshr
if uword_islt(xaddr, $A000) and uword_isgt(xheap, $2000)
xaddr = $A000
xheap = xaddr + size
fin
fin
if systemflags & resxhgr2
if uword_islt(xaddr, $6000) and uword_isgt(xheap, $4000)
xaddr = $6000
xheap = xaddr + size
else
if systemflags & resxhgr1
if uword_islt(xaddr, $4000) and uword_isgt(xheap, $2000)
xaddr = $4000
xheap = xaddr + size
fin
fin
if systemflags & resxhgr2
if uword_islt(xaddr, $6000) and uword_isgt(xheap, $4000)
xaddr = $6000
xheap = xaddr + size
fin
fin
fin
if uword_isge(xheap, xheaptop)