100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
CS 1104 - Computer Systems AY2021-T5 Assignment 6 - 100 Percent Grade $12.49   Add to cart

Exam (elaborations)

CS 1104 - Computer Systems AY2021-T5 Assignment 6 - 100 Percent Grade

 7 views  0 purchase
  • Course
  • Institution

Question: For the Unit 6 assignment, hand compile the following two assembly language programs into machine language that can be loaded into an executed on the Hack computer. //Program 1 to convert to machine language // Computes R0 = 2 + 3 @2 D=A @3 D=D+A @0 M=D // Program 2 to convert ...

[Show more]

Preview 1 out of 4  pages

  • September 23, 2021
  • 4
  • 2021/2022
  • Exam (elaborations)
  • Questions & answers
avatar-seller
CS 1104 - Computer Systems
AY2021-T5
Assignment 6
Question:
For the Unit 6 assignment, hand compile the following two assembly language programs into
machine language that can be loaded into an executed on the Hack computer.
//Program 1 to convert to machine language
// Computes R0 = 2 + 3

@2
D=A
@3
D=D+A
@0
M=D




m
er as
// Program 2 to convert to machine language




co
eH w
// Symbol-less version of the Max.asm program.




o.
@0
D=M rs e
ou urc
@1
D=D-M
@10
o

D;JGT
aC s


@1
vi y re



D=M
@12
0;JMP
ed d




@0
ar stu




D=M
@2
M=D
is




@14
0;JMP
Th




Once you have been able to translate each of the following two programs written in Hack
Assembler into binary machine code, Load your machine language program into the cpu
simulator and execute it.
sh




For your assignment post a description of YOUR process to convert the assembler symbols into
machine language and what you learned in the process. Also include both your assembler
program and corresponding machine language program in your assignment.




This study source was downloaded by 100000831788613 from CourseHero.com on 09-23-2021 05:17:37 GMT -05:00
1
https://www.coursehero.com/file/103147995/Assignment-6pdf/

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller Examhack. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $12.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

62890 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$12.49
  • (0)
  Add to cart