# Even length payload = 24 bytes, no change BEFORE = 00010006523200060013436973636f203132303030475352 AFTER = 00010006523200060013436973636f203132303030475352 # Odd length payload = 23 bytes, add \x00 padding and then # byte-swap the last word (16-bit value) BEFORE = 00010006523200060012436973636f3132303030475352 MID1 = 00010006523200060012436973636f313230303047530052 AFTER = 00010006523200060012436973636f313230303047530052 # Ugly. Same as above, odd length payload = 25 bytes # but now, the last byte is >= \x80 # Compensate for glitch by decrementing each byte in last word by 1 # (\x00-1 = \xff, (-1/255 decimal) \x84-1 = \x83 (131 decimal) BEFORE = 00010006523200060013436973636f20313230303047535284 MID1 = 00010006523200060013436973636f2031323030304753520084 CMPSAT = -1 131 AFTER = 00010006523200060013436973636f203132303030475352ff83 # Even length payload = 24 bytes, # no change even though last byte is greater than \x80 BEFORE = 00010006523200060012436973636f313230303047535284 AFTER = 00010006523200060012436973636f313230303047535284