
Tool: ZCPU
Tool: ZCPU
Function
Description
Purpose
An advanced virtual processor.
Primary Fire
Creates CPU/Flashes Memory
Secondary Fire
Opens Editor
Reload
Enables/Disables Debugger
Inputs
Input
Description
MemBus
Connect to Hi-Speed device intended to be addressable from the end of the CPU's internal memory.
IOBus
Connect to Data Port (or other Hi-Speed device) to be addressable using ports.
Frequency
Integer value of number of instructions to execute per tick. Default 2000, Max 1,400,000.
Reset
Restore the CPU's internal RAM from ROM and restart execution.
Interrupt
Cause an external interrupt of the inputted value.
Outputs
Output
Description
Error
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 .