We're looking for your comments on how to best organize the wiki's content.

SET

From 0x10c Wiki
Jump to: navigation, search

SET is one of the opcodes in the DCPU-16 specification. It represents copying a value into a register or a memory location.

[edit] Usage

 SET loc, val

SET sets loc to the value val.

[edit] Processing

In binary machine code, this Basic opcode's five-bit representation is: 0b0 0001 (0x01)

The instruction has a takes one cycle to execute, plus any additional cycles necessary to evaluate the arguments.

[edit] References

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox