Finding minimum value for signed integers

32 Views Asked by At

In ARM7 assembly I want to find the smaller of the two numbers. The numbers are to be signed 32 bit values. Here is what I have tried -

.global min32
.text
 min: 
     CMP R0,R1
     BGE end
     BX LR
 end:
 MOV R0, R1
 BX LR 

What should I change in this?

0

There are 0 best solutions below