I just been browsing Grant Smith, aka Denthor of Asphyxia, Graphics Programming Tutorials on http://www.cprogramming.com/tutorial/tut1.html
Does anyone know his email address or how I can contact him?
I like his comparison of Pascal & C code. This is helping me to convert an old Pascal game to C++.
However there's still some Pascal functions I need C++ equivalent off. Eg.
addr - I think this is like C's &
getintvec - I think C equivalent is getvec?
setintvec - I think C equivalent is setvec?
Borland dos.h has these macros but are they equivalent of ofs & seg???
#define MK_FP(seg,ofs) ((void __seg *)(seg) + (void __near *)(ofs))
#define FP_SEG(fp) ((unsigned)(void __seg *)(void __far *)(fp))
#define FP_OFF(fp) ((unsigned)(fp))
mem[ : ] - I know memset to set it, but what about get ? Maybe peek & poke?
Let me know if these are correct translations from Pascal to C/C++.