MPASM 03.20.02 Released          OP14.ASM   11-21-2002  20:21:09         PAGE  1


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00001 ; OP14.ASM
                      00002 
                      00003 ; This file tests all 14-bit opcodes at their max and min and, if
                      00004 ; applicable, all possible values.  Note that the max and mins are
                      00005 ; processor-dependent.  As long as the max and min values are set
                      00006 ; correctly, which is tested elsewhere, this file tests that they are
                      00007 ; used.
                      00008 
                      00009         LIST    P=16CXX,R=HEX
                      00010 
  000007FF            00011 MAXROM = 07FF
  0000007F            00012 MAXRAM = 007F
                      00013 
0000   3E00           00014         ADDLW   0
0001   3E41           00015         ADDLW   'A'
0002   3E41           00016         ADDLW   "A"
0003   3EFF           00017         ADDLW   0FF
                      00018 
Message[305]: Using default destination of 1 (file).
0004   0780           00019         ADDWF   0
0005   0780           00020         ADDWF   0,1
0006   0780           00021         ADDWF   0,F
0007   0700           00022         ADDWF   0,0
0008   0700           00023         ADDWF   0,W
Message[305]: Using default destination of 1 (file).
0009   07FF           00024         ADDWF   MAXRAM
                      00025 
000A   3900           00026         ANDLW   0
000B   3941           00027         ANDLW   'A'
000C   3941           00028         ANDLW   "A"
000D   39FF           00029         ANDLW   0FF
                      00030 
Message[305]: Using default destination of 1 (file).
000E   0580           00031         ANDWF   0
000F   0580           00032         ANDWF   0,1
0010   0580           00033         ANDWF   0,F
0011   0500           00034         ANDWF   0,0
0012   0500           00035         ANDWF   0,W
Message[305]: Using default destination of 1 (file).
0013   05FF           00036         ANDWF   MAXRAM
                      00037 
0014   1000           00038         BCF     0,0
0015   1080           00039         BCF     0,1
0016   1100           00040         BCF     0,2
0017   1180           00041         BCF     0,3
0018   1200           00042         BCF     0,4
0019   1280           00043         BCF     0,5
001A   1300           00044         BCF     0,6
001B   1380           00045         BCF     0,7
001C   107F           00046         BCF     MAXRAM,0
                      00047 
001D   1400           00048         BSF     0,0
001E   1480           00049         BSF     0,1
MPASM 03.20.02 Released          OP14.ASM   11-21-2002  20:21:09         PAGE  2


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

001F   1500           00050         BSF     0,2
0020   1580           00051         BSF     0,3
0021   1600           00052         BSF     0,4
0022   1680           00053         BSF     0,5
0023   1700           00054         BSF     0,6
0024   1780           00055         BSF     0,7
0025   147F           00056         BSF     MAXRAM,0
                      00057 
0026   1800           00058         BTFSC   0,0
0027   1880           00059         BTFSC   0,1
0028   1900           00060         BTFSC   0,2
0029   1980           00061         BTFSC   0,3
002A   1A00           00062         BTFSC   0,4
002B   1A80           00063         BTFSC   0,5
002C   1B00           00064         BTFSC   0,6
002D   1B80           00065         BTFSC   0,7
002E   187F           00066         BTFSC   MAXRAM,0
                      00067 
002F   1C00           00068         BTFSS   0,0
0030   1C80           00069         BTFSS   0,1
0031   1D00           00070         BTFSS   0,2
0032   1D80           00071         BTFSS   0,3
0033   1E00           00072         BTFSS   0,4
0034   1E80           00073         BTFSS   0,5
0035   1F00           00074         BTFSS   0,6
0036   1F80           00075         BTFSS   0,7
0037   1C7F           00076         BTFSS   MAXRAM,0
                      00077 
0038   2000           00078         CALL    0
0039   27FF           00079         CALL    MAXROM
                      00080 
003A   0180           00081         CLRF    0
003B   01FF           00082         CLRF    MAXRAM
                      00083 
003C   0103           00084         CLRW
                      00085 
003D   0064           00086         CLRWDT
                      00087 
Message[305]: Using default destination of 1 (file).
003E   0980           00088         COMF    0
003F   0980           00089         COMF    0,1
0040   0980           00090         COMF    0,F
0041   0900           00091         COMF    0,0
0042   0900           00092         COMF    0,W
Message[305]: Using default destination of 1 (file).
0043   09FF           00093         COMF    MAXRAM
                      00094 
Message[305]: Using default destination of 1 (file).
0044   0380           00095         DECF    0
0045   0380           00096         DECF    0,1
0046   0380           00097         DECF    0,F
0047   0300           00098         DECF    0,0
0048   0300           00099         DECF    0,W
MPASM 03.20.02 Released          OP14.ASM   11-21-2002  20:21:09         PAGE  3


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

Message[305]: Using default destination of 1 (file).
0049   03FF           00100         DECF    MAXRAM
                      00101 
Message[305]: Using default destination of 1 (file).
004A   0B80           00102         DECFSZ  0
004B   0B80           00103         DECFSZ  0,1
004C   0B80           00104         DECFSZ  0,F
004D   0B00           00105         DECFSZ  0,0
004E   0B00           00106         DECFSZ  0,W
Message[305]: Using default destination of 1 (file).
004F   0BFF           00107         DECFSZ  MAXRAM
                      00108 
0050   2800           00109         GOTO    0
0051   2FFF           00110         GOTO    MAXROM
                      00111 
Message[305]: Using default destination of 1 (file).
0052   0A80           00112         INCF    0
0053   0A80           00113         INCF    0,1
0054   0A80           00114         INCF    0,F
0055   0A00           00115         INCF    0,0
0056   0A00           00116         INCF    0,W
Message[305]: Using default destination of 1 (file).
0057   0AFF           00117         INCF    MAXRAM
                      00118 
Message[305]: Using default destination of 1 (file).
0058   0F80           00119         INCFSZ  0
0059   0F80           00120         INCFSZ  0,1
005A   0F80           00121         INCFSZ  0,F
005B   0F00           00122         INCFSZ  0,0
005C   0F00           00123         INCFSZ  0,W
Message[305]: Using default destination of 1 (file).
005D   0FFF           00124         INCFSZ  MAXRAM
                      00125 
005E   3800           00126         IORLW   0
005F   3841           00127         IORLW   'A'
0060   3841           00128         IORLW   "A"
0061   38FF           00129         IORLW   0FF
                      00130 
Message[305]: Using default destination of 1 (file).
0062   0480           00131         IORWF   0
0063   0480           00132         IORWF   0,1
0064   0480           00133         IORWF   0,F
0065   0400           00134         IORWF   0,0
0066   0400           00135         IORWF   0,W
Message[305]: Using default destination of 1 (file).
0067   04FF           00136         IORWF   MAXRAM
                      00137 
Message[305]: Using default destination of 1 (file).
0068   0880           00138         MOVF    0
0069   0880           00139         MOVF    0,1
006A   0880           00140         MOVF    0,F
006B   0800           00141         MOVF    0,0
006C   0800           00142         MOVF    0,W
MPASM 03.20.02 Released          OP14.ASM   11-21-2002  20:21:09         PAGE  4


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

Message[305]: Using default destination of 1 (file).
006D   08FF           00143         MOVF    MAXRAM
                      00144 
006E   3000           00145         MOVLW   0
006F   3041           00146         MOVLW   'A'
0070   3041           00147         MOVLW   "A"
0071   30FF           00148         MOVLW   0FF
                      00149 
0072   0080           00150         MOVWF   0
0073   00FF           00151         MOVWF   MAXRAM
                      00152 
0074   0000           00153         NOP
                      00154 
Warning[224]: Use of this instruction is not recommended.
0075   0062           00155         OPTION
                      00156 
0076   0009           00157         RETFIE
                      00158 
0077   3400           00159         RETLW   0
0078   3441           00160         RETLW   'A'
0079   3441           00161         RETLW   "A"
007A   34FF           00162         RETLW   0FF
                      00163 
007B   0008           00164         RETURN
                      00165 
Message[305]: Using default destination of 1 (file).
007C   0D80           00166         RLF     0
007D   0D80           00167         RLF     0,1
007E   0D80           00168         RLF     0,F
007F   0D00           00169         RLF     0,0
0080   0D00           00170         RLF     0,W
Message[305]: Using default destination of 1 (file).
0081   0DFF           00171         RLF     MAXRAM
                      00172 
Message[305]: Using default destination of 1 (file).
0082   0C80           00173         RRF     0
0083   0C80           00174         RRF     0,1
0084   0C80           00175         RRF     0,F
0085   0C00           00176         RRF     0,0
0086   0C00           00177         RRF     0,W
Message[305]: Using default destination of 1 (file).
0087   0CFF           00178         RRF     MAXRAM
                      00179 
0088   0063           00180         SLEEP
                      00181 
0089   3C00           00182         SUBLW   0
008A   3C41           00183         SUBLW   'A'
008B   3C41           00184         SUBLW   "A"
008C   3CFF           00185         SUBLW   0FF
                      00186 
Message[305]: Using default destination of 1 (file).
008D   0280           00187         SUBWF   0
008E   0280           00188         SUBWF   0,1
MPASM 03.20.02 Released          OP14.ASM   11-21-2002  20:21:09         PAGE  5


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

008F   0280           00189         SUBWF   0,F
0090   0200           00190         SUBWF   0,0
0091   0200           00191         SUBWF   0,W
Message[305]: Using default destination of 1 (file).
0092   02FF           00192         SUBWF   MAXRAM
                      00193 
Message[305]: Using default destination of 1 (file).
0093   0E80           00194         SWAPF   0
0094   0E80           00195         SWAPF   0,1
0095   0E80           00196         SWAPF   0,F
0096   0E00           00197         SWAPF   0,0
0097   0E00           00198         SWAPF   0,W
Message[305]: Using default destination of 1 (file).
0098   0EFF           00199         SWAPF   MAXRAM
                      00200 
Warning[224]: Use of this instruction is not recommended.
0099   0065           00201         TRIS    5
Warning[224]: Use of this instruction is not recommended.
009A   0066           00202         TRIS    6
Warning[224]: Use of this instruction is not recommended.
009B   0067           00203         TRIS    7
                      00204 
009C   3A00           00205         XORLW   0
009D   3A41           00206         XORLW   'A'
009E   3A41           00207         XORLW   "A"
009F   3AFF           00208         XORLW   0FF
                      00209 
Message[305]: Using default destination of 1 (file).
00A0   0680           00210         XORWF   0
00A1   0680           00211         XORWF   0,1
00A2   0680           00212         XORWF   0,F
00A3   0600           00213         XORWF   0,0
00A4   0600           00214         XORWF   0,W
Message[305]: Using default destination of 1 (file).
00A5   06FF           00215         XORWF   MAXRAM
                      00216 
                      00217         END
MPASM 03.20.02 Released          OP14.ASM   11-21-2002  20:21:09         PAGE  6


SYMBOL TABLE
  LABEL                             VALUE 

MAXRAM                            0000007F
MAXROM                            000007FF
__16CXX                           00000001


MEMORY USAGE MAP ('X' = Used,  '-' = Unused)

0000 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
0040 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
0080 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXX---------- ----------------

All other memory blocks unused.

Program Memory Words Used:   166
Program Memory Words Free:  8026


Errors   :     0
Warnings :     4 reported,     0 suppressed
Messages :    28 reported,     0 suppressed

