| Electronic Components Datasheet Search |
|
DP8344 Datasheet(PDF) 137 Page - National Semiconductor (TI) |
|
|
|
|||||||||||||||||||||||||||||
DP8344 Datasheet(HTML) 137 Page - National Semiconductor (TI) |
|
137 / 184 page ![]() 60 Reference Section (Continued) ADD Add Immediate Syntax ADD n rsd immediate limited register Affected Flags N Z C V Description Adds the immediate value n to the register rsd and places the result back into the register rsd Note that only the ac- tive registers R0 – R15 may be specified for rsd The value of n is limited to 8 bits (unsigned range 0 to 255 signed range a127 to b128) Example Add the constant b3 to register 10 ADD b 3 R10 R10 a (b3) xR10 Instruction Format 0000 Opcode n rsd 15 11 3 0 T-States 2 Bus Timing Figure 6-1 Operation rsd a n xrsd ADDA Add with Accumulator Syntax ADDA Rs Rd register register ADDA Rs mIr register indexed Affected Flags N Z C V Description Adds the source register Rs to the active accumulator and places the result into the destination specified The destina- tion may be either a register Rd or data memory via an index register mode mIr Note that register bank selection determines which accumulator is active Example In the first example the value 4 is placed into the currently active accumulator that accumulator is added to the con- tents of register 20 and then the result is placed into regis- ter 21 MOVE 4 A Place constant into accum ADDA R20 R21 R20 a accum xR21 In the second example the alternate accumulator of regis- ter bank B is selected and then added to register 20 The result is placed into the data memory pointed to by the index register IZ and then the value of IZ is incremented by one EXX 0 1 Select alt accumulator ADDA R20 IZa R20 a accum xdata mem and increment data pointer Instruction Format ADDA Rs Rd 111000 Opcode Rd Rs 15 9 4 0 ADDA Rs mIr TLF9336 – 6 T-states ADDA Rs Rd 2 ADDA Rs mIr 3 Bus Timing ADDA Rs Rd Figure 6-1 ADDA Rs mIr Figure 6-6 Operation ADDA Rs Rd Rs a accumulator xRd ADDA Rs mIr Rs a accumulator xdata memory AND And Immediate Syntax AND n rsd immediate limited register Affected Flags N Z Description Logically ANDs the immediate value n to the register rsd and places the result back into the register rsd Note that only the active registers R0 – R15 may be specified for rsd The value of n is 8 bits wide Example Unmask both the Transmitter and Receiver interrupts via the Interrupt Control Register ICR R2 Leave the other interrupts unaffected EXX 00 select main register banks AND 11111100BR2 unmask transmitter and receiver interrupts Instruction Format 0100 Opcode n rsd 15 11 3 0 T-states 2 Bus Timing Figure 6-1 Operation rsd AND n xrsd 137 |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |