Jump to content

operating systems and networking help please? any1?

Featured Replies

this is part of my assignment, i dont really mind if i dont get the answer, but i just want to know how to even work it out/do the calculations :/

can any1 just show the calculations with examples please?

any help please?


A processor has 24 registers, uses 8-bit immediates, and has 36 different instructions
(corresponding to 36 operation codes) in its instruction set. These 36
instructions are classified into 4 types as listed below:


Type-A: takes 2 source registers, uses 1
destination register;

Type-B: takes 1 source register, uses 1
destination register;

Type-C: takes 1 source register, 1 immediate,
uses 1 destination register;

Type-D: takes 1 immediate, uses 1 destination
register.

Assume that the Instruction Set Architecture requires that all instructions be a multiple of 8 bits (1 byte) in
length, and the operation codes (opcodes) are of fixed length.

a)
How many bytes do we need to use to
encode the Type-A instruction?

b)
How many bytes do we need to use to
encode the Type-C instruction?

thanks

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.