aboutsummaryrefslogtreecommitdiff
path: root/src/header/crti.s
diff options
context:
space:
mode:
authorNic Gaffney <gaffney_nic@protonmail.com>2023-12-10 09:48:53 -0600
committerNic Gaffney <gaffney_nic@protonmail.com>2023-12-10 09:48:53 -0600
commit8fcd0cf7d6a2c891422c7101840778043207a60d (patch)
tree5527b605fdaee1ad4404bef6418f1a5e34e31d52 /src/header/crti.s
parent87d1e83a0ea5e20e535e3378e57f1fe0e9818a64 (diff)
downloadgftos-8fcd0cf7d6a2c891422c7101840778043207a60d.tar.gz
Changed to the based ASM syntax and implemented a rudementary GDT
Diffstat (limited to 'src/header/crti.s')
-rw-r--r--src/header/crti.s17
1 files changed, 8 insertions, 9 deletions
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