+ 1

Anyone with experience in arm assembly here?

13th Aug 2017, 5:04 AM
suryapoojary
suryapoojary - avatar
16 Réponses
+ 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! >.<
13th Aug 2017, 1:30 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 6
ASK @Very Hard ☺ my old bf
13th Aug 2017, 12:19 PM
Art456
Art456 - avatar
+ 3
nope b.... y...f...( and you know it)
13th Aug 2017, 12:31 PM
Art456
Art456 - avatar
+ 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
13th Aug 2017, 5:11 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
I know! "Boy that yield with fukku"(:P) @suryapoojary Please show the code or if you jealous the code better ask in StackOverFlow
13th Aug 2017, 12:53 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 2
Because You didn't add "BLT _default" yet
13th Aug 2017, 1:28 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 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
13th Aug 2017, 1:40 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 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
13th Aug 2017, 2:02 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
+ 1
@ArtemisAthena456 Idk arm I know only nasm and masm(highly on masm since It's easy) and bf is brainf&ck,right?
13th Aug 2017, 12:30 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar
0
i had a doubt about my arm program
13th Aug 2017, 12:22 PM
suryapoojary
suryapoojary - avatar
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?
13th Aug 2017, 1:07 PM
suryapoojary
suryapoojary - avatar
0
can u show an example ,buddy? @Very_Hard
13th Aug 2017, 1:29 PM
suryapoojary
suryapoojary - avatar
0
@Very_Hard..so now it will output 3?
13th Aug 2017, 1:37 PM
suryapoojary
suryapoojary - avatar
0
@Veryhard..how to debug a arm assembly program using gdb..
13th Aug 2017, 1:57 PM
suryapoojary
suryapoojary - avatar
0
@Very_hard..its working buddy!!
13th Aug 2017, 2:00 PM
suryapoojary
suryapoojary - avatar
0
Can i reverse engineer using arm asm?
13th Aug 2017, 3:10 PM
suryapoojary
suryapoojary - avatar