Example of Text Processing : Modifying Hexadecimal Values

Bitmap2LCD is a tool for programming small Graphic LCDs in embedded systems and a programmable graphic and text processing tool.

Example of Text Processing

Modifying Hexadecimal Values

Example of Rotating of 1 bit to the left of all hex values found in the text editor line, function repeated  on every editor line where a Hex Value is found.

Hex data before processing  0x01  0x02  0x03  0x04  0x05

Hex data after Processing     0x02  0x04  0x06  0x08  0x0A

Batch program :

while hex in line
      then get hex (index)
rotate bits to left (1)
      then overwrite hex

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *