logs archiveIRC Archive / Undernet / #asm / 2007 / January / 11 / 1
M3
hi
did anyone tryed to translate an asm code to php?
the NOT function is not working properly
ike
hmm?
Ashe`
asm to php, why not
Yesterday I was doing C to HTML, so who knows
ike
what`s next, asm to bat?
Ashe`
Don't be silly, that's impossible :o
M3
i mean xor, and, shr functions in hex
Ashe`
^, & and >>?
M3
yes
Ashe`
What about them?
         

M3
php take the variables as strings, and not a hex values
Ashe`
Ehm no
M3
so if i want to do xor C3E8, 1234 i cannot do it directly
dbtid
duh, get a calculator
why would you do something like that?
Ashe`
+ PHP has bitwise operators anyway
M3
what i did is for example $rs1 = hexdec(F3E4) ^ hexdec($randt);
dbtid
having the machine xor constants like that is stupid
that's different
Ashe`
0xf3e4
dbtid
that's unknown at compile time
flavious
hi
dbtid
or load time
or whatever
Ashe`
+ hexdec takes a string
M3
mmm so it will be better if i do for example a perl script?
Ashe`
?
M3
it´s a algorithm
Ashe`
(who cares?)
PHP has bitwise operators, you got your answer
We can't guess what you have in your brain
Even if there's not much to guess
dbtid
this isn't the right channel for this discussion either
bug the people in #php
flavious
Could anyone help me with this code http://pastey.net/4898 please ?
it's about hooking of functions from statically linked dlls
the problem arises in the second while loop
neonfreon
;)
next »