From 8fcd0cf7d6a2c891422c7101840778043207a60d Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Sun, 10 Dec 2023 09:48:53 -0600 Subject: Changed to the based ASM syntax and implemented a rudementary GDT --- src/header/crti.s | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'src/header/crti.s') diff --git a/src/header/crti.s b/src/header/crti.s index 91e86fa..26d677a 100644 --- a/src/header/crti.s +++ b/src/header/crti.s @@ -1,12 +1,11 @@ -.section .init -.global _init -.type _init @function +section .init +global _init:function _init: - push %ebp - movl %esp, %ebp + push ebp + mov ebp, esp, -.section .fini -.global _fini +section .fini +global _fini _fini: - push %ebp - movl %esp, %ebp + push ebp + mov ebp, esp -- cgit v1.2.3