ezeio2:scriptref:getregister

This is an old revision of the document!


Get the value of a register

Description

GetRegister( deviceno, registerno )

Fetches the value of a register

Parameters

deviceno Device number (1-40)
registerno Which register to fetch

Return value

The value of the register

Example usage

    new x;
 
    AllocateRegisters(3, 8);        // Allocate eight registers for device 3    
    SetRegister(3, 1, 1234, INT);   // Set register 1 on device 3 to the value 1234
 
    x = GetRegister(3, 1);
 
    // x is now 1234    
  • ezeio2/scriptref/getregister.1560641780.txt.gz
  • Last modified: 2019-06-15 23:36
  • by andreh