X86 assembly doesn’t have to be scary
It&#x27;s hard to find a tutorial that really tells you what is going on. You have to start with whatever operating system you&#x27;re on, then figure out what the heck you&#x27;re reading. What is x86 and what is some reserved word peculiar to the assembler you&#x27;re using?<p>Here&#x27;s macOS Hello, world code I see floating around a lot, and I can&#x27;t make heads or tails of it:<p><pre><code>  global start

  section .text
  start:
      push    dword msg.len
      push    dword msg
      push    dword 1
      mov     eax, 4
      sub     esp, 4
      int     0x80
      add     esp, 16

      push    dword 0
      mov     eax, 1
      sub     esp, 12
      int     0x80

  section .data

  msg:    db      &quot;Hello, world!&quot;, 10
  .len:   equ     $ - msg</code></pre>