i've been trying to program a chip8 emu in c++ but there are somethings i dont get
1. how you can tell what the opcode is
for example if the opcode is 0xE0 ( clear the screen ), then why is it written like
opcode = (memory[pc]<<8 + memory[pc+1]);
pc+=2;
switch ((opcode&0xF000)>>12)
{...