[Mono-list] cpblk?

Dietmar Maurer dietmar@ximian.com
24 May 2002 13:02:01 +0200


On Thu, 2002-05-23 at 18:02, Michael Giagnocavo wrote:
> Hello,
> 
> 	Just assemble this -- it is a very simple case.  It also
> demonstrates how the cpblk doesn't have to work when the src and dest
> addresses overlap.  Test it on MSFT's CLR and you'll see that it
> eventually fails (and sometimes works).  It'd be cool if Mono's always
> worked (even though Partition III specifies "unspecified" behaviour if
> src and dest overlap).

I just implemented it using unix memcpy(). Doku for memcpy states it
does not work for overlapping regions, but IMO it makes no sense to make
that work, it only makes things slower.

> 	This is only a lame test, I'm working on a much longer test
> that's more accurate (protects IP) -- if you like I can send that later.

I would like to have a test that fails if CPBLK does not work. Your test
even pass if i implement CPBLK as NOP! 

> 	Is jmp implemented?

No, but I will implement it as soon as I get some code to test ;-)

- Dietmar