Answered step by step
Verified Expert Solution
Question
1 Approved Answer
9) (14 Points) Given the following assembly language instruction sequence and machine codes for the instructions. In the table below, fill in the starting memory
9) (14 Points) Given the following assembly language instruction sequence and machine codes for the instructions. In the table below, fill in the starting memory location and machine code for each instruction, Show your work for full credit. Fill in the Memory Locations and Machine Code with HEX values. Assembly Language Program Instruction Starting Code Machine Code (see Memory Location for below for different Instruction (HEX) instructions) (HEX) 00000 START: LDI R28.34 LDS R29,0x97 ADD R29,R28 BRNE START STSK, Rr Store register Ri in memory location 1001 001 r 0000 kkkk kkkk k k k k kkkk O255 BRNE Branch Place: conditional branch -> branch if C = 0 1111 0 1 K6 K5 K4 K3 K2 KI KO 001 K6 K5 K4 K3 K2 KI KO => -64 to +63 (2s complement range) offset with respect to the current PC 9) (14 Points) Given the following assembly language instruction sequence and machine codes for the instructions. In the table below, fill in the starting memory location and machine code for each instruction, Show your work for full credit. Fill in the Memory Locations and Machine Code with HEX values. Assembly Language Program Instruction Starting Code Machine Code (see Memory Location for below for different Instruction (HEX) instructions) (HEX) 00000 START: LDI R28.34 LDS R29,0x97 ADD R29,R28 BRNE START STSK, Rr Store register Ri in memory location 1001 001 r 0000 kkkk kkkk k k k k kkkk O255 BRNE Branch Place: conditional branch -> branch if C = 0 1111 0 1 K6 K5 K4 K3 K2 KI KO 001 K6 K5 K4 K3 K2 KI KO => -64 to +63 (2s complement range) offset with respect to the current PC
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started