Browsing Wiremod's section
← Back to ACE
🔁

Mirrored article

This page is synced automatically from the wiremod/wire GitHub wiki (last synced 1 hour ago). Edits made here will be overwritten on the next sync — contribute on the source wiki instead.

Tool: ZCPU

Tool: ZCPU

📁 ControlUpdated 1 hour ago•0 views
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 Mem

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 .

Was this article helpful?

See More

Discussion(0)

No comments yet. Be the first to ask a question!

Have a question? Sign in to join the discussion.