delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/19/22:30:09

Xref: news2.mv.net comp.os.msdos.djgpp:6179
Newsgroups: comp.os.msdos.djgpp
From: Nick Collier <ntcollie AT midway DOT uchicago DOT edu>
Subject: ASM write to system memory?
Message-ID: <31F02C72.3216@midway.uchicago.edu>
Sender: news AT midway DOT uchicago DOT edu (News Administrator)
Organization: University of Chicago -- Academic Computing Services
Mime-Version: 1.0
Date: Sat, 20 Jul 1996 00:46:42 GMT
Lines: 11
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hey all,

How do I write to system memory using asm? More specifically,
what do I set ES to? The way I understand it so far is that in C I can malloc
some chunk then call _my_ds(), and then use what _my_ds() returns as the
value for ES. Assuming ES:DI - DI would then refer to the malloced memory.
Is this correct? I have nice asm polygon drawing routing (based on M. Abrash's)
which draws to the screen, but want to convert it to write to system memory as well.

Thanks,
Nick

- Raw text -


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