Due: Wednesday, April 17, 2019
Read Chapters 8, 9, 15, and 16 in PiS2. This material covers pattern matching, function values, higher order functions, and related topics.
For this assignment you will work on a virtual machine implementation for the VuPP processor.
This year you will implement enough of the Simulator.singleStep
method so that it
can simulate the execution of a simple sample program set up in the main method. See the VuPP project for more information.
singleStep
method in the Simulator
object enough so that the VM can correctly simulate the simple VuPP program defined in the
main method (in VM.scala). This entails implementing support for the copy, dec, and
jnz instructions. This will also require implementing the getSourceOperand
and
putDestinationOperand
helper methods. Write your code in a purely functional way:
no vars, no (while) loops, and using recursion or library methods as appropriate.
Last Revised: 2024-12-17
© Copyright 2024 by Peter Chapin <peter.chapin@vermontstate.edu>