views:

70

answers:

2

I start university in a few weeks (software engineering degree) and know that one of the modules I'll be studying in the first year is 'fundamentals of architecture' or something similar; basically it's learning to program in 'assembly'.

I'm wanting to do some background learning so I'm prepared for it (I've done the same on some other units), but don't know if there is more than one 'assembly language'. How many are there? Is it one per manufacturer, a 32-bit and 64-bit language, or just one standard?

If there is more than one type, what is the most 'popular' or likely to be taught at university level?

+6  A: 

There are many, many types of assembly languages. The current most popular are ARM, MIPS, and x86. ARM is used on lots of cell phones and many embedded systems. MIPS is for Motorola systems - Macs, some video game consoles, and a few I'm sure I'm missing. x86 assembler is used on Intel PCs. Each flavor has different versions which span the gammut from 16-bit to 64-bit opcodes. The thing about assembly is old architectures tend to die and new ones come along, but the fundamental things that RISC style systems do are mostly the same. It's just a matter of learning the mnemonics between systems. Move, Mov, Load, etc. all load a register with a value. It's like any other language really. Once you learn one, it's pretty easy to pick up newer ones. Some older ones you might run into are Z80, 68000, 6502, and 6510 - depending on how far back in the way back machine you want to go.

Hope that helps.

Michael Dorgan
+2  A: 

but don't know if there is more than one 'assembly language'

Different assemblers (e.g. Gnu's and Microsoft's) for the same CPU may have different assembly language syntax; but the difference is trivial, because they're both targeting the same CPU, and there's a 1-to-1 mapping (if you ignore macros) between assembly instructions and CPU opcodes.

The bigger difference is between different types of CPU.

Sometimes different CPU support the same opcodes (and can therefore be targeted by the same assemblers), because they're designed to be compatible with or competitive against each other, by executing the same machine language.

But sometimes they're different: see List of Instruction Set Architectures.

ChrisW