Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[ARM] Clarification on one of the ARM instruction

Status
Not open for further replies.

mjuneja

Advanced Member level 4
Joined
Aug 28, 2016
Messages
105
Helped
12
Reputation
24
Reaction score
10
Trophy points
18
Location
Bangalore, India
Activity points
674
For the below given instruction

LDMNEIA R10!,{R9,R3 - R5}

While copying the data from location specified in R10 to R3, it will check for NE condition between R10 and R3.

Then in the similar manner, while copying the data from location specified in R10+4 to R4, it will check for NE condition between R10+4 and R4.

Doubt 1: is my understanding correct about the mentioned instruction ?

Doubt 2: If correct, that means there exist a possibility that the copying operation can stop at any stage if the given condition is not satisfied and some of the location can go uncopied.

Please clarify.
 

I believe your understanding of the conditional LDM instruction is wrong. NE checks the Z flag which has been set in a previous instruction. There's no compare performed during LDM execution. The condition is tested once at the instruction begin.
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top