Skip to content

Commit 3209306

Browse files
committed
bootnorm.asm: fix potential bug on INT10 usage
1 parent 538f218 commit 3209306

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/fdisk/bootnorm.asm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ print:
150150
lodsb
151151
test al, al
152152
jz .r
153-
xor bx, bx ; video page 0
153+
mov bx, 0x7 ; video page 0, default color
154154
mov ah, 0x0E ; print it via TTY mode
155155
int 0x10
156156
jmp print
@@ -159,7 +159,7 @@ print:
159159
read_error_msg: db 'Read error', 0
160160
no_active_msg: db 'No active partition', 0
161161
invalid_vbr_sig_msg: db 'VBR has illegal signature', 0
162-
try_next_dev_msg: db '. Trying next boot device...', 0
162+
try_next_dev_msg: db '. Trying next boot device...', 13, 10, 0
163163

164164

165165
;-----------------------------------------------------------------------------

0 commit comments

Comments
 (0)