blob: 2e40877ebe22f37a594afad9e02a6523b4f8db93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
/****************************************************************************************/
/* */
/* File : r_cpyhead.asm /_________/ */
/* Author : Joe | */
/* Date : 04/2020 | */
/* Info : Formats and returns notification head title | */
/* / | */
/* \ / */
/* \_____/ */
/* */
/****************************************************************************************/
.text
.extern sprintf
.globl r_cpyhead
r_cpyhead:
movq $buff, %rdi
movq $n_head, %rsi
xorq %rax, %rax
callq sprintf
movq $buff, %rax
retq
.data
n_head: .asciz "Low battery: %d%%"
.bss
buff: .zero 0x11
|