Learn Assembly Programming - Introduction to Registers

Поділитися
Вставка
  • Опубліковано 15 лис 2024

КОМЕНТАРІ • 7

  • @scottoctave1353
    @scottoctave1353 6 років тому +24

    waiting for the whole series, your teaching is awesome

  • @brenocampos100
    @brenocampos100 6 років тому +5

    when i run the command nasm -f elf, trows a error that a instruction is expected

    • @DanielRossDeveloper
      @DanielRossDeveloper  6 років тому +7

      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.

  • @slobodantajisic2762
    @slobodantajisic2762 6 років тому +5

    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?

    • @DanielRossDeveloper
      @DanielRossDeveloper  6 років тому +5

      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.

    • @slobodantajisic2762
      @slobodantajisic2762 6 років тому +4

      Ok. Thanks...