Ano
Ano

Reputation: 1

Arm 7 If/Else Statement

How do I convert this example of psuedo code to Arm 7??

if R8 == 1, Go to "method 1"
else, Go to "method 2"

Also in "method 1" R8 is changed to two (R8=2), so the next time around I want it to access "method 2". So I wanted the loop to alternate between method 1 and 2

Upvotes: 0

Views: 2275

Answers (1)

Jacen
Jacen

Reputation: 366

cmp r8, #1
bleq method1
cmp r8, #1 //method1 may alter CPSR
blne method2

see http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0068b/CIHIDDID.html

Upvotes: 1

Related Questions