Handbook
Glossary
immediate-1/4 ( dst imm reg,rex.w,opcode -- )
Vocabulary
cpu
.
x86
.
assembler
.
private
Inputs
dst
dst
imm
imm
reg,rex.w,opcode
a
sequence
Outputs
None
Word description
If imm is a byte, compile the opcode and the byte. Otherwise, set the 8-bit operand flag in the opcode, and compile the cell. The 'reg' is not really a register, but a value for the 'reg' field of the mod-r/m byte.
Definition
USING:
kernel
;
IN:
cpu.x86.assembler.private
:
immediate-1/4
( dst imm reg,rex.w,opcode -- )
over
fits-in-byte?
[
immediate-fits-in-size-bit
immediate-1
]
[
immediate-4
]
if
;