You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
373 B

from hardware.hardware import Hardware
from execute.controller import Controller
from execute.debugger import Debugger
hw = Hardware()
ctrl = Controller(hw)
dbg = Debugger(hw)
prog = 'program/ldstTest.txt'
# Addiu r1,r1,3
# Store r1, 10(r0)
# Load r2, 10(r0)
dbg.loadProgram(prog)
ctrl.run()
ctrl.run()
ctrl.run()
dbg.dumpGenReg()
# dbg.dumpPplReg()
dbg.dumpDataMem(10)