Complete rule definitions for S extension instructions
Fill-in codes for the CSRs
Add the "li" pseudoinstruction
This repository contains rule definitions to make customasm generate RISC-V code.
cat > loop.asm <<EOF
addi x2, x0, 1
loop:
sub x1, x1, x2
sw x1, 4(x0)
blt x0, x1, loop
EOF
customasm -o loop.bin rv32.asm loop.asm
Only flat binaries are supported at the moment.
32-bit:
64-bit: