Changes

Jump to: navigation, search

Assembly Language

139 bytes added, 10:49, 7 January 2014
no edit summary
mov ebx,1 ; file descriptor: 1 is stdout
mov eax,4 ; kernel syscall number: 4 is sys_write
int 0x80 ; invoke syscall
mov ebx,0 ; exit status: 0 (good)
mov eax,1 ; kernel syscall number: 1 is sys_exit
int 0x80 ; invoke syscall
section .rodata
swi $0 /* invoke syscall */
mov %r0, $0 /* exit status -> : 0 (good) */ mov %r7, $1 /* exit is kernel syscall #number: 1 is sys_exit */
swi $0 /* invoke syscall */

Navigation menu