CT_PEEKSTR

 PEEKSTR()
 Reads a byte sequence from memory
------------------------------------------------------------------------------
 Syntax

     PEEKSTR(<nSegment|cHexSegment>, <nOffset|cHexOffset>,
        [<nLength|cHexLength>]) --> cCharacterString

 Arguments

     <nSegment|cHex>  Designates the segment address from which the
     character sequence string is read.  This value can be a decimal integer
     or hexadecimal string.

     <nOffset|cHexOffset>  Designates the offset address within the
     segment specified by <nSegment|cHexSegment>.  This value can be a
     decimal integer or hexadecimal string.

     <nLength|cHexLength>   Designates the string length to read, up to a
     maximum of 65520.  This value can be a decimal integer or a hexadecimal
     string.  The default, PEEKSTR(), reads to the first CHR(0).

 Returns

     PEEKSTR() returns the character string read from memory.

 Description

     PEEKSTR() reads an area of memory and returns it as a string.  The
     function reads to the first CHR(0) or the length specified through
     <nLength|cHexLength>.

 Example

     The AT BIOS copyright is found at the F000:0h address.  Therefore, each
     byte is repeated and CHARODD() is used to display it.  It reads to the
     first CHR(0):

     ? CHARODD(PEEKSTR("F000", 0))      // "19xx, 19xx Copyright...."

See Also: PEEKBYTE() PEEKWORD()

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.