473,387 Members | 1,673 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

what is the following assembly doing

str fp,[sp, -4]!
add fp, sp, #0
sub sp, sp, #12
str r0, [fp, #-8]
str r1 [fp, #-12]

L5:
ldr r3, [fp, #-8]
ldrb r3, [r3]
cmp r3, #0
beq .L2
ldr r3, [fp, #-12]
ldrb r3, [r3]
cmp r3, #0
beq .L2
ldr r3, [fp, #-8]
ldrb r2, [r3]
ldr r3, [fp, #-12]
ldrb r3, [r3]
cmp r2, [r3]
bne .L8
ldr r3, [fp, #-8]
add r3, r3, #1
str r3, [fp, #-8]
ldr r3, [fp, #-12]
add r3, r3, #1
str r3, [fp, #-12]
b .L5

.L8
nop

.L2
ldr r3, [fp, #-8]
cmp r3, #0
bne .L6
ldr r3, [fp, #-12]
cmp r3, #0
bne .L6
mov r3, #0
b .L7

.L6
ldr r3, [fp, #-8]
ldrb r3, [r3]
mov r3, r3
ldr r3, [fp, #-12]
ldrb r3, [r3]
sub r3, r2, r3

.L7
mov r0,r3
add sp, fp, #0
ldr fp, [sp], #4
bx lr
Sep 17 '19 #1
0 1070

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Orantas Gladkauskas | last post by:
Hello everybody, I'm using Visual Studio 2003. Everything was fine until yesterday. I cannot add a WebBrowser or any other COM component on windows form any more. Every time I open a form in...
3
by: jwayne | last post by:
I'm trying to implement a navigation bar with multiple a href classes. The following example works exactly as I want it to, but for Internet Explorer only. Firefox does not indent each link. ...
2
by: steve bull | last post by:
I thought I had figured it out. But, I am only half way there. Now I have the following code snippet to read the colorRange attributes for the colorRangeSwatch in the xml file listed below. ...
1
by: Pepa Cougar | last post by:
Hello, I'm writing a managed C++ wrapper for a legacy C++ code. I'm wrapping a script-compiler class, which uses a callback to report script errors back to the client. The callback prototype is...
1
by: Yobbo | last post by:
Hi All I use the following script to stop users typing in anything but standard chars (eg letters, numbers, etc) into a input textbox: <!-- // 8 = backspace // 9 = tab // 46 = del // 190 =...
10
by: Frank | last post by:
I've done this a few times. In a solution I have a project, Say P1, and need another project that will contain much code that is similar to that of P1. I hope no one gets hung up on why I...
5
by: Jeff | last post by:
ASP.NET 2.0 This code crashes. It generate this error: Value cannot be null. Parameter name: type I've created some custom web.config settings and this crash is related to accessing theme...
16
by: SirG | last post by:
I'm looking for an explanation of why one piece of code works and another does not. I have to warn you that this is the first piece of Javascript I've ever written, so if there is a better way or a...
10
by: shapper | last post by:
Hello, I have a custom control under namespace MyNameSpace.WebControls with a property of type validation: ' Validation Private _Validation As Validation < _ Bindable(True), _...
0
by: okonita | last post by:
Hi all, I am having a DB2 connectivity problem that I hope someone can help me resolve. I need this to test Replication and such other things. What am I doing wrong here? Any help that I can get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.