answersLogoWhite

0


Best Answer

Two address instructions use registers as operand locations.

Example of a half word length (16 bit) Two address format.

Bits 0-3 OP-Code bits (4 bits 16 different Mnemonics).

Bit 4 instruction type ( e.g. 0 means half word length).

Bit 5 fixed at value 1 used as extension to op-codes.

Bits 6-9 Address A (4 bits refers to a registers hence a total of 16 registers).

Bits 10-11 addressing modes ( 2 bits hence 4 different addressing modes in this case).

Bits 12-15 Address B (4 bits refers to a registers hence a total of 16 registers).

If 16 OP-codes for One address instructions is to be: ADD, ADC, SUB, SBC, XOR, BIT, CMP, INC, DEC, LDA, STA, AND, OR, JMP, BRN, JSR.

For Two address instructions the following 6 OP-Codes are dropped: INC, DEC, STA, BRN, JMP, JSR, but new OP-Codes with the help of bit #5 is introduced instead

------------------------------------------------

now let's to introducing

One Address Instructions

This is for a 32 bit CPU word length.

Bits 0-3 OP Code bits (4 bits 16 different OP Codes).

Bit 4 word length (0/1 Two different length 16 or 32 bit in this case).

Bits 5-7 Addressing Modes (3 bits 8 different Addressing Modes).

Bits 8-31 # of Addresses (2^24 Addressing Options).

The possible OP-Codes could be: ADD, SUB, ADC, SBC, AND, XOR, ORA, BIT, CMP, LDA, STA, INC, DEC, BRN, JSR, JMP.

one addressing

24 bit Address

3 bit AM

1/0

OP Code

two addressing

0000

00

1111

1

0

0010

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

10y ago

y=(a-b)/(c+de)

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Difference between two address instruction and one address instruction?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the difference between bus cycle and instruction cycle?

Bus cycle - clock cycles taken to complete one bus transaction. Instruction cycle - clock cycles taken to complete execution of one instruction


What is the difference between communication and instruction?

Communication is when two people are both sending and receiving information to each other. Instruction is when one sends information to another that receives.


What is the difference between a Navy instruction and a Navy notice?

An instruction is only cancelled by they issuer or a higher authority. A notice is automatically canceled after six months but can be extended up to one year.


What is the difference between a website address and an email?

email address is individual person address but web address is public address. email address is different for every one in the world but web address is same for every one in the world.


Mention any one byte call instruction and the address to which it is points to?

RST 2 is one example of a one byte call instruction. It points to 0010H.


State difference between communication and instruction?

Communication is when two people are involved. In this, both send and receive information to each other. Instruction is a detailed information about how something should be done or operated. In this, one person sends the information to the other.


What is the difference between one and one's?

difference between one- ones


What is one and half address instruction?

half size of a man dick is so good...lol


What is the difference between IP Address and a Web address?

The IP address is the ID that represents an Internet service provider, such as the one you're using to view the Internet. A web address it the address that represents a website which is controlled by certain IP addresses.


What are the main policy differences between the State of the Union address and the State of the Commonwealth address?

The difference is that an Inaugural address is when the president takes an oath and solemn promise and the other one is when he is telling the condition of the country.


What is the difference between a permanent address and a care of address?

A permanent address for a mobile node is it's IP address when it is at it's home network. A care-of-address is the one its gets when it is visiting a foreign network.


How many clock cycle is needed to execute LDA?

It is a 3 byte instruction, with one byte for opcode and the other two for the 16bit address. It takes four machine cycles (one to fetch opcode, one to fetch lower order address, one to fetch higher order address and another one to fetch the data from the memory)... i.e. it takes 13 time states to perform the LDA instruction