6.33.8 LoongArch assembler

Source code: arch/loongarch64/asm.fs. You can find the list of instructions (and their formats) in arch/loongarch64/insts.fs.

Registers are r0..r31, f0..f31, fcsr0...fcsr31, fcc0..fcc7 and ?caf ?saf ?clt ?slt ?ceq ?seq ?cle ?sle ?cun ?sun ?cult ?sult ?cueq ?sueq ?cule ?sule ?cne ?sne ?cor ?sor ?cune ?sune.

Mnemonics don’t end with “,”, so you need to worry about collisions with Forth word names (e.g, and). To use immediates, you need to use the immediate name (e.g., addi.d instead of add.d).

This assembler does not support structured control structure words.