macro_rules! highbyte { ($word:expr) => { ... }; }
Get high byte from a 16-bit integer using pointer arithmetic
let high = highbyte(0xABCD); let low = lowbyte(0xABCD); assert_eq!(high, 0xAB); assert_eq!(low, 0xCD);