write_register
Write a value to a CPU register while the target is halted. Specify register name and value to modify execution state.
Instructions
写入指定 CPU 寄存器。目标必须处于暂停状态。
Args: reg_name: 寄存器名,如 "PC"、"R0"、"SP"、"LR"(不区分大小写)。 value: 写入值,十六进制字符串如 "0x08001234" 或十进制字符串如 "1024"。
Returns: 写入结果。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reg_name | Yes | ||
| value | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |