Advertisement

08.05.2008 at 06:50PM PDT, ID: 23624380
[x]
Attachment Details

Interpreting some Assembly code

Asked by thydzik in Assembly Programming Language, C Programming Language, Algorithms

Tags: Intel Assembly x86

Code some one help me with what the following code is trying to achieve

ThanksStart Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
0A84:0210 8B5E06         MOV       BX,WORD PTR [BP+06]  
0A84:0213 0307           ADD       AX,WORD PTR [BX]  
0A84:0215 135702         ADC       DX,WORD PTR [BX+02]  
0A84:0218 2D885B         SUB       AX,5B88  
0A84:021B 81DA9528       SBB       DX,2895  
0A84:021F 0146FC         ADD       WORD PTR [BP-04],AX  
0A84:0222 1156FE         ADC       WORD PTR [BP-02],DX  
0A84:0225 8B46FC         MOV       AX,WORD PTR [BP-04]  
0A84:0228 8B56FE         MOV       DX,WORD PTR [BP-02]  
0A84:022B B107           MOV       CL,07  
0A84:022D D1E0           SHL       AX,1  
0A84:022F D1D2           RCL       DX,1  
0A84:0231 FEC9           DEC       CL  
0A84:0233 75F8           JNZ       022D  
0A84:0235 8B4EFC         MOV       CX,WORD PTR [BP-04]  
0A84:0238 8B5EFE         MOV       BX,WORD PTR [BP-02]  
0A84:023B 8BF1           MOV       SI,CX  
0A84:023D B119           MOV       CL,19  
0A84:023F D1EB           SHR       BX,1  
0A84:0241 D1DE           RCR       SI,1  
0A84:0243 FEC9           DEC       CL  
0A84:0245 75F8           JNZ       023F  
0A84:0247 0BC6           OR        AX,SI  
0A84:0249 0BD3           OR        DX,BX  
0A84:024B 8946FC         MOV       WORD PTR [BP-04],AX  
0A84:024E 8956FE         MOV       WORD PTR [BP-02],DX  
0A84:0251 8B46F8         MOV       AX,WORD PTR [BP-08]  
0A84:0254 8B56FA         MOV       DX,WORD PTR [BP-06]  
0A84:0257 0146FC         ADD       WORD PTR [BP-04],AX  
0A84:025A 1156FE         ADC       WORD PTR [BP-02],DX  
0A84:025D 3346F4         XOR       AX,WORD PTR [BP-0C]  
0A84:0260 3356F6         XOR       DX,WORD PTR [BP-0A]  
0A84:0263 2346FC         AND       AX,WORD PTR [BP-04]  
0A84:0266 2356FE         AND       DX,WORD PTR [BP-02]  
0A84:0269 3346F4         XOR       AX,WORD PTR [BP-0C]  
0A84:026C 3356F6         XOR       DX,WORD PTR [BP-0A]
[+][-]08.06.2008 at 01:27AM PDT, ID: 22168109

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 01:29AM PDT, ID: 22168120

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 01:32AM PDT, ID: 22168131

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]08.06.2008 at 01:35AM PDT, ID: 22168146

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 01:41AM PDT, ID: 22168170

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 01:58AM PDT, ID: 22168240

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 03:53AM PDT, ID: 22168785

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Assembly Programming Language, C Programming Language, Algorithms
Tags: Intel Assembly x86
Sign Up Now!
Solution Provided By: Infinity08
Participating Experts: 3
Solution Grade: A
 
 
[+][-]08.06.2008 at 04:20PM PDT, ID: 22176225

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 04:43PM PDT, ID: 22176338

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 07:37PM PDT, ID: 22176994

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 08:32PM PDT, ID: 22177180

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.06.2008 at 10:57PM PDT, ID: 22178205

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628