Aim: To write a program that simulates the performance of an 8-bit CPU. You are required to define an instruction set, describe the simulator algorithm and write the code to implement the simulator.
Suggested Approach:
1. Define the number of bits needed for an instruction set. ie. 3 bits will support 23=8 instructions.
2. Select the required instructions: ie
Instruction Mnemonic RTL definition
Load Acc from memory LDA N [A][M(N)]
Store Acc in memory STA N [M(N)] [A]
Add memory to Acc. ADD N [A] [A]+[M(N)]
Branch to location N BRA N [PC] N
If A=0, Branch to location N BEQ N IF [A]=0 THEN [PC] N
3. Define the algorithm needed for simulation
4. Select a programming language ie (C)
5. Design a simulator that can simulate the functionality of your CPU
6. Test your design
7. Discuss and conclude
Deliverables.
A concise typed report (max 10 pages excluding any listings) describing the design and implementation of the CPU simulator.
Deadline is 03-05-2010.
Hello,
I am interested in your project. I have been completed both assembly language course (x8086) and computer architecture(MIPS). I think I can do the job.
Do you need graphical work or text based?
thanks