Write out the fields of the encoding with the number of


Assignment

1) c = (a + b) /a
d = b*(a + b) / a * c
e = a* (c + d)

Write the assembly to do the following statements for each of the following architectures. Use the least number of instructions.

• Stack ISA

2) You are to create a Stack ISA for variable size encoding. The ISA you create will have 8-bit, 16-bit, 32-bit unsigned and signed number. In addition you have 32-bit floating point numbers. You want to be able to pop constants of each data type. The memory address for push and pop variables are 24-bits. You need to encoding for the following math instructions: add, subtract, divide, multiple, and, or, not, xor, equal, not equal, less than, greater than. Write out the fields of the encoding with the number of bits. Give information on how the bits in each field correspond to the instruction.

3) You are to create a stack ISA for fixed size encoding at 24-bits. You are only creating an ISA for 16-bits sign numbers with 16-bits of memory address. Write out the fields of the encoding with the number of bits. Tell the number of instructions your ISA can support.

Request for Solution File

Ask an Expert for Answer!!
Data Structure & Algorithms: Write out the fields of the encoding with the number of
Reference No:- TGS02446501

Expected delivery within 24 Hours