I am reading two e-books on assembly at the moment and have found a strange way of writing out the code and I had wondered if it was native to a certain assembler?
I am used to code in the syntax of
mov eax, [input1]
add eax, [input2]
mov ebx, eax
While this code was written with syntaxes of registers of the following
• %eax
• %ebx
• %ecx
• %edx
• %edi
• %esi
movl $1, %eax # this is the linux kernel commandmovl $0, %ebx
int $0x80
I am unsure what to think of this syntax, I would be using the book with the syntax I am used to but the author programs it in C as well as assembly. Is it helpful to learn it in the way of making C and Assembly work together or should I just get the basic assembly no added themes. I want to eventually work with Hardware and since he is using the I/O library of C I am unable to truly see the commands that go on for it.