I'm very new to Assembly and I've literally spent days staring at my computer screen trying to figure this out. The program is supposed to add the binary numbers 1101 and 0111, then print their sum in binary form. Can someone please help me figure this out?.
NASM code:
section .text
   global _start        ;must be declared for using gcc
    
_start:                 ;tell linker entry point
   mov  eax, 1101b
    
   mov  ebx, 0111b
   
   add  eax, ebx
    
   mov  [sum], eax
   mov  ecx, msg    
   mov  edx, len
   mov  ebx, 1           ;file descriptor (stdout)
   mov  eax, 4           ;system call number (sys_write)
   int  0x80             ;call kernel
    
   mov  ecx, sum
   mov  edx, 1
   mov  ebx, 1           ;file descriptor (stdout)
   mov  eax, 4           ;system call number (sys_write)
   int  0x80             ;call kernel
    
   mov  eax, 1           ;system call number (sys_exit)
   int  0x80             ;call kernel
    
section .data
msg db "The sum is: "
len equ $ - msg   
segment .bss
sum resb 16
