summaryrefslogtreecommitdiff
path: root/builtin_exit.asm
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2018-06-23 15:12:55 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2018-06-23 15:12:55 -0400
commit3b46e7ef1f4c3f364e75e780eff923ef146ee42c (patch)
treec1e08f6ec3925c9c57f2093d59ab7444de9e28ce /builtin_exit.asm
parent2362c3ae6b32c816c4febe9714847fa4d80e1ad5 (diff)
downloadminos-3b46e7ef1f4c3f364e75e780eff923ef146ee42c.tar.gz
Implement initial builtin commands
Diffstat (limited to 'builtin_exit.asm')
-rw-r--r--builtin_exit.asm7
1 files changed, 2 insertions, 5 deletions
diff --git a/builtin_exit.asm b/builtin_exit.asm
index 74594e1..08b0e38 100644
--- a/builtin_exit.asm
+++ b/builtin_exit.asm
@@ -2,16 +2,13 @@
%define _BUILTIN_EXIT_ASM
builtin_exit:
- push bp
- mov bp, sp
-
push .msg_fmt
call printf
add sp, 2 * 1
- add sp, 2 ; cleanup previous call address
+ mov [terminal_exit], byte 1
- jmp terminal
+ ret
.msg_fmt db 'exiting...\n', 0
%endif