#include <cstdint>
#include <iostream>

using byte = std::uint8_t;

struct Regs
{
	union
	{
		std::uint16_t bc;
		
		struct
		{
			// The order of these bytes matters
			byte c;
			byte b;
		};
	};
};

int main()
{
	Regs regs;
	
	regs.b = 1; // 0000 0001
	regs.c = 7; // 0000 0111
	
	// Read these vertically to know the value associated with each bit
	//
	//                             2 1
	//                             5 2631
	//                             6 8426 8421
	//
	// 256 + 4 + 2 + 1 = 263
	//
	// The overall binary: 0000 0001 0000 0111 
	
	std::cout << regs.bc << "\n";
	
	return 0;
}