Untitled

 avatar
unknown
assembly_x86
4 years ago
674 B
5
Indexable
        section .text
        global  _start
            
_start:     
        mov eax, 4      ;use the write syscall number
        mov ebx, 1      ; file descriptor: file handles 1 as stdout
        mov ecx, msg    ; move address of the string to output into ecx
        mov edx, 51     ;the length of the message in bytes 
        int 80h         ;request an intterrupt on libc 
            
exit:       
        mov eax, 1      ;system call number of exit
        mov ebx, 0      ;return 0 status on exit if no errors 
        int 80h         ;request an intterrupt on libc 

        section .data 
msg:     db  "Name: Deepankar Chakraborty, Id: 23921244, Sec: CC2", 0Ah
Editor is loading...