Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 716243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T05:16:37+00:00 2026-05-14T05:16:37+00:00

I’ve been working through the tutorials on this webpage which progressively creates a bootloader

  • 0

I’ve been working through the tutorials on this webpage which progressively creates a bootloader that displays Hello World.

The 2nd tutorial (where we attempt to get an “A” to be output) works perfectly, and yet the 1st tutorial doesn’t work for me at all! (The BIOS completely ignores the floppy disk and boots straight into Windows). This is less of an issue, although any explanations would be appreciated.

The real problem is that I can’t get the 3rd tutorial to work. Instead on outputting “Hello World”, I get an unusual character (and blinking cursor) in the bottom-left corner of the screen. It looks a bit like a smiley face inside a rounded rectangle. Does anyone know how to get Hello World to display as it should?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T05:16:38+00:00Added an answer on May 14, 2026 at 5:16 am

    You say “boot straight into windows” so I assume you are using a physical PC. Future note to make: Always use an emulator for development! It’s just easier. I like Bochs for OSDeving cause it has nice debugging features. Now, onto the possible solution.

    There are a lot of buggy BIOSes that break the informal specifications of the IBM PC for the 0x7C00 load address.

    This can give a lot of problems with memory addresses and such whenever you are assembling. So make the beginning look like this:

    [BITS 16] ;tell the assembler that its a 16 bit code
    [ORG 0x7C00] ;this tells the assembler where the code will be loaded at when it runs on your machine. It uses this to compute the absolute addresses of labels and such.
    
    jmp word 0:flush ;#FAR jump so that you set CS to 0. (the first argument is what segment to jump to. The argument(after the `:`) is what offset to jump to)
    ;# Without the far jmp, CS could be `0x7C0` or something similar, which will means that where the assembler thinks the code is loaded and where your computer loaded the code is different. Which in turn messes up the absolute addresses of labels.
    flush: ;#We go to here, but we do it ABSOLUTE. So with this, we can reset the segment and offset of where our code is loaded.
    mov BP,0 ;#use BP as a temp register
    mov DS,BP ;#can not assign segment registers a literal number. You have to assign to a register first.
    mov ES,BP ;#do the same here too
    ;#without setting DS and ES, they could have been loaded with the old 0x7C0, which would mess up absolute address calculations for data. 
    

    See, some load at 0x07C0:0000 and most load(and its considered proper to) at 0x0000:7C00. It is the same flat address, but the different segment settings can really screw up absolute memory addresses. So let’s remove the “magic” of the assembler and see what it looks like (note I don’t guarantee addresses to be completely correct with this. I don’t know the size of all opcodes)

    jmp word 0:0x7C04 ;# 0x7C04 is the address of the `flush` label 
    ...
    

    So, we jump to an absolute address.

    Now then. What happens when we don’t do this?

    take this program for example:

    mov ax,[mydata]
    hlt
    
    mydata: dw 500 ;#just some data
    

    This disassembles to something like

    mov ax,[0x7C06] 
    

    Oh, well it uses absolute addressing, so how could that go wrong? Well, what if DS is actually 0x7C0 ? then instead of getting the assembler expected 0:0x7C06 it will get 0x7C0:0x7C06 which are not the same flat address.

    I hope this helps you to understand. It’s really a complicated topic though and takes a while of low level programming to fully understand.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 421k
  • Answers 421k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer I have only had to do this once, and don't… May 15, 2026 at 11:03 am
  • Editorial Team
    Editorial Team added an answer I have just implemented it. I have created a feature… May 15, 2026 at 11:03 am
  • Editorial Team
    Editorial Team added an answer I think you got it quite wrong. Git's core.editor setting… May 15, 2026 at 11:03 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.