Menu

ReadMemory

Dilshan R Jayakody

Function

function ReadMemory(MLoc : Word) : byte;

Availability

  • In Revision 0 and newer versions

Description

This function returns the content of the specified memory address as a byte. It returns 0 if the specified memory address is beyond the VRAM address space limit.

Example

var
    memory_address : Integer;
    memory_content : byte;
begin    
    for memory_address := 3 to GetRAMSize() do 
    begin
        memory_content := ReadMemory(memory_address);
        Log('VRAM ADDRESS ' + IntToStr(memory_address) + ' = ' + IntToStr(memory_content));
    end;
end;

Related

Documentation: Virtual Machine Simulator Scripting Functions