Entry | |
---|---|
R0 | Workspace pointer |
+0 PC at which the error occurred | |
+4 Error number | |
+8 Error message text |
Called by the default claimant of ErrorV when an error occurs.
This handler is entered in user mode with the workspace pointer in R0, as opposed to the conventional R12.
The block should allow for up to 260 bytes, 4 for the erroring program counter plus 256 for a standard RISC OS error block. Note that the printed PRM is vague in specifying a “256 byte error buffer”, so currently the kernel truncates the error message text to 252 bytes, however this should not be relied upon.