Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion source/system.f256/memory/memory.flat/memory.asm
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ maxUsablePages: ; runtime max logical pages (updated by LOMEM)

ProgramPage0 = BasicStart >> 13 ; physical page for slot 1 at boot (identity mapping)
FirstFreePage = 48 ; first safe physical page for program data ($60000)
MaxPhysPage = 64 ; 512KB = 64 × 8KB pages
MaxPhysPage = 59 ; highest usable 8KB page: RAM has 64 pages ($00-$3f), top 4 ($3c-$3f) reserved for the 2-bank NMI break monitor (screen save ×2 + code ×2)
_AvailablePages = MaxPhysPage - FirstFreePage + 1 ; dynamic pages + page 0
.if _AvailablePages < MaxPages
MaxUsablePages = _AvailablePages
Expand Down