229 of 323
ZBasic System Library 219 ZX Microcontroller Family PutProgMem Type Subroutine Invocation PutProgMem(addr, var, count) Parameter Method Type Description addr ByVal Long The Program Memory address to which to begin writing. var ByRef any type The variable from which the data to be written will be taken. count ByVal int16 The number of bytes to write. Discussion This routine writes one or more bytes to Program Memory (where the user program is stored) taking the data from RAM beginning at the location of the specified variable. Note that if a number of bytes is specified that is larger than the given variable, adjacent memory will be read. Caution Program Memory has a write cycle limit specified by the manufacturer of a million cycles. Writing to a particular address in excess of this limit may result in unreliable operation. See Also GetProgMem