module ponyo


class Simulator

ISA Simulator

method __init__

__init__(mem, decode, execr, imem: list, dmem: list = [])

Initializes simulator

Args:

  • mem (ISA.mem): mem class for the chosen ISA
  • decode (ISA.decode): decode function for the chosen ISA
  • execr (ISA.execr): execute function for the chosen ISA
  • imem (list): Instruction memory as a list, split on newlines
  • dmem (list, optional): Initial data memory. Defaults to [].

method run

run()

Step through the code until it reaches the end


method step

step()

Execute a single instruction


This file was automatically generated via lazydocs.