Entry | |
---|---|
R1 | 81 (&51) |
R2 | Mode number, shadow bit clear |
R3 | Monitor type |
Exit | |
---|---|
R1-R3 | Preserved to pass on, else: |
R1 | 0 to claim service |
R2 | Substitute mode (mode number or mode Mode Selector Block) |
R3 | Preserved |
This service is issued by OS_CheckModeValid or a mode change when the monitor type is unknown by RISC OS, and the mode is not available with the current monitor type.
Implementors of Service_ModeTranslation should check to see if they recognise the input mode and monitor type, and then check to see if they know of any suitable substitute mode (e.g. with similar resolution and colour depth) which is supported by the hardware. If such a mode is found, they can claim the call and return the new mode in R2.
This call is only issued for mode numbers, not Mode Selector Blocks.