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

  • SEARCH
  • Home
  • 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 9191253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:38:26+00:00 2026-06-17T20:38:26+00:00

I am writing my first OS boot sector in assembly using NASM. I have

  • 0

I am writing my first OS boot sector in assembly using NASM. I have it working, it just displays “Hello OS world!” in red letters. Simple enough. I have converted my boot.asm into boot.bin, and that into boot.img. I am using VMWare player, i mounted the boot.img as a floppy drive and booted from there and it works great.However there are a few lines of this assembly code who’s purpose I don’t understand.

       org  07c00h                         
       mov  ax, cs
       mov  ds, ax
       mov  es, ax
       call DispStr         
       jmp  $           
   DispStr:
       mov  ax, BootMessage
       mov  bp, ax 
       mov  cx, 16  
       mov  ax, 01301h      ; 
       mov  bx, 000ch       ;
       mov  dl, 0           ;
       int  10h             ;
       ret
   BootMessage:     db  "Hello, OS world!"
       times    510-($-$$)  db  0   
       dw   0xaa55              ; 

The lines ending with the semi-colon are the ones that i don’t understand. I have done a lot of googling and have been able to figure out the other stuff.
I am fairly competent in writing assembly. So for example I know mov ax,01301h moves the 01301h into the AX register. But i don’t understand why, or how 01301h is significant. I would guess they are somewhat like parameters for formatting the string, but that is just a guess. Any and all help would be greatly appreciated.

  • 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-06-17T20:38:27+00:00Added an answer on June 17, 2026 at 8:38 pm

    Check out this page about INT 10H for more information. Those numbers are parameters controlling the behaviour of that interrupt. In your case:

    ax = 0x1301 -> ah = 0x13 al = 0x01
    bx = 0x000c -> bh = 0x00 bl = 0x0c
    cx = 16
    dl = 0x00
    

    The AH=0x13 means ‘write string’, with various other controlling parameters:

    AL = write mode -> 1
    BL = color -> 0x0c = light red
    BH = page number -> 0
    CX = string length -> = 16
    DH = row -> 0
    DL = column -> 0
    ES:BP = offset of string -> pointer to BootMessage string
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So i am writing my first Java application using MVP pattern. One of MVPs
I am writing my first FireFox extension and I have some questions. Maybe someone
Writing my first app with CoreData. The book I'm using to guide me has
Our team is writing its first JSF 2.0 application since using Stripes for many
I'm writing my first socket project and I have a problem. When the client
I am writing my first little Access 2003 application. I have two queries that
I'm writing my first iPhone application and I'm having trouble switching views. I have
Im writing my first online shop in PHP. Now working on add product form
I am writing my first Android app. It will have hundreds of menu links
I am writing my first android app and have very limited experience in parsing

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.