Hi,

I have just finished my magicball8 progam.
Stop have a look and try it :grin:
Have fun

I am most willing to hear comments and complains
Optimsation of code is also welcomed ;)
Posted on 2002-09-28 11:15:48 by roticv
Funny program. :)
myrandom proc uses edx ecx seed:DWORD

;testing
mov eax,seed
; mov edx,eax
;not needed

; mov ecx,seed
mov ecx,eax

not ecx

; shl eax,16
; shr edx,16
; add eax,edx
rol eax,16

; add eax,ecx
; add ecx,eax
; xchg eax,ecx
lea eax,[eax + ecx*2]
ret
myrandom endp
Posted on 2002-09-28 11:41:56 by bitRAKE
Thanks anyway,

I was just testing out a random generator until i found one on the board. :grin: I did not use the proc at all.
Posted on 2002-09-28 20:54:28 by roticv

Optimsation of code is also welcomed ;)
I was just being silly above. :grin:
Posted on 2002-09-28 22:08:37 by bitRAKE
i'm not kidding
i played around a minute or two and then i felt bored and asked it "are you gay?"
and it crashed... funny program :)
Posted on 2002-10-15 05:06:24 by mob
hmm.. must be the program do not like your question :grin:

seriously.. i do not know why it would crash. I thought i fixed the crashing part due to the program running out of the range... hmm.. maybe something is wrong.. but i have no idea.
Posted on 2002-10-15 09:41:26 by roticv
After some ( ;) ) "null-questions" (clicking ask question, ask. No question typed), it crashed. :(
Memory leak?
Posted on 2002-10-15 11:55:36 by scientica
hmmm...that means time to add some anti crash code in the file.

I will work on the code and post it again.
Posted on 2002-10-16 01:42:57 by roticv
Roticv,

I typed the same question of Mob,and I got the incredible reply!!!

Affirmative.

:confused: :confused: :confused:

Roticv,please forgive me but i am really confused,this reply ???, How it can happen? (Not kidding,really)

Regards,

Vortex
Posted on 2002-10-16 03:32:26 by Vortex
Look at these it did not crash :grin: Don't worry I am trying my best to fix the bug. Give me some time ;)
Posted on 2002-10-16 08:21:49 by roticv
Hi all,

I did some change in the coding and now it seem to not crash at all. (I tried entering null ansers for the past 10min). However if it still crash, could you guys do me a favour by informing about it?

Thanks in advance

Victor Loh
Posted on 2002-10-16 10:06:45 by roticv
roticv

Just a little note:


invoke CloseHandle,hfile
invoke PostQuitMessage,0
@continue:

I think should be:

invoke CloseHandle,hfile
invoke PostQuitMessage,0
ret
@continue:
Posted on 2002-10-16 19:59:23 by forge
Yeah.. you are right. I do need to put ret there. Thanks
Posted on 2002-10-16 21:53:13 by roticv
Ok... Maybe Roticv is trying to develop a kind of Artificial Intelligence... :)

Regards,

Vortex
Posted on 2002-10-19 14:48:18 by Vortex