since the byte is the lowest addressable datum and bit rotating/flipping can come in to play here, are there any programs that can enable you to write ones and zeroes (binary), and after every 8 of them it can write the corresponding byte based on measuring textual ASCII values?
For example, I write:
10010011 and the program reads every character (which is 1 byte) and checks an ASCII table to see if it's a one or zero ... when known, it records the data. When you've written 8 of them it then writes the corresponding byte value from measured input of ASCII 1s and 0s to a file. In other words it can create a byte with the total measured value of the textual ASCII to bit flipping integer, such as through fstream or such.
Any programs that can do this? I ask because I want to actually be able to write opcodes bit-by-bit, not byte-by-byte. I'm sure what I'm saying here has to be possible in some way.
bitshifts
andbitwise or
to generate abyte
from givenbits
echo 0 1 0 0 0 0 0 0 0 1 1 1 1 1 1 1 >foo
,cat foo | tr -d ' ' | sed 's/\(0\|1\)\{8\}/&\n/g' | xargs -I{} echo 'ibase=2;obase=10000;{}' | bc