; NASM Assembly
; -----------------------------------
; By CoolKA2277
; -----------------------------------

section .text

global _start

_start:
   
   ; msg message
   mov  edx,len       ;message length
   mov  ecx,msg       ;message to write
   mov  ebx,1		      ;file descriptor (stdout)
   mov  eax,4		      ;system call number (sys_write)
   int	0x80		      ;call kernel
   
   ; msg2 message
   mov  edx,len2      ;message length
   mov  ecx,msg2      ;message to write
   mov  ebx,1		      ;file descriptor (stdout)
   mov  eax,4		      ;system call number (sys_write)
   int	0x80		      ;call kernel
  
   ; exit
   mov eax,1		      ;system call number (sys_exit)
   int	0x80		      ;call kernel

section .data
    msg db  "Hello World",0xa ; 0xa for line skip
    len equ $ - msg
    msg2 db "2"
    len2 equ $ - msg2
