LiteASM Documentation
Light Weight & Customizable Assembly Compiler & Virtual Machine
Status: Planning
Brought to you by:
dilshan
Function
function ReadMemory(MLoc : Word) : byte;
Availability
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;
Documentation: Virtual Machine Simulator Scripting Functions