for($reg3=0; $reg3<128; $reg3++)
{
$reg1[$reg3] = $reg1[$reg3] ^ ($reg6[$reg3+256] & 1);
}
I really don’t understand what is happening here $reg1[$reg3] ^ ($reg6[$reg3+256] & 1);
and what would be it’s vb.net equivalent code.
It is performing a bitwise XOR between two operands, one of which is produced by applying a bitwise AND to two other operands. Other than that, it’s standard array indexes and addition.
The VB.Net code would be exactly the same if the types of the expressions support these operators (we don’t know what the values of the variables are).