Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ARM and Intel assembly instruction mapping

This might be a silly question, but is there a webpage/document/book that gives you a mapping of intel x86 and ARM assembly instructions?

I'm aware that it's not a 1-to-1 mapping, but I would assume that many instructions do map over rather seamlessly (MOV, as an example).

like image 688
MarkP Avatar asked Nov 03 '22 19:11

MarkP


1 Answers

Why? Are you trying to port code from one to the other? Do you know one and want a "cheat sheet" to learn the other? The best I can come up with is an ARM/Thumb Quick Reference Card (there are probably many for x86).

I can't seem to find one, and perhaps the main reason that the mapping is far from "seamless". ARM instructions are generally 3-op (abc dst,src1,src2), and to make matters worse, src2 can have shifts/rotates applied to it. x86 instructions are generally 2-op, except you have oddities like lea which is commonly used as a 3-op add.

The closest thing I can think of is a combined ARM/x86 cheat sheet, with common instructions separated into categories (arithmetic, bit ops, control flow, floating point, memory access).

And then there's Thumb...

like image 113
tc. Avatar answered Nov 11 '22 14:11

tc.