Wired Data Port
From GMod Wiki
Wiremod Tool | Back |
Function: | Hi-speed device used to create ports for Wired CPU |
Primary fire: | Create/Update data ports unit. |
Secondary fire: | No action. |
Reload: | No action. |
Notes: | - |
Brief
The wired data port is a high speed device that is used to interface a high-speed system, such as a Wired CPU or GPU, to low-speed devices.
Instructions
Link CPU IOBus input to any output of data port, and then you can access ports via "mov x,y" in ZASM (where x or y are "port" and number of port, i.e. port0, port6), or inport/outport functions in ZC.
Inputs
- Port0-Port7: Values which can be read by reading from addresses 0-7 on the hi-speed bus (via "mov ...,port<port number>;" on Wired CPU/GPU, or "inport(<port number>)" in ZC)
Outputs
- Port0-Port7 Values which are changed by writing to addresses 0-7 on the hi-speed bus (via "mov port<port number>,...;" on Wired CPU (the GPU cannot output values), or "outport(<port number>,...)" in ZC)
Variables
- None
Useful hints
- Ports tend to be a lot slower than hi-speed devices, and sometimes it will ignore values that are outputted too fast.