Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

riscv

std › riscv

NameSummary
c_likeRISC-V RV32I written as expressions instead of mnemonics: a0 = a1 + a2, a1 = mem[sp + 8], if (a0 != zero) goto loop.
implRISC-V RV32I: its registers, instruction formats, and every base instruction, each emitted as a little-endian 32-bit word.
nativeRISC-V RV32I in its standard assembly syntax: add a0, a1, a2, lw a0, 8(sp), beq a0, zero, done.