T
T
Type Programmer2018-05-28 13:02:28
assembler
Type Programmer, 2018-05-28 13:02:28

Segment and offset, how much where and what?

I'm learning assembler, writing small programs, but still don't understand how addressing works in real mode.
Let's say there is a zero segment, like so
0000:0000
What will be the value of the next segment. And how many there can be.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2018-05-28
@MegaCraZy6

Let's say there is a zero segment, like so
0000:0000
What will be the value of the next segment. And how many there can be.

The next one is 0001:0000. There are 65536 of them in total.
There is a linear address (A). It is calculated from an address of the form segment:offset (S:O) as follows:
A = S * 16 + O. That's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question