分类: CODE

Home / 分类: CODE

测试

2024-01-31 | CODE | 没有评论

int main() { int temp[10]; int i, sum, min, max; sum=0; min=temp[0]; max=temp[0]; for (i=0; i<10; i++) { if (temp[i] < min) {min = temp[i];}; if (temp[i] > max) {max = temp[i];}; sum = temp[i] + sum; } }

sub r13,r13,#0x28
ldr r2,[r13,#0]
ldr r3,[r13,#0]
mov r0,#0
ldr r1,[r13,r0,lsl #2]
cmp r1,r2
bge 0x80c8 ; (main + 0x20)
mov r2,r1
cmp r1,r3
ble 0x80d4 ; (main + 0x2c)
mov r3,r1
add r0,r0,#1
cmp r0,#0xa
blt 0x80b8 ; (main + 0x10)
mov r0,#0
add r13,r13,#0x28