I have designed a function simulator in C for a subset of ARM instructions. Function simulator takes instruction encoding in MEM file as input. MEM file has the following format: #First number is address of the instruction, followed by space, followed by instruction encoding.
For example: 0x0 0xE3A0200A 0x4 0xE3A03000
All the instruction in the given input MEM file is executed as per the functional behavior of the instructions.
Each instruction goes through the following phases:
- Fetch
- Decode
- Execute
- Memory
- Writeback.
Along with execution of instruction stages, simulator also provide messages what it is doing in each stage,Implements an additional instruction which exits the simulator, writes the data memory in MEM file before exiting.
I have designed a function simulator in C for a subset of ARM instructions. Function simulator takes instruction encoding in MEM file as input. MEM file has the following format: #First number is address of the instruction, followed by space, followed by instruction encoding. For example: 0x0 0xE3A0200A 0x4 0xE3A03000 All the instruction in …
SonakshiGrover/ARM-Simulator
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
I have designed a function simulator in C for a subset of ARM instructions. Function simulator takes instruction encoding in MEM file as input. MEM file has the following format: #First number is address of the instruction, followed by space, followed by instruction encoding. For example: 0x0 0xE3A0200A 0x4 0xE3A03000 All the instruction in …
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published