From 7199e74aa22e592a3b77bdd81f735edca5470596 Mon Sep 17 00:00:00 2001 From: Benji Dial Date: Sat, 20 Jan 2024 17:59:40 -0500 Subject: update --- stdlib/syscall.asm | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 stdlib/syscall.asm (limited to 'stdlib/syscall.asm') diff --git a/stdlib/syscall.asm b/stdlib/syscall.asm deleted file mode 100644 index 922ca1b..0000000 --- a/stdlib/syscall.asm +++ /dev/null @@ -1,30 +0,0 @@ -bits 64 - -global encode_color -global get_framebuffer -global draw_framebuffer - -section .text - -encode_color: - mov rax, 0 - syscall - ret - -get_framebuffer: - push rcx - push rdx - push rsi - push rdi - mov rax, 1 - syscall - pop rcx - mov qword [rcx], rax - pop rcx - mov dword [rcx], edi - shr rdi, 32 - pop rcx - mov dword [rcx], edi - pop rcx - mov dword [rcx], esi - ret -- cgit v1.2.3