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 8526617
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T08:19:21+00:00 2026-06-11T08:19:21+00:00

with the help of some tutorials, i wrote a little piece of code, to

  • 0

with the help of some tutorials, i wrote a little piece of code,
to display me a string, after booting from my floppy.

my problem is now, that dont understand some lines, were i hope u can help me,
or just tell me, if im right.

code:

mov ax, 07C0h
add ax, 288         ; (512 + 4096) / 16 = 288
mov ss, ax
mov sp, 4096

mov ax, 07C0h
mov ds, ax
  1. line: start the program @ the adress 07C0h
    (could i change this?)
  2. Add space for 288 paragraphs to ax
  3. ?
  4. Space of 4096 bytes for my program
    (to store variables and stuff?)
  5. Go to the start adress
  6. ?

thanks for your help.

  • 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-11T08:19:22+00:00Added an answer on June 11, 2026 at 8:19 am
    mov ax, 07C0h   
    add ax, 288         ; (512 + 4096) / 16 = 288
    mov ss, ax
    

    This puts the start of the stack segment (ss) at segment number 07C0h + 288. The bootloader is loaded at the start of segment number 07C0h. The size of a bootloader is 512 bytes and each segment is 16 bytes. This means that the stack segments starts 4096 bytes after the end of the bootloader.

    mov sp, 4096
    

    This sets the stack pointer to 4096. This means that the top of the stack is now 4096 bytes past the start of the stack segment. Effectively, this has allocated 4096 bytes for the stack.

    mov ax, 07C0h
    mov ds, ax
    

    This sets the data segment to 07C0h (the segment where your bootloader starts). When you refer to data labels later in the bootloader, they will use the data segment, so your boot loader has to be at the start of the data segment to be able to find the right location in memory.

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

Sidebar

Related Questions

Does anyone now where i can find some good tutorials / code samples regarding
With some help from SO, I have a bit of javascript/jquery that cycles through
Need some help with this problem in implementing with XSLT, I had already implemented
Need some help from javascript gurus. I have one page where http://www.google.com/finance/converter is embedded
Need some help assigning a mouseover event to display some icons that start out
I recently start to learn CSS and table less design. After reviewing some tutorials
I am trying to validate a password string with javascript and need some help
I need some help solving some compile errors. I was following a tutorial (at
Need some help... I have jasperserver 4.1 installed on my ubuntu. It runs via
Need some help with Activerecord Querying in a has_many :through association. Model: Job class

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.