Ask your own question, for FREE!
Computer Science 23 Online
OpenStudy (anonymous):

Can anyone help with assembly?

OpenStudy (anonymous):

I'm am struggling to understand how to program with assembly. Here's what I am supposed to do: Write a simple assembly language program to calculate the some geometric information for each Rhombus1 (parallelogram with all sides equal) in a series of Rhombus's. The program should find the area, perimeter, and semi-perimeter for each Rhombus. Once the areas, perimeters, and semi-perimeters are computed, the program should find the minimum, maximum, middle value, sum, and average for the areas, perimeters, and semi-perimeters. All data must be treated as unsigned values (i.e., use of MUL and DIV, not IMUL or IDIV). The JA/JB/JAE/JBE must be used (as they are for unsigned data).

OpenStudy (anonymous):

; Data Set aSides dw 2148, 794, 2622, 2623, 2138 dw 1671, 2145, 1552, 1219, 1675 dw 812, 800, 815, 2633, 1205 dw 1676, 2147, 1555, 2140, 3113 dw 808, 2145, 2651, 2645, 3615 dw 1677, 820, 1526, 2147, 3611 dw 1552, 1219, 1675, 1671 pDiags dw 1133, 1114, 1123, 1131, 1134 dw 1164, 1153, 2234, 1123, 1165 dw 1144, 1112, 1123, 1142, 1123 dw 1165, 1164, 2273, 1156, 1134 dw 1153, 1153, 1243, 1153, 1135 dw 1144, 1169, 2134, 1133, 1132 dw 2234, 1123, 1165, 1164 qDiags dd 4145, 1134, 5123, 5123, 4123 dd 3134, 4134, 2156, 2164, 3142 dd 1153, 1153, 1184, 5142, 2134 dd 3145, 4134, 2123, 4123, 6123 dd 1134, 4134, 5156, 5164, 7142 dd 3153, 1153, 2184, 4142, 7134 dd 2156, 2164, 3142, 3134 length dd 34 aMin dd 0 aMid dd 0 aMax dd 0 aSum dd 0 aAve dd 0 pMin dd 0 pMid dd 0 pMax dd 0 pSum dd 0 pAve dd 0 sMin dd 0 sMid dd 0 sMax dd 0 sSum dd 0 sAve dd 0

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!