title: "EnableAllRam" description: TRSE built-in method (from IDE help)
EnableAllRam
Systems: C64, MEGA65, PLUS4
Parameters: —
EnableAllRam();
Description
Enables reading/writing to all ram (including $D000-$DFFF). Sets the three first bits of memory address $01 to %100.
Note:Remember to restore the original memory config afterwards, or you won't be able to access the VIC
Example
var keep01: byte;
begin
....
// Store original memory config
keep01 := peek(^$01,0);
EnableAllRam();
// Decrunch something that is stored at $D000
Decrunch(my_image);
// Restore memory config
poke(^$01,0,keep01);
end;