Handbook
Glossary
incr-stack-reg ( n -- )
CPU x86 compiler backend
Prev:
decr-stack-reg ( n -- )
Vocabulary
cpu
.
x86
Inputs
n
a
number
Outputs
None
Word description
Emits an instruction for incrementing the stack register the given number of bytes. If n is equal to the
cell
size, then a
POP
instruction is emitted instead because it has a shorter encoding.
Definition
USING:
cpu.x86.assembler
kernel
layouts
math
;
IN:
cpu.x86
:
incr-stack-reg
( n -- )
[
dup
cell
=
[
drop
pic-tail-reg
POP
]
[
stack-reg
swap
ADD
]
if
]
unless-zero
;