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
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
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
Trending now
This is a popular solution!
Step by step
Solved in 5 steps