Path: utzoo!utgpu!watserv1!ria!uwovax!eric From: eric@uwovax.uwo.ca Newsgroups: comp.lang.c Subject: Turbo C && Video && memmove - help ? Message-ID: <6492.26a5bc49@uwovax.uwo.ca> Date: 19 Jul 90 17:57:29 GMT Lines: 28 I have these two neat little routines that work ok in compact and large models (Turbo C) but I am having problems making them work in models which are small data (small, medium...) They use TC's void *memmove(void *dest, const coid *src, size_tn) void *pushscreen(void) { unsigned *sbuf; sbuf = malloc(4096); memmove(sbuf, Vpage, 4096); return(sbuf); } void popscreen(unsigned *sbuf); { memmove(Vpage, sbuf, 4096); free(sbuf); } where Vpage has been previously defined as #define Vpage (unsigned far *)0xb8000000 Any suggestions ? (other than use a different model...) merci. -e