A function which allows a machine code routine to return a value directly.
As with CALL, the processor's registers are initialised as follows:
- A is initialised to the least significant byte of A%
- B is initialised to the least significant byte of B%
- C is initialised to the least significant byte of C%
- D is initialised to the least significant byte of D%
- E is initialised to the least significant byte of E%
- F is initialised to the least significant byte of F%
- H is initialised to the least significant byte of H%
- L is initialised to the least significant byte of L%
USR returns a 32-bit integer result composed of the processor's H, L, H' and L' registers, with H being the most significant.
Syntax
<n-var>=USR(<numeric>)