IIRC, some games for the Commodore 64 just disabled the kernal (which was mapped to address space $E000-$FFFF) to have 8 kilobytes of extra ram.
And much like with the C64, the BIOS maintains a memory map.
(KERNAL was very simple compared to what we think of as operating systems today -- only 8K, no virtual memory, and no processes.)
May be of interest for those that want more details.