Badwolf wrote: 24 Nov 2022 15:36
This is what MAPROM2.2 does:-
What I read from the asm:
- tries to publish physical TTRAM to TOS via maddalt (not sure where it gets its size info from, but it looks like the address is hardcoded probably to 16mb)
- bails out if this version of TOS doesn't understand the maddalt() request
- mxalloc's 64kb of STRam for _FRB (bails on failure or unsupported)
- writes a _FRB cookie with the new address (not clear if it checks for existing one first, or if it modifies existing one - probably not)
- updates memtop and writes the 'ttram valid' magic (to survive warm resets)
- quits as TSR, retaining code & all allocs
(I think mfro answered the TSR question already)