Skip to content
Commit 55b25561 authored by Mario Six's avatar Mario Six Committed by Tom Rini
Browse files

cmd: Add command for calculating binary operations



This patch adds a command that enables the calculation of bit operations
(AND, OR, XOR) on binary data from the command line. Memory locations as
well as the contents of environment variables are eligible as sources
and destination of the binary data used in the operations.

The possible applications are manifold: Setting specific bits in
registers using the regular read-OR-write pattern, masking out bits in
bit values, implementation of simple OTP encryption using the XOR
operation, etc.

Signed-off-by: default avatarMario Six <mario.six@gdsys.cc>
parent 8354aa27
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment