12 of 318
ZBasic System Library 2 ZX Microcontroller Family Memory-related Routines BitCopy() copy a sequence of bits from one part of RAM to another BlockMove() copy data from one part of RAM to another GetBit() extract a bit from a value in RAM GetEEPROM() copy data from Program Memory to RAM GetPersistent() copy data from Persistent Memory to RAM GetProgMem() copy data from Program Memory to RAM MemAddress() determine the RAM address of a variable MemAddressU() determine the RAM address of a variable MemCmp() compare two blocks of data in RAM MemCopy() copy data from one part of RAM to another MemSet() initialize a block of memory with a byte value PersistentPeek() read a byte from Persistent Memory PersistentPoke() write a byte to Persistent Memory PutBit() set or clear a bit in a value in RAM PutEEPROM() copy data from RAM to Program Memory PutPersistent() copy data from RAM to Persistent Memory PutProgMem() copy data from RAM to Program Memory RamPeek() read a byte from RAM RamPeekDword() read a 32-bit value from RAM RamPeekWord() read a 16-bit value from RAM RamPoke() write a byte to RAM RamPokeDword() write a 32-bit value to RAM RamPokeWord() write a 16-bit value to RAM System.Alloc() allocate a block of memory System.Free() deallocate a block of memory System.HeapHeadRoom() determine the amount of unused space in the heap System.HeapSize() determine the amount of space reserved for the heap VarPtr() determine the RAM address of a variable String-related Routines Asc() extract a character value from a string Chr() convert a character value to a string Fmt() convert a Single value to a string LCase() convert upper case letters to lower case in a string Left() return the leftmost characters from a string Len() determine the number of characters in a string Mid() extract or set a substring in a string Right() return the rightmost characters from a string StrAddress() determine the address where string characters are stored StrCompare() compare two strings, optionally ignoring alphabetic case StrFind() search for the first occurrence of a string within a string StrReplace() replace character sequences in a string StrType() determine the characteristics of a string Trim() remove leading and trailing spaces from a string UCase() convert lower case letters to upper case in a string ValueI() convert string characters to the equivalent Integer value ValueL() convert string characters to the equivalent Long value ValueS() convert string characters to the equivalent Single value