Log changes:
- Set
pwd
tosrc/MIPS.Organizer/
- Run command
dotnet run
- Follow the instructions
-
do the instructions above
-
type the following to load MIPS code:
a tests/fib.asm
-
type
s
to do the step-by-step debug -
type
c
to continue running until it hitshalt
instruction
You will need .NET Core SDK to build and run this code.
Download link: https://dotnet.microsoft.com/download/dotnet-core.
Due to complexity and current demand, full MIPS code grammar is not supported. For those currently supported instructions, see sections below.
Code segment is parsed directly. No segment label is needed.
Data segment is parsed in the following manner:
# data begin
# 1024 2
# 00111111 10000000 00000000 00000010
# 01000000 00000000 00000000 00000100
# 11111111 00000000 00000000 00000000
# 00000000 10000000 00000000 00000000
# data end
1024
:= start from address 10242
:= binary code00111111
:= the first byte from the starting address- bytes should be divided either by spaces or by new line
- no partial byte is allowed
Go to README.md
under directory MIPS.Simulator
.
- Add project for RISC V.