Why call CS Code Segment?

Programming, for all ages and all languages.
Post Reply
User avatar
david
Member
Member
Posts: 93
Joined: Tue Aug 21, 2007 4:22 am
Location: Beijing.China
Contact:

Why call CS Code Segment?

Post by david »

A question in my textbook:
Why call CS code segment? Why call SS stack segment?
It's difficult to answer.
I think just the men who create 8086/8088 CPU could answer it.
Just For Fun
User avatar
Solar
Member
Member
Posts: 7615
Joined: Thu Nov 16, 2006 12:01 pm
Location: Germany
Contact:

Re: Why call CS Code Segment?

Post by Solar »

Not really. But since it's a question in your textbook (i.e., homework), I am reluctant to answer them other than with a counter-question (so you get a chance to reach the solution by yourself):

What is the instruction pointer?

What is the stack pointer?
Every good solution is obvious once you've found it.
DeletedAccount
Member
Member
Posts: 566
Joined: Tue Jun 20, 2006 9:17 am

Re: Why call CS Code Segment?

Post by DeletedAccount »

(C)ode (S)egment => CS
(S)tack (S)egment => SS

Mu ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha ha :D
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: Why call CS Code Segment?

Post by Brendan »

Hi,
david wrote:Why call CS code segment? Why call SS stack segment?
I think that at the time 8086 was being created, the names "foo" and "bar" had already been taken... ;)


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Re: Why call CS Code Segment?

Post by JamesM »

Brendan wrote:Hi,
david wrote:Why call CS code segment? Why call SS stack segment?
I think that at the time 8086 was being created, the names "foo" and "bar" had already been taken... ;)


Cheers,

Brendan
:D
Post Reply