When that happens there is a typo in the code. The error should start off with something like RegIntro.asm:5: where "5" is the line number of the typo. For example, I hit that error on a regular basis when I type MOVE instead of MOV.
The role of the eax registry on a 32bit system is the same as the role of the registry rax on a 64bit system? Are these ID numbers for system calls different from architecture to architecture, because in my case, the sys_write ID number is 1 and the sys_exit ID number is 60?
The 32-bit (i386 IA32) system calls vary greatly from the 64-bit system calls. Sys_exit is 1 in 32-bit and 60 in 64-bit. When you watch my next tutorial, I have dropped the 64-bit RAX register from the chart. Basically you'll need to learn 32-bit before you try to tackle 64-bit stuff - it will make more sense that way because the vast majority of documentation on the Internet is in 32-bit.
waiting for the whole series, your teaching is awesome
Thanks!
when i run the command nasm -f elf, trows a error that a instruction is expected
When that happens there is a typo in the code. The error should start off with something like RegIntro.asm:5: where "5" is the line number of the typo. For example, I hit that error on a regular basis when I type MOVE instead of MOV.
The role of the eax registry on a 32bit system is the same as the role of the registry rax on a 64bit system? Are these ID numbers for system calls different from architecture to architecture, because in my case, the sys_write ID number is 1 and the sys_exit ID number is 60?
The 32-bit (i386 IA32) system calls vary greatly from the 64-bit system calls. Sys_exit is 1 in 32-bit and 60 in 64-bit. When you watch my next tutorial, I have dropped the 64-bit RAX register from the chart. Basically you'll need to learn 32-bit before you try to tackle 64-bit stuff - it will make more sense that way because the vast majority of documentation on the Internet is in 32-bit.
Ok. Thanks...