![]() |
Need help understanding arm assembly
Hello, I bought this bookand went without reading it for a while. But recently, I started reading it again and wished to use it to practice on my N810 Wimax. Then, I realized that the book strictly covers the x86 architecture :rolleyes: i.e. the assembly instructions outputted from objdump and gdb are assembly from the x86 architecture and therefore the arm architecture assembly shown on my n810 doesnt make sense to me since im used to x86.
So my question is: is there some way that the assembly can be outputted as x86 instructions? I do realize that what I'm asking is probably impossible, so a follow-up question would be: What would be a good way to "migrate" from x86 to arm assembly? Any help is appreciated! :) |
Re: Need help understanding arm assembly
As far as I know to output asm code written for one architecture can not be outputted as code for another architecture. There´s a reason why we have to declare the target architecture at the beginning of each piece of code written.
That being said, I have bookmarked some sites I found, just last week, with information on asm for arm7. I don´t have access to that machine right now, but tomorrow I should be able to post them. Provided you´re interested and it is what you asked for. ;) Either way, happy to see someoe with an interest in asm! |
Re: Need help understanding arm assembly
Thanks for the info and yes im very interested in asm. I really like seeing the lower-level instructions and understanding the logical flow of the program and, although I do love if(){ do this } loops, I, being a math and logic oriented person, love seeing how the branches are performed in assembly and i really love using gdb :)
|
Re: Need help understanding arm assembly
Google search, second result: http://www.coranac.com/tonc/text/asm.htm
|
Re: Need help understanding arm assembly
Quote:
|
Re: Need help understanding arm assembly
Quote:
I seem to get different results when I google from my n900... |
Re: Need help understanding arm assembly
Turns out I had some more links bookmarked. Here you go...
http://www.arm.com/miscPDFs/9658.pdf http://www.eetimes.com/discussion/ot...n-to-ARM-thumb http://www.heyrick.co.uk/assembler/ |
Re: Need help understanding arm assembly
Thank you for all the resources :)
After reading through some of these documents, I realize it will take some time to learn arm assembly, so could someone possibly give me a "leg up" so to speak? I've attached the source code for a C program and the output of gdb and I would like if someone could help me understand the logical flow of the program. Like if you could step me through the program and explain each step? |
Re: Need help understanding arm assembly
Thank you for all the resources :)
After reading through some of these documents, I realize it will take some time to learn arm assembly, so could someone possibly give me a "leg up" so to speak? Here is the source code for a C program and the output of gdb and I would like if someone could help me understand the logical flow of the program. Like if you could step me through the programs disassembly and explain each step? Main.c: Code:
#include <stdio.h> Code:
(gdb) break main Again, any help is appreciated! :p |
Re: Need help understanding arm assembly
Just read carefully again the section about inmediate values in the link I provided. I won't spare you the pleasure of discovering how it is right under your nose.
|
All times are GMT. The time now is 07:04. |
vBulletin® Version 3.8.8