SimpleRISC is a simplified RISC (Reduced Instruction Set Computer) architecture designed for educational purposes. This web-based assembler translates SimpleRISC assembly language into machine code.
SimpleRISC uses a 32-bit instruction word with the following general format:
| Type | Instructions | Format |
|---|---|---|
| Arithmetic & Logic | add, sub, mul, div, mod, and, or, not, lsl, lsr, asr |
op rd, rs1, rs2 op rd, rs1, #imm |
| Data Movement | mov, ld, st |
mov rd, rs1 mov rd, #imm ld/st rd, rs1, rs2 ld/st rd, rs1, #imm |
| Control Flow | b, beq, bgt, call, ret |
b label beq label bgt label call label ret |
| Other | cmp, nop |
cmp rd, rs1 cmp rd, #imm nop |