How many assembly languages

I read this wikipedia article on the assmeblies list

http://en.wikipedia.org/wiki/List_of_assemblers

it turns out that there are many assembler languages ​​.. so, for example, if you learn the assembler language Yasm, would it be difficult to read the TCCASM code? is it like completely different than all other asem languages ​​..? I wana learn this language, but I do not know which one to choose. If you could recommend some good books for novice programmers that cover the x86 build in general, I would be more than grateful

+4
source share
2 answers

The following should not be confused:

  • assembly language (abstract idea with various implementations)
  • assembler (a program, a kind of compiler (if you want) that implements the language)
  • (another specific specific specific specific detail, compare AT & T and Intel syntax for x86 platform).
  • instruction sets (different for different CPUs)

The general idea of ​​assembly language is one. But its embodiments are numerous and varied (e.g., MASM, TASM, NASM, (G) AS, etc. Etc.). They differ in what processors they support and what sets of commands (under), what functions they support (for example, expressions, macros, support for structured programming, object-binary file formats) and everything that looks like it (syntax, mnemonics, directives, comments).

If you know how to use one assembler for a particular platform, it should not be very difficult to learn another. Similarly, if you know how to write assembler code for one platform, it should not be a big problem to learn how to write asm code for another. All this, of course, is true if you well understand at least one assembler and one set of commands.

+4
source

I would start with the Z80 to get an idea of ​​registers, program counters, stacks, flags, mnemonics, etc. It is very clean and useful and not too complicated, but has everything you need to program the processor. This, of course, is biased, since this was my first meeting with the processor :) But most of the others are simply more complicated, with a lot of features and strength, of course, but this can only confuse you at the beginning.

-1
source

Source: https://habr.com/ru/post/1433043/


All Articles