www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/13/12:15:16

Xref: news2.mv.net comp.os.msdos.djgpp:7192
From: reynders AT cc DOT helsinki DOT fi (Joonas W N Reynders)
Newsgroups: comp.os.msdos.djgpp
Subject: About dosmemput:
Date: 13 Aug 1996 07:07:19 GMT
Organization: University of Helsinki
Lines: 22
Message-ID: <4up9j7$bjq@oravannahka.Helsinki.FI>
NNTP-Posting-Host: kruuna.helsinki.fi
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

	Have I understood it correctly: if I have a pointer to a buffer
and to screen memory (0xA0000), this copies 800 bytes from the buffer to
screen memory.

word vi = 0;
word bi = 0;

dosmemput(BufferPtr + bi, 800, ScreenPtr + vi);, right? 

And now if I add bi with, say 1600, 

bi += 1600;
dosmemput(BufferPtr + bi, 800, ScreenPtr + vi) ;

would copy 800 bytes from the 1600th byte of buffer pointed by BufPtr to
screen?

	Joonas

PS. This might sound trivial, but there is SOMETHING wrong in my gfx
routine and it has something to do with dosmemput.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019