Handbook
Glossary
n-bit-version-of ( register n -- register' )
CPU x86 registers and memory operands
Prev:
64-bit-version-of ( register -- register' )
Next:
native-version-of ( register -- register' )
Vocabulary
cpu
.
x86
.
assembler
.
operands
Inputs
register
a
register
n
an
integer
Outputs
register'
a
register
Word description
Returns a less wide version of the given register.
Definition
USING:
assocs
cpu.x86.assembler.syntax
kernel
layouts
namespaces
sequences
words
;
IN:
cpu.x86.assembler.operands
:
n-bit-version-of
( register n -- register' )
[
"register"
word-prop
]
dip
registers
get
at
nth
dup
extended-8-bit-register?
cell
4
=
and
[
drop
f
]
when
;