1 / 18

ECT 357

ECT 357. Ch 3 Instruction Set. Today’s Quote: Decisions can take you out of God’s will but never out of His reach. If we are faithless, he will remain faithful, for he cannot disown himself. 2 Timothy 2:13. Accumulator. A multipurpose register capable of: Bit Shifting

lamond
Télécharger la présentation

ECT 357

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ECT 357 Ch 3 Instruction Set

  2. Today’s Quote: Decisions can take you out of God’s will but never out of His reach. If we are faithless, he will remain faithful, for he cannot disown himself. 2 Timothy 2:13

  3. Accumulator A multipurpose register capable of: • Bit Shifting • Incrementing/Decrementing • Complementing • Adding/Subtracting • Swapping Nibbles • Boolean Operations

  4. Accumulator Operations The 128 Access Bank RAM locations plus all of the Special Function Registers act as accumulators. If two operands are needed, then one will be moved to the working register.

  5. F/W Operands If F or W are included as a possible operand for an instruction, they indicate that the final result will be placed in the original location (F) or the working register (W).

  6. Number Formats Hex 0x7f Hex H’7f’ (alternative) Hex 20 (default) Binary B’10011100’ Decimal D’32’ Octal O’777’ ASCII A’C’ ASCII ‘C’ (alternative)

  7. Letter Indications • L Literal • F Memory • W Working Register • B Bank Select Register • C Carry • NC No Carry • SC Skip Clear • SS Skip Set

  8. Instruction Types Move Bit Boolean Arithmetic Branch Conditional Skip Subroutine Other

  9. Move Instructions • movlw • movwf • movff • movf (flag changes) • lfsr • movlb • swapf

  10. Bit Instructions • bsf • bcf • btg • rrncf • rlncf • rrcf • rlcf

  11. Boolean Instructions • andlw • andwf • iorlw • iorwf • xorlw • xorwf

  12. Arithmetic Instructions • addlw • addwf • addwfc • sublw • subwf • subwfb • subfwb • mullw • mulwf

  13. Branch Instructions • bc • bnc • bz • bnz • bn • bnn • bov • bnov • goto • bra

  14. Conditional Skip Instructions • btfsc • btfss • cpfslt • cpfseq • cpfsgt • tstfsz • decfsz • dcfsnz • incfsz • infsnz

  15. Subroutine Instructions • call • rcall • retlw • return

  16. Other Instructions • clrf • setf • incf • decf • comf • negf • daw

  17. Other Instructions Continued • retfie • push • pop • clrwdt • sleep • reset • nop

  18. Table Instructions • tblrd* • tblrd*+ • tblrd*- • tblrd+* • tblwt x 4 same as tblrd

More Related