Make your own free website on Tripod.com

ADD A,(IY + d)

Add accumulator with indexed addressed memory location (IY + d).
 
Function: A <- A + (IY + d)
 
Format:
1111 1101
 
byte 1: FD
 
1000 0110
 
byte 2: 86
 
dddd dddd
 
byte 3: offset value
 
Description: The contents of the accumulator are added to the contents of the memory location addressed by the contents of the IY register plus the given offset value. The result is stored in the accumulator.
 
Data Flow:
 
Timing: 5 M cycles; 19 T states: 9.5 usec @ 2 MHz
 
Addressing Mode: indexed
 
Flags:
 
Example:
ADD  A,(IY+1)

OBJECT CODE
Before:
 
After: