ECT 357 - PowerPoint PPT Presentation

1 / 18
About This Presentation
Title:

ECT 357

Description:

Decisions can take you out of God's will but never out ... daw. Other Instructions Continued. retfie. push. pop. clrwdt. sleep. reset. nop. Table Instructions ... – PowerPoint PPT presentation

Number of Views:39
Avg rating:3.0/5.0
Slides: 19
Provided by: Mar5510
Category:
Tags: ect | daw

less

Transcript and Presenter's Notes

Title: ECT 357


1
ECT 357
  • Ch 3 Instruction Set

2
  • Todays Quote
  • Decisions can take you out of Gods will but
    never out of His reach.
  • If we are faithless, he will remain faithful,
    for he cannot disown himself.
  • 2 Timothy 213

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 H7f (alternative)
  • Hex 20 (default)
  • Binary B10011100
  • Decimal D32
  • Octal O777
  • ASCII AC
  • 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
Write a Comment
User Comments (0)
About PowerShow.com