0

On line int 80h, a debugging error is raised: Program received signal SIGSEGV, Segmentation fault.

If run without debugging, the program just crashes. What could be the reason?

section .data
    msg db 'Hello, World!', 0xA
    length equ $ -msg

section .text
    global _main
    
kernel:
    int 80h
    ret
    
_main:
    push ebp
    mov ebp, esp
    mov eax, 4
    mov ebx, 1
    mov ecx, msg
    mov edx, length
    call kernel
    
    pop ebp
    ret
MRXIT
  • 23
  • 4

0 Answers0