Instruction set and effective addressing techniques, Computer Engineering

Assignment Help:

The term addressing mode is a technique of stating the input and output of an instruction; it is termed the effective address. There are 6 effective addresses in the 68HC11 set of instructions

Immediate data
 
Here the operand 'data 'follows the opcode 'Instruction' in memory, normally only a byte is used.
 
  addb #$1    i.e. add to b  data 1 hex 
 
Direct addressing

 Here the operand contains the lower order byte of the address, the remaining upper byte of the 16 bit address is assumed to be zero . This allows a fast read/write of memory between 0x0000 and 0x00ff.
 
  addb $ff  i.e. add to b data from address 00ff hex
 
Extended addressing

  Here the address is contained in the next two bytes after the opcode i.e. high byte first, followed by low byte. This allows a read/write of the full address space i.e. 0x0000 to 0xffff

  addb $ffff  i.e. add to b data from address ffff hex
 
Indexed Addressing

  Here the address is calculated using an index register (IX, IY) and a 8 bit unsigned immediate offset. The address is calculated by temporary adding the contents of the index register to the immediate offset and using that as the extended address. This type is addressing is often termed a pointer or page addressing 
 
  addb $ff,X   i.e. add to b data from address in X + ff hex 
 
Relative addressing

   Here the address is stored as the operand and comprises of a signed 8 bit number, the effective address comprises of the current program counter + the signed 8 bit number. This is often used in branches etc. but with the use of re-locatable assemblers, the uses of labels have made this transparent.

  bne $04    i.e. jump forward 4 spaces
  bne $84    i.e. jump back 4 spaces


Related Discussions:- Instruction set and effective addressing techniques

Explain the commonly used code optimization techniques, Explain briefly any...

Explain briefly any three of the commonly used code optimization techniques. 1. Common sub expression elimination: In given expression as "(a+b)-(a+b)/4", in such "common

Weighted-average under perpetual inventory procedure, Q. Weighted-average u...

Q. Weighted-average under perpetual inventory procedure? Weighted-average under perpetual inventory procedure in perpetual inventory procedure firms calculate a new weighted-av

Define memory read and write operation, Define Memory read and write operat...

Define Memory read and write operation The transfer of information from a memory word to outside environment is known as read operation. The transfer of new information to be k

Explain the meaning of accept socket primitive, Explain the meaning of A...

Explain the meaning of ACCEPT socket primitive. The Accept Primitive: A server which uses connection-oriented transport should call procedure accepts to accept

Transportation model, advantages and disadvantages of northwest corner meth...

advantages and disadvantages of northwest corner method and least cost method

Data packets - universal serial bus, Data packets: A data packet consi...

Data packets: A data packet consists of the PID which is followed a 16-bit CRC and by 0-1023 bytes of data payload (up to 1024 in high speed and at most 8 at low speed) The

Displaying a number, Displaying a number Supposing that two digit num...

Displaying a number Supposing that two digit number 59 is stored as number 5 in BH and number 9 in BL to convert them to equivalent ASCII we will add "0" to each one of them.

How reassembling of ip fragments is advantageous, Reassembling of IP fragme...

Reassembling of IP fragments at the ultimate destination is advantageous. Give reasons. Needing the ultimate destination to reassemble the fragments has two major advantages. F

What is typical storage hierarchy, Q. What is typical storage hierarchy? ...

Q. What is typical storage hierarchy? A typical storage hierarchy is displayed in Figure above. Though Figure shows only block diagram however it includes storage hierarchy:

Calculate number of calls put through by a single server, A group of 20 ser...

A group of 20 servers carry traffic of 10 erlangs. If the average duration of a call is three minutes, calculate the number of calls put through by a single server and the group as

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd