AcornSearch - Acorn and RISC OS information searching
RISC OS Search
containing
"Nutty quip goes here!"
Home  |  About  |  Filebase Archive  |  StrongHelp Manuals  |  Newsgroups  |  Module Database
=>     R0 =     Initialisation type
           /Bits/     /Value/     /Meaning/
           0     0     white on black
                 1     black on white
           1     0     perspective factor -11 (i.e. axonometric)
                 1     perspective factor +11
     R1 !     Picture structure to initialise
     R2 =     Size of area available
<=     R0 =     Version number of Euclid  100

As a special case R0=-1 on entry simply updates the Modules current block pointer value. It is necessary to make this call in a multitasking program.

Example code
Euclid_Initialise Example code
To allocate a block of memory at BLOCK% of size 50000 for Euclid's use:
DIM block% 50000
SYS "Euclid_Initialise",,block%,50000

To re-establish Euclid's block pointer (assuming R1=0 is the preferred method):
SYS "Wimp_Poll",,wimpblock% TO code%
SYS "Euclid_Initialise",-1,block%

[sh-index] Back to list of manuals