Fill selection with... (command Selection/Fill selection with...)
First select some of the bytes in a file then open the Fill
selection with dialog from the edit menu or using Ctrl + Shift +
F.
First decide if you want to enter the bytes in yourself - this is
useful for small numbers of bytes and if so select Input from
the combo box and enter the bytes below it.
Otherwise you may want to fill the selection with a file by
selecting File from the combo box and browsing to a file (It MUST
exist - this is why only browsing is allowed).
Note that if the selection is larger than the file or the hex
string you entered the selection will be filled with multiple
copies of your string/file and if it is smaller only a part of
the string will be entered into the selection.
Note also that an odd number of hex digits will result in the
first nibble of the last byte being the last hex digit entered.
e.g. "ffa" > "ff af fa
"
> "ÿ¯ú
"
(This doesnt apply to files as partial bytes cannot be
present in files)
Then select the type of assignment operator you want to use -
= - regular assign
|= - perform a bitwise or with the current byte and then assign
&= - perform a bitwise and with the current byte and then
assign
^= - perform a bitwise xor with the current byte and then assign
Below are the
File\Input Bit OpenFile Bit |= &= ^=
0 0 0 0 0
0 1 1 0 1
1 0 1 0 1
1 1 1 1 0