blob: df2addb18949f7bd947439a7be58b4e1d159ba44 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# Program does not but exit() call with a status code
# returned to kernel
# No inputs or outputs
# Variables
#
# %rax - holds syscall number
# %rdi - holds return status
.section .data
#No data
.section .text
.globl _start
_start:
movq $60, %rax # %rax used to hold syscall numbers
# 60 is exit() syscall
movq $245, %rdi # Exit status (BYTE MAX)
syscall
|