in reply to hexadecimal division

I can't tell if you are using the right algorithm, but here my little implementation inside the debugger.

Please note

DB<96> x @input = map {ord} split //,'202005' # input ASCII values 0 50 1 48 2 50 3 48 4 48 5 53 DB<97> $result = 0 ; # neutral start DB<98> $result ^= $_ for @input ; # XOR all DB<99> p $result 5 DB<100> p $result2 = int( $result / 0x10 ) 0 DB<101> print "Input: "; printf "0x%x ",$_ for @input Input: 0x32 0x30 0x32 0x30 0x30 0x35 DB<102> printf "Output: 0x%x", $result2 Output: 0x0

NB: in case you adopt this code:

HTH!

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Wikisyntax for the Monastery