set_register
Assign a value to a held PlayStation 2 program's register—general, PC, HI/LO, status, FPU, or VU0—to redirect execution, skip a breakpoint, or inject test values.
Instructions
Gives a register of a held program a value: a general register by its name (v0, a0, sp, ra...), pc, hi, lo or status; f0 to f31 or acc of the FPU, fcr31; hi1, lo1 or sa. Setting pc is how a program is sent on from somewhere else, past a break instruction of its own, say. A general register takes up to 128 bits; a negative value is sign-extended. An FPU register takes a number with a point in it, 1.5 or "1.5", as that number in single precision, and anything else as its bits. VU0's vf1 to vf31 take four numbers, x, y, z and w, as "1.0, 2.0, 3.0, 4.0", or 128 bits; vi1 to vi15 take 16 bits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"register": "<register>",
"value": "<value>"
},
"name": "set_register"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | ||
| register | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |