Unformatted text preview: executing the instruction given below. ( Note: each instruction is executed according to the given conditions as above. ) i. STRSB R1, [R0, R2] ii. STRB R1, [R0], R2 iii. STR R1, [R0, #2]! iv. STRS R1, [R0, R2]! v. STRH R1, [R0], #3 vi. STRSH R1, [R0], R2 6. Given a data array DAT1 with N 16-bit unsigned data, write an assembly language program to sort the in ascending order. 7. Given two data arrays, each contains N 16-bit signed numbers, write an assembly program to compute the products of each corresponding entry pair only when both numbers are of the same sign, i.e. P i = na i × nb i , only if na i and nb i are both positive or negative. For Questions 6 and 7, you MUST use simulator to verify your programs, otherwise they will NOT be graded. Capture the results shown in both the register and memory windows. The EmbestIDE software can be downloaded from my web link....
View Full Document
- Spring '12
- Assembly Language, NBI, barrel shifter operations, data processing instructions