flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > how hash_constant works ?

Author
Thread Post new topic Reply to topic
Gilles



Joined: 25 Oct 2004
Posts: 24
Gilles 25 Oct 2004, 10:26
This code is from preproc.inc
hash_constant:
push esi ebp
mov esi,ebx
xor ebx,ebx
mov eax,2166136261 ;0x811C9DC5
mov ebp,16777619 ;0x1000193
hash_constant_name:
xor al,[esi+ebx]
mul ebp
inc bl
cmp bl,cl
jb hash_constant_name
mov ebp,eax
and ebp,2FFh shl 22
shl eax,10
xor eax,ebp
or ax,cx
mov ebx,esi
pop ebp esi
ret
Can someone explain to me how this code is working and what do expect from it ? Sad
Thanks in advance
Post 25 Oct 2004, 10:26
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.