Hello, dear friend, you can consult us at any time if you have any questions, add WeChat: THEend8_
COMP2017 / COMP9017 Assignment
This assignment is worth 15% of your final assessment
Task Description
In this assignment you will be implementing and performing operations on a simple virtual machine.
You will need to emulate this virtual machine to store and reference variables and stack frame contexts
before reading a set of pseudo assembly instructions that dictate the operations that should be
performed on the stack. Your program will take a single command line argument being the path to
the file containing your x2017 assembly code.
Before attempting this assignment it would be a good idea to familiarise yourself with the stack,
registers, stack frames, stack pointers, program counters, assembly and machine code. A strong
understanding of these concepts is essential to completing this assignment. Section 3.6 and 3.7 of
the course textbook provide specific detail to x86_64 architecture, however you can review these as a
reference.
In order to complete this assignment at a technical level you should revise your understanding of
bitwise operations, file IO, pointers and arrays.
Some implementation details are purposefully left ambiguous; you have the freedom to decide on the
specifics yourself. Additionally this description does not define all possible behaviour that can be
exhibited by the system; some error cases are not documented. You are expected to gracefully report
and handle these errors yourself.