www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/04/15/01:20:43

From: "John M. Aldrich" <fighteer AT NO DOT SPAM DOT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: new asm question...
Date: Mon, 14 Apr 1997 09:22:26 -0700
Organization: Two pounds of chaos and a pinch of salt
Lines: 22
Message-ID: <335259C2.2E3A@NO.SPAM.cs.com>
References: <5iuke9$cu3 AT nr1 DOT toronto DOT istar DOT net>
NNTP-Posting-Host: ppp108.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jeff Weeks wrote:
> 
> I've been tring to make a simple inline asm block to copy my virtual
> screen (virt[64000]) to 0xa000 (using near pointers... I've called
> __djgpp_nearptr_enable()).  So I looked up movsl and tried a little
> block but I can'tt get it to work.
> 
> Could someone please send a little code snippet to do this.

Are you certain that you're adding __djgpp_conventional_base to the
address of the video memory after the call to __djgpp_nearptr_enable()? 
Also, when dealing with absolute addresses, it's 0xa0000, not 0xa000.

I would post a snippet, but I'm not an expert and I don't want to
inadvertently make any mistakes.  ;)

-- 
---------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I |     mailto:fighteer AT cs DOT com      |
| Proud owner of what might one   |   http://www.cs.com/fighteer    |
| day be a spectacular MUD...     | Plan: To make Bill Gates suffer |
---------------------------------------------------------------------

- Raw text -


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