port_write
Write a byte or word to an x86 I/O port to configure hardware, unchain Mode X, or control Hercules graphics.
Instructions
Write to an x86 I/O port. Width is 1 (byte) or 2 (word). For Mode X unchaining, Hercules graphics, hardware config.
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": {
"port": "<port>",
"value": "<value>"
},
"name": "port_write"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| port | Yes | I/O port address (0x0000..0xFFFF). | |
| value | Yes | Value to write. | |
| width | No | Width: 1 (byte) or 2 (word). Default 1. |