胡乱写个没调试哦
_bijiaodaxiao:
push {r4-r6,lr}
ldr r6, = 0x20000030
ldrb r5, [r6]
cmp r5, # 105
bcc _bijiao
mov r4, # 3
strb r4, [r6, # 0x01]
b _bijiaowanle
_bijiao:
cmp r5, # 95
bhi _dayu
mov r4, # 1
strb r4, [r6, # 0x01]
b _bijiaowanle
_dayu:
mov r4, # 2
strb r4, [r6, # 0x01]
_bijiaowanle:
pop {r4-r6,pc}
|