PokeBankWord
PokeBankWord BankNumber, AddressOffset, WordValue
 
Parameters:

    BankNumber = The Index Identifier of the bank that you wish to poke
    AddressOffset = The Address where you want to write this data to within the bank
    WordValue = The value you wish to store in this memory bank at the above address offset
Returns: NONE
 

     PokeBankWord will poke (write) a 16bit word value from a memory bank.



FACTS:


     * 16Bit words can represent a numeric range of 0 to 65535
     * 16bit words values are NOT signed.
     * 16bit words are 2 bytes wide
     * Two 16bit words are the same lengh in bytes as a 32bit Integer.




Mini Tutorial:


      This simple example Creates a bank, Pokes two WORD values in, then peeks the out to display them.

  
  
; Create Memory Bank #1 and make it 1000 bytes in size
  CreateBank 1,1000
  
  
; Store some 16bit WORD values into the bank
;===========================================
  
; Poke the integer value 65000 into memory bank 1 at
; address offset 500
  
  PokeBankWord 150065000
  
; Poke next WORD value 23799 at 502. So it doesn't overwrite
; the previous poke.
  
  PokeBankWord 150223799
  
  
; Read and Display the previously poked value again.
  Print "Your Value:"+Str$(PeekBankWord(1,500))
  
; Read and Display the previously poke value again.
  Print "Your Value:"+Str$(PeekBankWord(1,502))
  
  
; Display the Screen and wait for the user to press a key
  Sync
  WaitKey
  
  



This example would output.

  
  Your Value: 65000
  Your Value: 23799
  


 
Related Info: CreateBank | Dim | NewBank | PeekBankByte | PeekBankFloat | PeekBankInt | PeekBankString | PeekBankWord | Pointer | PokeBankByte | PokeBankFloat | PokeBankInt | PokeBankString | Word :
 


(c) Copyright 2002 - 2024 - Kevin Picone - PlayBASIC.com