I use TC2.0,and I want to calculate address through
segment and offset,look:
when it run,it display 200100,but ICode:unsigned long p; p=MK_FP(0x20,0x100); printf("p=%lx\n",p);
think the address must be 0x300,why?
how to explain the problem
I use TC2.0,and I want to calculate address through
segment and offset,look:
when it run,it display 200100,but ICode:unsigned long p; p=MK_FP(0x20,0x100); printf("p=%lx\n",p);
think the address must be 0x300,why?
how to explain the problem
According to my google result:
Code:MK_FP(0x20, 0x100) = (0x20 << 16) | 0x100 = 0x200000 | 0x100 = 0x200100
Seriously??? Turbo C 2.0? Why? You do realize this software is from the late 1980s, right?TC2.0
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.
"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson
Yup, I am also a bit curious as to where TC2.0 is being used now a days??