Propeller Manual

Table Of Contents
HUBOP – Assembly Language Reference
Page 294 · Propeller Manual v1.1
HUBOP
Instruction: Perform a hub operation.
HUBOP Destination, # Operation
Result: Varies depending on the operation performed.
Destination (d-field) is the register containing a value to use in the Operation.
Operation (s-field) is a register or a 3-bit literal that indicates the hub operation to
perform.
Opcode Table:
–INSTR– ZCRI –CON– –DEST– –SRC– Z Result C Result Result Clocks
000011 000i 1111 ddddddddd sssssssss
Result = 0 --- Not Written 7..22
Concise Truth Table:
(Not specified because it varies with each hub operation. See
CLKSET, page 271; COGID, page
283;
COGINIT, page 284; COGSTOP, page 286; LOCKNEW, page 304; LOCKRET, page ; LOCKSET
306
T 305 T,
page , and
LOCKCLR, page .) 303
Explanation
HUBOP is the template for every hub operation instruction in the Propeller chip: CLKSET, T COGID,
COGINITT, COGSTOP, LOCKNEW, LOCKRET, T LOCKSET, and LOCKCLR. The instructions that perform hub
operations set the Operation field (s-field of the opcode) to the 3-bit immediate value that
represents the desired operation (see the opcode of each hub instruction’s syntax description
for more information). The
HUBOP instruction itself should rarely be used, but may be handy
for special situations.
HUBOP is a hub instruction. Hub instructions require 7 to 22 clock cycles to execute depending
on the relation between the cog’s hub access window and the instruction’s moment of
execution. See Hub on page 24 for more information.