Handbook
Glossary
encode-width ( reg -- sf/opc )
Vocabulary
cpu
.
arm
.
64
.
assembler
Inputs
reg
an
object
Outputs
sf/opc
an
object
Definition
IN:
cpu.arm.64.assembler
GENERIC:
encode-width
( reg -- sf/opc )
Methods
USING:
accessors
combinators
cpu.arm.64.assembler
;
M:
fp-register
encode-width
width>>
{
{
32
[
0
]
}
{
64
[
1
]
}
{
128
[
2
]
}
[
register-width-error
]
}
case
;
USING:
accessors
combinators
cpu.arm.64.assembler
;
M:
general-register
encode-width
width>>
{
{
32
[
0
]
}
{
64
[
1
]
}
[
register-width-error
]
}
case
;
USING:
accessors
cpu.arm.64.assembler
;
M:
operand
encode-width
register>>
encode-width
;
USING:
cpu.arm.64.assembler
kernel
;
M:
vector-register
encode-width
drop
1
;