diff options
| author | Christian Krinitsin <code@krinitsin.xyz> | 2024-11-20 22:25:23 +0100 |
|---|---|---|
| committer | Christian Krinitsin <code@krinitsin.xyz> | 2024-11-20 22:25:23 +0100 |
| commit | 0532d16d65c09494ff21b7e1a9cd3005058be8fc (patch) | |
| tree | 615179ac9033fc686dc25ecb86698faa15b0896f /main.asm | |
| parent | 816561455ca037530d67e2606ffd7f887ef742de (diff) | |
| download | x86_64-Snake-0532d16d65c09494ff21b7e1a9cd3005058be8fc.tar.gz x86_64-Snake-0532d16d65c09494ff21b7e1a9cd3005058be8fc.zip | |
hide cursor in game
Diffstat (limited to 'main.asm')
| -rw-r--r-- | main.asm | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/main.asm b/main.asm index d0e1e3a..4828b35 100644 --- a/main.asm +++ b/main.asm @@ -37,6 +37,8 @@ section .text extern reset_cursor extern move_cursor_right extern move_cursor_down + extern hide_cursor + extern show_cursor global _start global exit @@ -87,6 +89,7 @@ _move_up: ret _start: + call hide_cursor mov byte [snake], 5 mov byte [snake+1], 5 @@ -106,6 +109,7 @@ main_loop: jmp main_loop exit: ; exit syscall with return code 0 + call show_cursor mov rax, 60 xor rdi, rdi syscall |