System call exception (System Call)
The following can be specified as vector:
This instruction calls the system service of an OS.
Saves the contents of the return PC (address of the instruction next to the syscall instruction) and PSW to EIPC and EIPSW. |
Stores the exception cause code corresponding to vector in the EIIC register. |
Loads the word of the address generated in (4). |
Generates a 32-bit target address by adding the value of the SCBP register to the data in (5). |
Branches to the target address generated in (6). |
If an absolute expression having a value exceeding the range of 0 to 255 is specified as vector, the assembler outputs the following message and continues assembling by using the lower 8 bitsNote of the specified value. |
The syscall machine instruction takes an immediate value in the range of 0 to 255 (0x0 to 0xFF)as the operand. |
This instruction is dedicated to calling the system service of an OS. For how to use it in the user program, see the Function Specification of each OS. |