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

IAG

From 0x10c Wiki
Jump to: navigation, search

IAG (Interrupt Address Get) is one of the Special opcodes in the DCPU-16 specification. It fetches the value of the IA register.

[edit] Usage

 IAG arg1

Sets arg1 to IA.

This value can be used to indicate whether interrupts are enabled (if non-zero) or disabled (if zero). If enabled, an interrupt will either be handled immediately after the current instruction, or queued (depending on whether interrupt queueing has been enabled or disabled - this is a separate setting). If disabled, all interrupts will be ignored and forgotten.

To change IA, use IAS.

[edit] Processing

In binary machine code, this Special opcode's five-bit representation is: 0b0 1001 (0x09)

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

[edit] References

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox