Assembly Code keep showing segment fault
问题 Why this assembly code assemble and link fine but show segment fault in runtime. Commented after the instruction to give a idea what I wanted to do. jmp short init action: pop esi xor eax, eax mov byte [esi+24], al ;null terminating the string. mov dword [esi+25],24 ;length of the string mov al,4 ;syscall write mov ebx,1 ;standard out lea ecx,[esi] ;<<---------- Unsure about this. probably load the address of the string to ecx mov edx,[esi+25] ;<<-- load edx with string length int 80h init: