Access to RISC OS
Indirection
This library provides three tables that behave
as indirection operators:
! ? $
If x is a word-aligned address ![x] is the integer
stored at x.
If x is an address ?[x] is the byte stored at x,
and $[x] is the nul-terminated string stored at x.
Iteration over directories
It provides functions:
Arrays
x = riscos.dim(y)
If y is an integer this allocates y bytes of storage
and returns the word-aligned address, x, at which it
starts. If y is a string containing no nuls this stores
the string, with a nul terminator, and returns the
word-aligned address, x, at which it starts.
Software interrupts
r0,r1, .. = riscos.sys(swi,x0,x1, .. )
The first argument is the number or name of the SWI to be called.
The registers R0,R1, .. are loaded with the integer values x0,x1, ..
(or take their value from the last use of riscos.sys if the
argument is nil) and the SWI is called. The values in the registers
on exit are returned if the call succeeded. In case of error, nil
is returned, followed by an error message.
|
|
|