Tool: ZCPU - wiremod/wire GitHub Wiki
ZCPU
Tool: Function | Description |
---|---|
Purpose | An advanced virtual processor. |
Primary Fire | Creates CPU/Flashes Memory |
Secondary Fire | Opens Editor |
Reload | Enables/Disables Debugger |
Inputs
Input | Description |
---|---|
![]() |
Connect to Hi-Speed device intended to be addressable from the end of the CPU's internal memory. |
![]() |
Connect to Data Port (or other Hi-Speed device) to be addressable using ports. |
![]() |
Integer value of number of instructions to execute per tick. Default 2000, Max 1,400,000. |
![]() |
Restore the CPU's internal RAM from ROM and restart execution. |
![]() |
Cause an external interrupt of the inputted value. |
Outputs
Output | Description |
---|---|
![]() |
Outputs the current error information in the format ErrorNumber.ErrorAddress (See ZCPU/ErrorCodes), otherwise this outputs the number of the last executed interrupt. |
Description
The CPU is a fully-programmable advanced virtual processor based on the ZVM (like GPU and SPU). It emulates a realistic processor, and can be programmed using HL-ZASM, a C-like language with capability for embedded assembly code, which is then compiled to bytecode for use by the CPU.
Various tutorials are available on the forums.
For tutorials on using the CPU in your contraptions, see Category:ZCPU Tutorials. A handbook describing the CPU's features in-depth is at Category:ZCPU Handbook.
You can find a list of the currently known bugs in the issues tab.