Assuming a basic video game consisting of a processor and memory to store the game processing and joystick input requests, and that ALU is able to add up to three different joystick input requirements. The table below shows the binary encodings without each joystick request.
Requisição Código Requisição Código
Up 0010101 A 1001010
Down 1010101 B 1110101
Left 1101010 C 1001001
Right 0011101 Start 0010110
a) How much should the ALU (variable width w) be to support joystick requests in order to there is no overflow. The table below shows the non-flagged binary encodings of each joystick.
b) As a way to reduce costs with the production of a processor with less capacity arithmetic, ie, 7 bits, explain technically, what would be the practical result in the game, if the player to make a combination that causes an overflow. Discuss.