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?
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.
Assembly language has four types: RISC (Reduced Instruction-Set Computer) DSP (Digital Signal Processor) CISC: Complex Instruction Set Computer.
Actually, there is no general categorization of the Assembly language types because a distinct assembly language is included with each machine architecture. They can range from the very basic like 4004, 6502, to extremely difficult like VAX-11, etc.
In most assembly languages, there are no data types at all. It's entirely the programmer's responsibility to make sure that all of the code agrees on what's what. There are still usually various directives that you can use to get specific bytes/words/etc into memory, but there's definitely no type checking of any kind.
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 popular on IBM CPUs and is found on systems such as 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 instructions. 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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With