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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T00:21:56+00:00 2026-05-27T00:21:56+00:00

I have seen a assembly program written from a book about assemble: assume cs:code

  • 0

I have seen a assembly program written from a book about assemble:

assume cs:code
   code segment 
   dw 0123h,0456h,0789h,0abch,0defh,0fedh,0cbah,0987h
   mov bx,0
   mov ax,0

   mov cx,8
s: add ax,cs:[bx]
   add bx,2
   loop s

   mov ax,4c00h
   int 21h
 code ends
 end

This program’s function is to add eight numbers. The author compiled this program in the

DOS and use the DEBUG to see how this program be loaded.

The author use the R command and got that

DS = 0B2DH ES = 0B2D SS = 0B3D CS = 0B3D IP = 0000

And then the author said that this program is loaded from the address 0B3D:0000.

I’m a confused that why this program is loaded from the address 0B3D:0000?

Is this because the existence of the Program Segment Prefix(PSP)?

If the answer is the existence of the PSP, what is in the PSP?

  • 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-27T00:21:56+00:00Added an answer on May 27, 2026 at 12:21 am

    Indeed, for every program DOS creates a so-called Program Segment Prefix and when a program starts, the DS and ES segment registers are loaded with the segment address of its PSP.

    In the PSP there are a number of things useful to DOS itself and potentially to the application. The most useful one is the program’s command line. I’ve never used any other PSP fields, just the command line.

    You can see what’s inside the PSP here, here, here, here and in many other places.

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

Sidebar

Related Questions

I have seen examples of printing from a windows application but I have not
I have seen lots of questions recently about WPF... What is it? What does
I have seen a lot of discussions going on and people asking about DataGrid
I have seen many posts and questions about Mocking a private method but still
Sorry about the terrible title. I have a signed assembly 'Signed.dll' that is a
I've seen this Topic : Creating an instance from a class name and written
I have seen in many article it is written that Delay signing and strong
Have seen some similar questions: What is the difference between a JavaBean and a
I have seen Solutions created in Visual Studio 2008 cannot be opened in Visual
I have seen simple example Ajax source codes in many online tutorials. What I

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.