LA PROGRAMMATION DES PICS - Permutation chaotique des .2006-02-17 · LA PROGRAMMATION DES PICS PAR

  • View
    217

  • Download
    0

Embed Size (px)

Text of LA PROGRAMMATION DES PICS - Permutation chaotique des .2006-02-17 · LA PROGRAMMATION DES PICS PAR

  • LA PROGRAMMATION DES PICS

    PAR BIGONOFF

    Cinquime PARTIE

    Migration vers les 18Fxx8

    Rvision alpha 2 (en cours de ralisation)

  • 2

  • 3

    1. INTRODUCTION............................................................................................................................................. 5

    2. PRSENTATION GNRALE...................................................................................................................... 7

    2.1 RAPPEL .......................................................................................................................................................... 72.2 DESCRIPTION ................................................................................................................................................. 72.3 ORGANISATION DES INSTRUCTIONS ............................................................................................................... 72.4 ORGANISATION DE LA MMOIRE PROGRAMME............................................................................................... 82.4.1 SAUTS RELATIFS ET ABSOLUS...................................................................................................................... 82.5 ORGANISATION DE LA MMOIRE DE DONNES ............................................................................................. 102.6 LE REGISTRE WREG.................................................................................................................................... 10

    3. LES MODES DADRESSAGE...................................................................................................................... 13

    3.1 LADRESSAGE LITTRAL OU IMMDIAT........................................................................................................ 133.2 LADRESSAGE DIRECT DE TYPE BANKED ................................................................................................ 133.3 LADRESSAGE DIRECT EN ACCESS BANK ...................................................................................................... 143.4 LACCS DIRECT LONG................................................................................................................................. 163.5 LADRESSAGE INDIRECT SIMPLE .................................................................................................................. 173.6 LADRESSAGE INDIRECT POST-DCRMENT ............................................................................................... 193.7 LADRESSAGE INDIRECT POST-INCRMENT ................................................................................................ 193.8 LADRESSAGE INDIRECT PR-INCRMENT .................................................................................................. 213.9 LADRESSAGE INDIRECT PR-INDEX........................................................................................................... 21

    4. REGISTRES PARTICULIERS ET PARTICULARITS .......................................................................... 23

    4.1 LE PC .......................................................................................................................................................... 234.2 LES REGISTRES PCL,PCLATH, ET PCLATU .............................................................................................. 244.3 LES SAUTS CALCULS .................................................................................................................................. 254.4 LE REGISTRE STATUS ........................................................................................................................... 264.5 LE CAS DES INSTRUCTIONS 32 BITS .............................................................................................................. 284.6 LA PROCDURE READ/MODIFY/WRITE .................................................................................................... 294.7 MANIPULATIONS DE LA PILE ........................................................................................................................ 324.8 LES RETOURS RAPIDES FAST ................................................................................................................... 35

    5. LE JEU DINSTRUCTIONS ......................................................................................................................... 38

    5.1 CONVENTIONS ............................................................................................................................................. 385.2 LINSTRUCTION ADDLW ...................................................................................................................... 385.3 LINSTRUCTION ADDWF ........................................................................................................................ 395.4 LINSTRUCTION ADDWFC .................................................................................................................... 405.5 LINSTRUCTION ANDLW ....................................................................................................................... 415.6 LINSTRUCTION ANDWF ........................................................................................................................ 425.7 LINSTRUCTION BC ................................................................................................................................. 425.8 LINSTRUCTION BCF .............................................................................................................................. 435.9 LINSTRUCTION BN ................................................................................................................................ 445.10 LINSTRUCTION BNC ............................................................................................................................ 445.11 LINSTRUCTION BNN ............................................................................................................................ 455.12 LINSTRUCTION BNOV ......................................................................................................................... 455.13 LINSTRUCTION BNZ ............................................................................................................................ 465.14 LINSTRUCTION BRA ............................................................................................................................ 465.15 LINSTRUCTION BSF ............................................................................................................................. 475.16 LINSTRUCTION BTFSC ........................................................................................................................ 485.17 LINSTRUCTION BTFSS ........................................................................................................................ 485.18 LINSTRUCTION BTG ............................................................................................................................ 495.19 LINSTRUCTION BOV ............................................................................................................................ 505.20 LINSTRUCTION BZ ............................................................................................................................... 505.21 LINSTRUCTION CALL .......................................................................................................................... 515.22 LINSTRUCTION CLRF............................................................................................................................. 525.23 LINSTRUCTION CLRWDT ................................................................................................................... 525.24 LINSTRUCTION COMF ......................................................................................................................... 535.25 LINSTRUCTION CPFSEQ ...................................................................................................................... 54

  • 4

    5.26 LINSTRUCTION CPFSGT ..................................................................................................................... 545.27 LINSTRUCTION CPFSLT ...................................................................................................................... 555.28 LINSTRUCTION DAW ........................................................................................................................... 565.29 LINSTRUCTION DECF .......................................................................................................................... 575.30 LINSTRUCTION DECFSZ ..................................................................................................................... 575.31 LINSTRUCTION DCFSNZ ..................................................................................................................... 585.32 LINSTRUCTION GOTO ......................................................................................................................... 595.33 LINSTRUCTION INCF ........................................................................................................................... 595.34 LINSTRUCTION INCFSZ ...................................................................................................................... 605.35 LINSTRUCTION INFSNZ ...................................................................................................................... 615.36 LINSTRUCTION IORLW ....................................................................................................................... 615.37 LINSTRUCTION IORWF ....................................................................................................................... 625.38 LINSTR