dcpu16-emulator ~master (2014-06-26T15:05:24Z)
Dub
Repo
getOperandValue
emulator
dcpu
instruction
Extracts operand value from a dcpu
OperandAccess
getOperandValue
(
bool
isA
Cpu
)
(
ref
Cpu
dcpu
,
ushort
operandBits
,
ref
ushort
pc
,
ref
ushort
sp
)
in { assert (operandBits <= 0x3F, "operand must be lower than 0x40"); static if (!isA) assert (operandBits <= 0x1F); }
Meta
Source
See Implementation
emulator
dcpu
instruction
functions
getOperandValue
Extracts operand value from a dcpu