Please help with the following in regards to Nand2Tetris, and hack code, so hack assembly and hack vm. There can be more that one answer to a question if so please explain why. 1a. The A-instruction in the Hack computer performs a. direct addressing. b. immediate addressing. c. indirect addressing. d. bitwise addressing. 1b. Each memory address in the Hack computer references a. a single byte. b. a single word. c. multiple words. d. the D-register 1c. Given the following assembly code: (FOO) @FOO 0;JMP The purpose of the code is to : a. test of the value is = = 0 NO-OP b. jump to address 0 in RAM c. return a 0 to the calling code d. create an endless loop e. end the assembly language program

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question

Please help with the following in regards to Nand2Tetris, and hack code, so hack assembly and hack vm. There can be more that one answer to a question if  so please explain why.

1a. The A-instruction in the Hack computer performs

a. direct addressing.

b. immediate addressing.

c. indirect addressing.

d. bitwise addressing.

 

1b. Each memory address in the Hack computer references

a. a single byte.

b. a single word.

c. multiple words.

d. the D-register

 

1c. Given the following assembly code:

(FOO)

@FOO

0;JMP

The purpose of the code is to :

a. test of the value is = = 0 NO-OP 

b. jump to address 0 in RAM

c. return a 0 to the calling code

d. create an endless loop

e. end the assembly language program

 

1d. Given a function called foo() that calls another external function bar() which in turn calls a second function called additup(). Indicate the VM line of code indicating the location in the program that control should be return to:

a.@Foo.$bar.

b. @Foo$bar$additup.ret.1

c. @Foo.bar.additup.ret.1

d. @Foo$bar$additup&return

e. @Foo return,bar return.additup

 

1e. The return value of a function when it is completed is stored, in:

a. calling Frame Arg[?]

b. calling Frame LCL

c. calling Frame SP

d. working Frame Arg[?]

e. working Frame LCL

f. working Frame SP

g. none of the above

 

1f. Every boolean expression of N inputs and one output can be implemented

     Circle the letter for ALL that apply. 

a. using a combination of D flip-flops, multiplexors and registers.

b. by connecting the output directly to all of the N inputs.

c. using a combination of And and Or gates.

d. using a combination of And, Or and Nand gates

e. using only Nand gates

Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 5 steps

Blurred answer
Knowledge Booster
Embedded software development
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education