From: Duje Mihanović <duje.mihanovic@skole.hr>
Date: Sun, 20 Mar 2022 13:51:56 +0000 (+0100)
Subject: Remove unused protected-mode print routine
X-Git-Tag: 0.1.0~12
X-Git-Url: http://git.dujemihanovic.xyz/img/html/index.html?a=commitdiff_plain;h=c29b9d737fde3b6037aacc95cc6ff4f5fbc63d46;p=nameless-os.git

Remove unused protected-mode print routine
---

diff --git a/boot/x86/protected.s b/boot/x86/protected.s
index 966390a..63d448c 100644
--- a/boot/x86/protected.s
+++ b/boot/x86/protected.s
@@ -43,29 +43,6 @@ protected
 	; above call should not return in normal circumstances, but if it does hang forever
 	jmp $
 
-pmprint
-	pusha ; save registers to stack
-	mov edx, video_memory ; initialize dx with location of VRAM
-
-.loop
-	mov al, [ebx] ; read next char and put it in al
-	mov ah, 00000111b ; puts the VGA text mode color white on black into ah
-
-	cmp al, 0 ; if the next character is null, we reached end of string
-	je .done ; so return the instruction
-
-	mov [edx], al ; otherwise put the next character in the video memory
-	mov [edx+1], ah ; do the same for its color
-
-	inc ebx ; point to next character in string
-	add edx, 2 ; point to next character in VRAM
-
-	jmp .loop ; go back to the loop
-
-.done
-	popa ; restore registers from stack
-	ret ; return
-
 video_memory equ 0B8000h
 
 ; the actual Global Descriptor Table