Question: This is an attempt at splitting 1 6 bit values in hack assembly language, would this provide an equal split of the 1 6 bit

This is an attempt at splitting 16 bit values in hack assembly language, would this provide an equal split of the 16 bit value in ram2 and store it in left and right? If not please help solve this issue:
@2
D=M
@255
D=A
D=D&A
@right0
M=D // Store the lower 8 bits in a temporary memory location
// Mask for isolating the upper 8 bits (bits 8-15)
@32768
D=A
D=D&A
@left0
M=D // Store the upper 8 bits in a temporary memory location

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!