ARM Assembler - How do I use CMP, BLT and BGT?
Quick question for you guys, in my loop I need to use CMP , BLT and BGT to compare some values. How would use said instructions in the following loop? I'm trying to use BGT , BLT and CMP as I need them to make my application work. The trouble is I have no idea how to use them. If I wanted to use CMP to compare r6, with r4 and put the difference into r7, how would I do this? The same question if I wanted to use BLT if r7 is less than 0, how would I do this? BGT ??????? ; branch if greater than 5 CMP ???????? ; compare r6 with r4 , put difference into r7 BLT ???????? ;branch if r7 is less than 0