blob: 08b0e38fbceae1589d0b57731aeb0367ab3fe785 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
%ifndef _BUILTIN_EXIT_ASM
%define _BUILTIN_EXIT_ASM
builtin_exit:
push .msg_fmt
call printf
add sp, 2 * 1
mov [terminal_exit], byte 1
ret
.msg_fmt db 'exiting...\n', 0
%endif
|