CPUlator is a full-system Nios II, ARMv7, and SPIM-compatible MIPS simulator that runs in a web browser. It is designed for education use to teach computer ...
This runs inside a web browser.
- Instruction sets: Nios II, ARMv7, and MIPS
- I/O devices:
- Nios II and ARMv7: Includes most devices found on a DE1-SoC (and other board models used by the Altera University Program), including interrupt support.
- MIPS: Includes SPIM-compatible terminal
- Nothing to install: Runs entirely inside a web browser
- Debugger: Single-step, breakpoints, watchpoints, trace, call stack, examine disassembly, memory and registers
- Debug assertions: Optional runtime assertions catch many potential errors
- Input: Accepts both assembly source code and ELF executables
I tested with the simple basic assemnbly source code and works well:
.global _start
_start:
mov r0,#1
mov r1,#3
push {r0,r1}
bl get_value
pop {r0,r1}
B end
get_value:
mov r0,#5
mov r1,#7
add r2,r0,r1
bx lr
end:
You can save, load and compile this sorce code like a simple file type : simple.s
This is the result: