Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / "Copy memblock" bug ?

Author
Message
Kelebrindae
21
Years of Service
User Offline
Joined: 15th Sep 2003
Location: Where cheeses are scarier than dragons.
Posted: 18th Nov 2004 22:30 Edited at: 18th Nov 2004 23:40
Here's my problem:
Let's say I've got a memblock n°1 containing the following bytes:
111122223333
I want to create a memblock n°2 containing the same datas, but in a different order, like this:
222233331111
So I create the second memblock with the same size as the first one, and use the "copy memblock" command. It looks a bit like this (the real code is a lot more complex than this, but it's simplier to explain the problem this way):
make memblock 2,12
copy memblock 1,2,4,0,4
copy memblock 1,2,8,4,4
copy memblock 1,2,0,8,4


But after running this, the memblock 2 contains exactly the same datas as the first one, in the same order (111122223333); just as if the third parameter (copy start position in source memblock) was replaced by the fourth one (copy start position in target memblock).

Did anyone have this problem before? Is it possible to fix it? Am I completly wrong?

Ideas: memories of things which did not occur yet...
Kelebrindae
21
Years of Service
User Offline
Joined: 15th Sep 2003
Location: Where cheeses are scarier than dragons.
Posted: 18th Nov 2004 23:43
Ooops! I was completly wrong; "copy memblock" works fine.

Can't we delete this post and pretend that nothing happened?



(ooh, I need more sleep...)

Ideas: memories of things which did not occur yet...

Login to post a reply

Server time is: 2025-05-24 12:56:07
Your offset time is: 2025-05-24 12:56:07