summaryrefslogtreecommitdiff
path: root/builtin_clear.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_clear.asm
parent2362c3ae6b32c816c4febe9714847fa4d80e1ad5 (diff)
downloadminos-3b46e7ef1f4c3f364e75e780eff923ef146ee42c.tar.gz
Implement initial builtin commands
Diffstat (limited to 'builtin_clear.asm')
-rw-r--r--builtin_clear.asm11
1 files changed, 11 insertions, 0 deletions
diff --git a/builtin_clear.asm b/builtin_clear.asm
new file mode 100644
index 0000000..cac6216
--- /dev/null
+++ b/builtin_clear.asm
@@ -0,0 +1,11 @@
+%ifndef _BUILTIN_CLEAR_ASM
+%define _BUILTIN_CLEAR_ASM
+
+builtin_clear:
+ call cls ; clear console
+ push 0000h ; home position 0x0
+ call setcursor ; home cursor on console
+ add sp, 2 ; cleanup stack
+ ret
+
+%endif