delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/03/16:59:09

From: "Michael Stewart" <mike AT reggin DOT freeserve DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP+NASM favour
Date: Thu, 3 Jun 1999 08:31:16 +0100
Organization: (Posted via) Netcom Internet Ltd.
Lines: 27
Message-ID: <7j5aoo$j0q$1@taliesin.netcom.net.uk>
References: <3755C659 DOT 2E6FD149 AT swipnet DOT se>
NNTP-Posting-Host: hgty.capgemini.co.uk
X-Trace: taliesin.netcom.net.uk 928394840 19482 194.42.240.2 (3 Jun 1999 07:27:20 GMT)
X-Complaints-To: abuse AT corp DOT netcom DOT net DOT uk
NNTP-Posting-Date: 3 Jun 1999 07:27:20 GMT
X-Newsreader: Microsoft Outlook Express 4.72.3155.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3155.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Mattias Eklöf wrote in message <3755C659 DOT 2E6FD149 AT swipnet DOT se>...
>I'm wondering if someone could type out two really minor asm functions
>that'd work with DJGPP+NASM for me. I want speed at the same time as my
>asm knowledge is very limited, and I don't feel like digging too deep
>into it just for the sake of two functions either.
>
>Anyway, what I need is:
>* a function something like void memcpy(char* to, char* from) that'd
>copy 64000 bytes of memory from (char*)from to (char*)to.


Why don't you use the memcpy function, as far as I'm aware you won't get
much faster code by writing it your self.

>* a function like void putmem(char* from) that'd copy 64000 bytes of
>memory from (char*) onto the screen (0xA000).


If you use the near ptr hack then you can use the memcpy function, or you
can use dosmemput function. (BTW the screen address in protected mode is
0xa0000)
Writing the routines in ASM will not get you much more speed (if any)


Michael Stewart


- Raw text -


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