Організація і використання пам’яті даних, страница 4

002C 30AA           00057         movlw 0xaa

002D 0089           00058         movwf EECON2

002E 1488           00059         bsf EECON1,WR

002F 1E08           00060 m2      btfss EECON1,EEIF

0030 282F           00061         goto m2

0031 1283           00062         bcf STATUS,RP0

                    00063        

0032 0A84           00064         incf FSR

                    00065

0033 0B8F           00066         decfsz kol,1

0034 2821           00067         goto m1

0035 0008           00068         return 

                    00069

0036 303E           00070 proc2   movlw 0x3e

0037 008F           00071         movwf kol

0038 3001           00072         movlw 0x1

0039 0084           00073         movwf FSR

003A 30FF           00074         movlw 0FFh

003B 008C           00075         movwf adr

                    00076

003C 1283           00077 m3      bcf STATUS,RP0

003D 0804           00078         movfw FSR

003E 0089           00079         movwf EEADR

003F 1683           00080         bsf STATUS,RP0

0040 1408           00081         bsf EECON1,RD

0041 1283           00082         bcf STATUS,RP0

0042 0808           00083         movf EEDATA,w

0043 1003           00084         bcf STATUS,0

0044 020C           00085         subwf adr,0

0045 1C03           00086         btfss STATUS,0

0046 2849           00087         goto k

0047 0808           00088         movf EEDATA,w

0048 008C           00089         movwf adr

                    00090        

0049 0A84           00091 k       incf FSR

004A 0B8F           00092         decfsz kol,1

004B 283C           00093         goto m3

                    00094        

MPASM 02.20 Released          LAB_444.ASM   4-11-2004  22:17:39         PAGE  3

LOC  OBJECT CODE     LINE SOURCE TEXT

  VALUE

                    00095        

004C 1283           00096         bcf STATUS,RP0

004D 080C           00097         movf adr,w

004E 0088           00098         movwf EEDATA

004F 0804           00099         movfw FSR

0050 0089           00100         movwf EEADR

0051 1683           00101         bsf STATUS,RP0

0052 1508           00102         bsf EECON1,WREN

0053 1208           00103         bcf EECON1,EEIF

0054 138B           00104         bcf INTCON,GIE

0055 3055           00105         movlw 0x55

0056 0089           00106         movwf EECON2

0057 30AA           00107         movlw 0xaa

0058 0089           00108         movwf EECON2

0059 1488           00109         bsf EECON1,WR

005A 1E08           00110 m5      btfss EECON1,EEIF

005B 285A           00111         goto m5

005C 1283           00112         bcf STATUS,RP0

                    00113

                    00114        

005D 0008           00115         return

                    00116         END                     ;конец программы

MPASM 02.20 Released          LAB_444.ASM   4-11-2004  22:17:39         PAGE  4

SYMBOL TABLE

  LABEL                             VALUE

C                                 00000000

DC                                00000001

EEADR                             00000009

EECON1                            00000088

EECON2                            00000089

EEDATA                            00000008

EEIE                              00000006

EEIF                              00000004

F                                 00000001

FSR                               00000004

GIE                               00000007

INDF                              00000000

INTCON                            0000000B

INTE                              00000004