delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/03/04/05:36:27

Date: Fri, 04 Mar 1994 11:14:58 +0100
From: Thomas Sams <SAMS AT nbivax DOT nbi DOT dk>
Subject: RE: Writing/read from video card at 0xD0000000 ... djgpp <--> bcc
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Cc: Thomas Sams <SAMS AT nbivax DOT nbi DOT dk>

Thanks for the advice, DJ and others!
Unfortunately I still have problems:

  dosmemget( 0xD000L * 16 + iline * 1024, 1024, (void *) line );

reads a line from the MFG display memory. This works. ( I read 
data put to the memory with a Borland C compiled protram.)

However

  dosmemput( (void *) line, 1024, 0xD000L * 16 + iline * 1024);

followed by a dosmemget as above, shows that only every second 
byte is set correctly. 

Could this be related to "All transfer between host and MFG are 
16 bits wide" (from MFG manual)? Maybe what I need is a dosmemput
version which allows for writing 2byte words to the MFG memory?

Thomas


- Raw text -


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