# Thread: How to explain the problem about address?

1. ## How to explain the problem about address?

I use TC2.0,and I want to calculate address through
segment and offset,look:
Code:
```unsigned long p;
p=MK_FP(0x20,0x100);
printf("p=%lx\n",p);```
when it run,it display 200100,but I
think the address must be 0x300,why?
how to explain the problem

2. According to my google result:
Code:
`MK_FP(0x20, 0x100) = (0x20 << 16) | 0x100 = 0x200000 | 0x100 = 0x200100`

3. TC2.0
Seriously??? Turbo C 2.0? Why? You do realize this software is from the late 1980s, right?

4. You need to watch the new show revolution; from it I see them using old PC to get around whatever shuts the electricity down in the USA and likely the world. http://www.nbc.com/revolution/
Then, there might be a lot of people in on it needing to use old Turbo C versions.

Anyone, recognize how old the PC was in the show?
I believe it was from the MS-DOS days.

Tim S.

5. Yup, I am also a bit curious as to where TC2.0 is being used now a days??

Popular pages Recent additions