Assembly Code
Ready — click Assemble to begin.
Pipeline Stages
IF
Fetch
ID
Decode
EX
Execute
WB
Write
CPU State
Program Counter (PC) 0x10000000
Instructions executed 0
Register File (32 × 32-bit)
Memory Access Log
No memory accesses yet.
Peripherals
LEDs — addr 0xf0100000
Value: 0x00 = 00000000b
Switches — addr 0xf0200000
Value: 0x00 = 00000000b
Seven-Segment — addr 0xf0400000
----
sw $t0, 0($t1) where $t1=0xf0400000
UART — status 0xf0300000 / data 0xf0300004
lw reads queued input • sw prints output
Memory Map
0x10000000 — .text (program)
0x10008000 — .data
0xf0100000 — LEDs (write)
0xf0200000 — Switches (read)
0xf0300000 — UART status
0xf0300004 — UART data
0xf0400000 — 7-segment
Instruction Decode
R-Type Quick Ref
add $rd,$rs,$rt
sub $rd,$rs,$rt
and/or/nor/xor $rd,$rs,$rt
sll/srl/sra $rd,$rt,shamt
slt $rd,$rs,$rt
jr $rs
I/J-Type Quick Ref
addi/ori/andi $rt,$rs,imm
lui $rt,imm
lw/sw $rt,offset($rs)
beq/bne $rs,$rt,label
j/jal label
li $rt,imm (pseudo)