Here is an assembly language program using the textbook language. The comments at the right end of each line are for numberin Here is an assembly language program using the textbook language. The comments at the right end of each line are for numbering the lines. The program starts at address zero. The appendix contains the textbook instruction set. COMPSCI 110 .BEGIN line 1 1ine 2 1ine 3 L: IN X LOAD X ADD X 1ine 4 line 5 line 6 line 7 STORE Y ADD Y COMPARE Z JUMPLT L OUT X line 8 line 9 HALT 1ine 10 line 11 – 1ine 12 line 13 line 14 line 15 X: .DATA 0 .DATA 0 .DATA 4 Y: Z: .END Using this program which of the following have the correct machine code and data for the specified line? X. Line 7-0111 0000 0000 1110 Y. Line 14- 0000 0000 0000 0100 Z.Line 4-0000 0000 0000 1001



Source link

Leave a Reply

Your email address will not be published. Required fields are marked *