Ow, sorry, my bad.xorc1zt wrote:sqrtss return the square root not the cube one.evilgravedigger wrote:requires SSE.Code: Select all
Global T.f = 19.0 Global A.f !movq xmm0,qword[v_T] !sqrtss xmm0,xmm0 !movq qword[v_A],xmm0 Debug A
sse cuberoot : http://www.musicdsp.org/showone.php?id=206
Search found 8 matches
- Tue Feb 28, 2012 8:39 pm
- Forum: Assembly and C Programming in PureBasic
- Topic: Cube root
- Replies: 25
- Views: 20075
Re: Cube root
- Tue Feb 28, 2012 10:49 am
- Forum: Coding Questions
- Topic: Drawin issues: bottom line & window freezing
- Replies: 3
- Views: 887
Re: Drawin issues: bottom line & window freezing
I solved freezing problem. I just added waitwindowevent(1) to the loop, works like a charm now.
- Mon Feb 27, 2012 7:27 pm
- Forum: Coding Questions
- Topic: Drawin issues: bottom line & window freezing
- Replies: 3
- Views: 887
Drawin issues: bottom line & window freezing
Okay, what I have is a very basic block game, which computer plays with itself :mrgreen:
I have 2 questions about it:
1) How do I remove the bottom line, when it's filled with boxes and move the whole image down, like in tetris?
3) How do i avoid program freezing? When I click the window, program ...
I have 2 questions about it:
1) How do I remove the bottom line, when it's filled with boxes and move the whole image down, like in tetris?
3) How do i avoid program freezing? When I click the window, program ...
- Mon Feb 27, 2012 3:42 pm
- Forum: Game Programming
- Topic: little Tetris Game
- Replies: 11
- Views: 9653
Re:
I made this code for the purepuch contest but I can't compile the instructions no more to respect the rules of the contest : 10 lines max.
So, the code of this simple Tetris game contains only 19 complete lines (80 chars per line)
I saw the size of the executable 18.4KB Macro BL(X):For I=0 To 3:X ...
So, the code of this simple Tetris game contains only 19 complete lines (80 chars per line)
I saw the size of the executable 18.4KB Macro BL(X):For I=0 To 3:X ...
- Mon Feb 27, 2012 3:22 pm
- Forum: Assembly and C Programming in PureBasic
- Topic: Cube root
- Replies: 25
- Views: 20075
Re: Cube root
Code: Select all
Global T.f = 19.0
Global A.f
!movq xmm0,qword[v_T]
!sqrtss xmm0,xmm0
!movq qword[v_A],xmm0
Debug A
- Mon Feb 27, 2012 2:45 pm
- Forum: Assembly and C Programming in PureBasic
- Topic: Hash Functions
- Replies: 17
- Views: 37779
Re: Hash Functions
You need to preserve ebx, edi and esi.
Otherwise it could cause unexpected behaviour.
Procedure.q FNV32(*pdata.i,len)
!push ebx
!push edi
!push esi
!mov esi, [p.p_pdata+12]
!mov ecx, [p.v_len+12]
!mov eax, 2166136261
!mov edi, 0x01000193
!xor ebx, ebx
!ntbyte:
!mov bl, [esi]
!xor eax, ebx ...
Otherwise it could cause unexpected behaviour.
Procedure.q FNV32(*pdata.i,len)
!push ebx
!push edi
!push esi
!mov esi, [p.p_pdata+12]
!mov ecx, [p.v_len+12]
!mov eax, 2166136261
!mov edi, 0x01000193
!xor ebx, ebx
!ntbyte:
!mov bl, [esi]
!xor eax, ebx ...
- Thu Feb 23, 2012 10:37 pm
- Forum: Coding Questions
- Topic: Multy-thread md5/sha1 bruteforce?
- Replies: 3
- Views: 910
Re: Multy-thread md5/sha1 bruteforce?
The obvious way would be to do the following:
1. Thread starts from 0%
2. Thread starts from 25%
3. Thread starts from 50%
4. Thread starts from 75%
Of course I understand, understand, but how to implement the idea?
1 thread - from AAAA to BBBB
2 thread - from CCCC to DDDD
etc
So if password is ...
1. Thread starts from 0%
2. Thread starts from 25%
3. Thread starts from 50%
4. Thread starts from 75%
Of course I understand, understand, but how to implement the idea?
1 thread - from AAAA to BBBB
2 thread - from CCCC to DDDD
etc
So if password is ...
- Thu Feb 23, 2012 10:07 pm
- Forum: Coding Questions
- Topic: Multy-thread md5/sha1 bruteforce?
- Replies: 3
- Views: 910
Multy-thread md5/sha1 bruteforce?
Hi there.
I'm coding md5/sha1 CPU bruteforce tool (I know that GPU bruters are million times faster etc, I only code it for learning). My question is mostly about algorithm.
For example, I use 1 thread for bruteforcing passwords from AAAAA to ZZZZZ.
How to use second thread? My idea was - bruteforce ...
I'm coding md5/sha1 CPU bruteforce tool (I know that GPU bruters are million times faster etc, I only code it for learning). My question is mostly about algorithm.
For example, I use 1 thread for bruteforcing passwords from AAAAA to ZZZZZ.
How to use second thread? My idea was - bruteforce ...