+ 1
Anyone with experience in arm assembly here?
16 Antworten
+ 1
.global _start
_start:
mov R1,#1
mov R2,#2
cmp R1,R2
BGT bigger
BLT _default ; If you didn't add this. bgt bigger will be useless instruction
bigger:
mov R0,#4
B end
_default:
mov R0,#3
end:
mov R7,#1
swi 0 ;I'm not similar to arm's syntax at all,sorry! >.<
+ 6
ASK @Very Hard ☺
my old bf
+ 3
nope b.... y...f...( and you know it)
+ 3
I'm not sure with arm but if nasm you can
And look like you should take a look at this link
goo.gl/qSDVrY
+ 2
I know! "Boy that yield with fukku"(:P)
@suryapoojary Please show the code or if you jealous the code better ask in StackOverFlow
+ 2
Because You didn't add "BLT _default" yet
+ 2
You won't know the result if you don't test it
More: bgt >> jg & blt >> jl would be better
Now You can remove "bigger: ,BGT bigger" for optimize of your program but certainly unreadable
+ 2
1.Oh um...I told you idk arm I think this question is valid to google so ask google the god among us
2.Oh wow this is First time that help people with my fav language >:D
+ 1
@ArtemisAthena456
Idk arm I know only nasm and masm(highly on masm since It's easy)
and bf is brainf&ck,right?
0
i had a doubt about my arm program
0
@very_Hard
.global _start
_start:
mov R1,#1
mov R2,#2
cmp R1,R2
BGT bigger
bigger:
mov R0,#4
B end
_default:
mov R0,#3
end:
mov R7,#1
swi 0
@in the above code ..v r comparing R1 and R2,right??..so since R2 is bigger..the execurion should move to _default branch??..im getting a output of 4 ..y?
0
can u show an example ,buddy? @Very_Hard
0
@Very_Hard..so now it will output 3?
0
@Veryhard..how to debug a arm assembly program using gdb..
0
@Very_hard..its working buddy!!
0
Can i reverse engineer using arm asm?