lecture10

lecture10 - ECE252 Microprocessors Spring 2011 Lecture 10...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Jie Hu, ECE/NJIT, Spring 2010 ECE252 L10-Inst. Set.1 ECE252 Microprocessors Spring 2011 Lecture 10: Logical, Shift/Rotate, Bit Manipulation, BCD Jie Hu http://web.njit.edu/~jhu/ece252/002
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Jie Hu, ECE/NJIT, Spring 2010 ECE252 L10-Inst. Set.2 Review of Last Lecture Data structures and basic program structures
Background image of page 2
Jie Hu, ECE/NJIT, Spring 2010 ECE252 L10-Inst. Set.3 Today’s Lecture 68000 Instruction Set (cont’d) Logical Shift/Rotate Bit manipulation BCD
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Jie Hu, ECE/NJIT, Spring 2010 ECE252 L10-Inst. Set.4 68000 Instruction Set: Logical AND Logical AND ADNI AND immediate OR Logical OR ORI OR immediate EOR Exclusive OR EORI Exclusive OR immediate NOT Logical complement
Background image of page 4
Jie Hu, ECE/NJIT, Spring 2010 ECE252 L10-Inst. Set.5 Logical: AND, OR, EOR, NOT Bit-wise logical operations, all condition code except X affected Assembler Syntax AND <ea>, Dn ;<ea> cannot be An AND Dn, <ea> ;<ea> cannot be Dn, An, #<data>, or PC related OR <ea>, Dn ;<ea> cannot be An OR Dn, <ea> ;<ea> cannot be Dn, An, (An)+, #<data>, or PC related EOR Dn, <ea> ;<ea> cannot be An, #<data>, or PC related ANDI/ORI/EORI #<data>, <ea> ;<ea> cannot be An, #<data>, or PC related NOT <ea> ; <ea> cannot be An, #<data>, or PC related Size = {Byte, Word, Long}
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Jie Hu, ECE/NJIT, Spring 2010 ECE252 L10-Inst. Set.6 Logical Instructions Examples D0=$3795AC5F (0011 0111 1001 0101 1010 1100 0101 1111) D1=$B6D34B9D (1011 0110 1101 0011 0100 1011 1001 1101) AND.W D0, D1 ;D1=$B6D3 081D ANDI.B #$F0, D1 ;D1=$B6D34B 90
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 20

lecture10 - ECE252 Microprocessors Spring 2011 Lecture 10...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online