Handbook
Glossary
cb-branch ( rs imm opcode -- )
Vocabulary
cpu
.
riscv
.
64
.
assembler
Inputs
rs
an
object
imm
an
object
opcode
an
object
Outputs
None
Definition
USING:
kernel
math
;
IN:
cpu.riscv.64.assembler
::
cb-branch
( rs imm opcode -- )
imm 9
signed-immediate
:>
n imm 1
bitand
zero?
[
]
[
imm 9
invalid-riscv-immediate
]
if
rs
R'
7
shift
n
{
{
8 1 12
}
{
3 2 10
}
{
6 2 5
}
{
1 2 3
}
{
5 1 2
}
}
scatter
bitor
opcode
bitor
emit-half
;