Feat: Better IO functions & Refractor of "colors.h" to "stdio.h"

This commit is contained in:
AfonsoCMSousa
2025-11-20 22:40:00 +00:00
parent 67776035b6
commit b619b9ed1d
5 changed files with 456 additions and 134 deletions
+10
View File
@@ -449,6 +449,16 @@ protected_mode:
mov eax, cr4
or eax, 0x20
mov cr4, eax
; Enable FXSAVE/FXRSTOR and unmask SSE exceptions
mov eax, cr0
and ax, 0xFFFB ; clear EM
or ax, 0x0002 ; set MP
mov cr0, eax
mov eax, cr4
or ax, 0x0600 ; set OSFXSR | OSXMMEXCPT
mov cr4, eax
; Enable Long Mode
mov ecx, 0xC0000080