troubleshooting Question

Interpreting some Assembly code

Avatar of Travis Hydzik
Travis HydzikFlag for Australia asked on
12 Comments1 Solution844 ViewsLast Modified:
Code some one help me with what the following code is trying to achieve

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]
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 12 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros