Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.os.development    |    Operating system development chatter    |    4,255 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 3,580 of 4,255    |
|    Alexei A. Frounze to muta...@gmail.com    |
|    Re: 16-bit absolute addresses    |
|    10 Dec 22 09:25:26    |
      From: alexfrunews@gmail.com              On Saturday, December 10, 2022 at 7:20:43 AM UTC-8, muta...@gmail.com wrote:       > If you want to point to video memory, you       > can hardcode an address by going:       ...       > char *x = MK_FP(0xb800, 0x0).              This just works in a test program I'm compiling with:       - Borland/Turbo C/C++, large model       - Open Watcom, large model       - Smaller C, huge, unreal and DPMI models              The definition for Smaller C is:       #define MK_FP(s,o) ((void*)(((unsigned long)(s) << 4) + (unsigned)(o)))              Alex              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca