A hypothetical machine has 64 general purpose registers of 64 bits each. The machine has 4G word of RAM (assume that each word is of 64 bits and memory is word addressable). The instructions of machine are of fixed format and are 64 bit long. Instructions of the machine consist of operation code, addressing mode specification, one register operand and one memory operand. The machine uses 2 bits to specify addressing mode as given below: Addressing mode bits Register Operand Memory Operand 00 direct direct 01 direct immediate data 10 register indirect direct 11 register indirect immediate data Machine can specify 1024 different operation codes. Assume that the machine has named 5 of its general purpose registers based on their possible role in instruction execution as Program Counter (PC), Accumulator (AC), Memory Address Register (MAR), Instruction Register (IR) , Data Register (DR) and Flag registers (FR). Perform the following tasks for the machine.
(i) Specify the size of different fields that are needed in the instruction. (You may leave some bits as unused).
(ii) Put some valid values in certain registers and memory locations and demonstrate examples of different addressing modes of this machine

A hypothetical machine has 64 general purpose registers of 64 bits each. The machine has 4G word of RAM (assume that each word is of 64 bits and memory is word addressable). The instructions of machine are of fixed format and are 64 bit long. Instructions of the machine consist of operation code, addressing mode specification, one register operand and one memory operand. The machine uses 2 bits to specify addressing mode as given below:
Addressing mode bits Register Operand Memory Operand
00 direct direct
01 direct immediate data
10 register indirect direct
11 register indirect immediate data
Machine can specify 1024 different operation codes. Assume that the machine has named 5 of its general purpose registers based on their possible role in instruction execution as Program Counter (PC), Accumulator (AC), Memory Address Register (MAR), Instruction Register (IR) , Data Register (DR) and Flag registers (FR). Perform the following tasks for the machine.
(i) Specify the size of different fields that are needed in the instruction. (You may leave some bits as unused).
(ii) Put some valid values in certain registers and memory locations and demonstrate examples of different addressing modes of this machine.

RELATED TOPICS

ABOUT ANSWERBAG

Answerbag wants to provide a service to people looking for answers and a good conversation. Ask away and we will do our best to answer or find someone who can.We try to vet our answers to get you the most acurate answers.