RISC OS Open

RISC OS  OPEN


A fast and easily customised operating system for devices using ARM processor cores.

Documentation: ColourTrans_GenerateTable

Programmer’s Reference Manuals
» Part 8 – Non-kernel input/output
» ColourTrans
» SWI Calls
» ColourTrans_GenerateTable

ColourTrans_ GenerateTable

(SWI &40763)

Entry
R0 Source mode
R1 Source palette pointer
R2 Destination mode, or -1 for current mode
R3 Destination palette pointer, or
  -1 for current palette, or
  0 for default for the current mode
R4 Pointer to buffer, or 0 to return length
R5 Select Table Flags (only used if R0 >= 256)
R6 Pointer to transfer function (if R0 => 256 and bit 2 of R5 is set)
R7 Pointer to transfer workspace (R12) (if R0 => 256 and bit 2 of R5 is set)

Exit
R0 Preserved
R1 Preserved
R2 Preserved
R3 Preserved
R4 Required size of buffer (if R4=0 on entry), or preserved
R5 Preserved
R6 Preserved
R7 Preserved

Use

The purpose of this call is to set up a translation table in a buffer that is used by scaled sprite plotting.

Notes

The SWI call assumes that R5 contains valid flags.

Both R6 and R7 are only used, if both;
  1. R0 => 256
  2. bit 2 of R5 is set

See also

   .