|
|
| PeekBankString | ||
| String$ = PeekBankString(BankNumber, AddressOffset, Size) | ||
| Parameters: BankNumber = The Index Identifier of the bank that you wish to peek AddressOffset = The Address where you want to write this data to within the bank Size = Number of characters to read make this strnig from |
||
| Returns: String$ = The string your peeked from this bank |
||
PeekBankString allows you to peek (read) a string of characters from a memory bank. FACTS: * Setting the SIZE to zero makes the PeekBankString read a null terminated string. * Each character is stored in ASCII format and is a BYTE in size. So you can read/write the characters manually by using the PeekBankByte and PokeBankByte commands. * When a string is null terminated an extra zero byte is written into memory at the end. Mini Tutorial: This simple example creates a bank, stores the string "Hello World" in it, then reads this back again.
This example would output.
|
| Related Info: | CreateBank | NewBank | PeekBankByte | PeekBankFloat | PeekBankInt | PeekBankWord | PokeBankByte | PokeBankFloat | PokeBankInt | PokeBankString | PokeBankWord : |
|
|
|||||||||||||||||||||||||||||||||||||||
|
(c) Copyright 2002 - 2026 - Kevin Picone - PlayBASIC.com |