#include <stdint.h> // typedef int16_t result_t; typedef int32_t result_t; volatile uint8_t bl, bh; volatile result_t result; int main(void) { result = (result_t)(int8_t)bh * 256 + bh; }