void setup() { Serial.begin(9800); } void loop() { unsigned long pos; pos = (unsigned long)0xFF << 8; Serial.println(pos,HEX); delay(1000); }