OSDev.org

The Place to Start for Operating System Developers
It is currently Mon Mar 18, 2024 8:02 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: bootloader somehow switches into a weird text mode
PostPosted: Mon Jan 23, 2023 12:23 pm 
Offline

Joined: Wed Jan 19, 2022 1:41 pm
Posts: 1
i made a bootloader and i made it boot into a hello world program, and it switches to some weird text mode
Image
i want it to be in the 80x25 text mode but even if i switch to it in the kernel code it does not change, this is the kernel code:
Code:
bits 16
org 0x1000

jmp kernel

bootMsg:
   db "Welcome to NightlightOS", 0

kernel:
   ; switch to text mode
   mov ah, 0x00
   mov al, 0x00
   int 0x10

   mov ah, 0x00
   mov al, 0x00
   int 0x10
   mov ah, 0x0E
   mov si, bootMsg
   .loop:
      lodsb
      cmp al, 0
      je $
      int 0x10
      jmp .loop


and this is the bootloader https://pastebin.com/SJEH7Y1v


Top
 Profile  
 
 Post subject: Re: bootloader somehow switches into a weird text mode
PostPosted: Tue Jan 24, 2023 3:10 pm 
Offline
Member
Member

Joined: Mon Mar 25, 2013 7:01 pm
Posts: 5069
Code:
   mov ah, 0x00
   mov al, 0x00
   int 0x10

You're selecting a 40x25 text mode, not 80x25.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], klange and 9 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group