Posts

Showing posts from February, 2023

CMPUT 229 – Assignment #3

You are participating in the Computing Science Industrial Internship Program and your placement is with Tiny Inc., a company that produces TinyProc— a new processor de veloped for the automobile industry. All instructions in TinyProc have 16 bits. TinyProc also works with 16-bit addresses. The format of a branch instruction in TinyProc is as shown below: Where rs and rt specify the source and target registers for the branch instruction, respectively. The address of the target of a branch instruction is computed using the same mechanism used in the MIPS processor, but the increment of the PC and the shift left have to be adjusted for a 16-bit address machine: first the Program Counter (PC) is incremented by two, then the bitfield address of the branch instruction is shifted left by one, sign-extended to sixteen bits, and added to the incremented PC. There are two branch instructions in the Instruction Set Architecture of TinyProc. The opcode for beq is 010 and the opcode for blt is 011....

Get Help from Us

Name

Email *

Message *