Earn Higher Grades With Instant Assignment Help.Ask Question!

C++ Programming
(5/5)

you will complete a variation of project 6 in the Nand2Tetris course the assembler will be written as two separate programs.

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

Assignment 2 Description

Assignment 2 - Writing an Assembler Weighting and Due Dates

Marks for this assignment contribute 10% of the overall course mark.

Marks for functionality will be awarded automatically by the web submission system.

Core Body of Knowledge (CBOK) Areas: abstraction, design, hardware and software, data and information, and programming.

Project Description

In this assignment you will complete a variation of project 6 in the Nand2Tetris course. A detailed description of Nand2Tetris Project 6 tailored to this course is shown below. In this assignment the assembler will be written as two separate programs. The executable program, parser, will read a Hack Assembly Language program from standard input and produce an abstract syntax tree on standard output. The executable program, translator, will read the abstract syntax tree from standard input and assemble a machine code representation of the original Hack Assembly Language program. The assembled code will be formatted as sixteen zeros or ones per line and it will be written to standard output. In addition to an assembler you will also write a program to dis- assemble machine code. The executable program, disassembler, will read a Hack Machine

Code program from standard input and write an equivalent Hack Assembly Language program to standard output.

SVN Repository

You must create a directory in your svn repository named: //cs/assignment2.

This directory must only contain the following files and directories - the web submission system

(https://cs.adelaide.edu.au/services/websubmission) will check this:

 

Makefile - this file is used by make to compile your programs - do not modify this file. Makefile-extras - this file is included by Makefile - do not modify this file. parser.cpp - C++ source file

parser - executable script that will run your compiled parser program - do not modify this file.

translator.cpp - C++ source file

translator - executable script that will run your compiled translator program - do not modify this file.

disassembler.cpp - C++ source file

 

disassembler - executable script that will run your compiled disassembler program - do not modify this file.

bin - this directory contains precompiled programs and scripts - do not modify this directory.

lib - this directory contains precompiled components - do not modify this directory. includes - this directory contains .h files for precompiled classes - do not modify this directory.

tests - this directory contains test data, you can add your own tests here

 

Note: if the lib/macos/lib.a and lib/cats/lib.a files do not get added to your svn repository you will need to explicitly add them using

Submission and Marking Scheme

Submissions for this assignment must be made to the web submission system (https://cs.adelaide.edu.au/services/websubmission) assignment named: Assignment 2 - Submit Here. The assessment is based on "Assessment of Programming Assignments (https://myuni.adelaide.edu.au/courses/54310/pages/assessment-of-programming-assignments) ".

Note: the Submit Here assignment will show a breakdown of your marks by category but it will always show your total mark as capped at 0.

Your programs must be written in C++. Your programs will be compiled using the Makefile included in the zip file attached below. The parser program will be compiled using the file parser.cpp, the translator program will be compiled using the file translator.cpp file and the

disassembler program will be compiled using the file disassembler.cpp file. No other .cpp or

.h files should be present in your svn directory. Your programs will then be tested using the set of test files that are attached below. In addition a number of secret tests will also be run. Note: if your program fails any of these secret tests you will not receive any feedback about these secret tests, even if you ask!

Assignment 2 - Milestone Submissions: due 11:55pm Tuesday of week 9

The marks awarded by the web submission system (https://cs.adelaide.edu.au/services/websubmission) for the milestone submission contribute up to 20% of your marks for assignment 2. The marks for the Milestone Tests are used as the marks for the milestone submission. Your milestone submission mark, after the application of late penalties, will be posted to the myuni gradebook when the assignment marking is complete.

Automatic Marking

The Milestone Tests are just those where the Hack Assembly language is syntactically correct and does not use symbols. The marks for the Milestone Tests for each component program will

be weighted as follows:

parser - 40%

translator - 40%

disassembler - 20%

Attachments:
(5/5)

Related Questions

CSI 1420 Introduction to C Programming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two majorconstructs of the C programming language – Fu

The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Assignment To Be Done By Our ExpertsGet A+ Grade Solution Guaranteed

expert
joyComputer science
(4/5)
12 Answers Hire Me
expert
Robert DLaw
(4.8/5)
762 Answers Hire Me
expert
Dr Samuel BarberaStatistics
(5/5)
748 Answers Hire Me
expert
Tutor For YouEconomics
(5/5)
687 Answers Hire Me