We're looking for your comments on how to best organize the wiki's content.
IAG
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.
[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
- DCPU-16 specification v1.7 (Copyright 2012 Mojang)
| ||||||||

