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


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

                      00001 ; OP16.ASM
                      00002 
                      00003 ; This file tests all 16-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=17C42,R=HEX
                      00010 
  00000FFF            00011 MAXROM = 0FFF
  000000FF            00012 MAXRAM = 00FF
                      00013 
0000   B100           00014         ADDLW   0
0001   B141           00015         ADDLW   'A'
0002   B141           00016         ADDLW   "A"
0003   B1FF           00017         ADDLW   0FF
                      00018 
Message[305]: Using default destination of 1 (file).
0004   0F00           00019         ADDWF   0
0005   0F00           00020         ADDWF   0,1
0006   0F00           00021         ADDWF   0,F
0007   0E00           00022         ADDWF   0,0
0008   0E00           00023         ADDWF   0,W
Message[305]: Using default destination of 1 (file).
0009   0FFF           00024         ADDWF   MAXRAM
                      00025 
Message[305]: Using default destination of 1 (file).
000A   1100           00026         ADDWFC  0
000B   1100           00027         ADDWFC  0,1
000C   1100           00028         ADDWFC  0,F
000D   1000           00029         ADDWFC  0,0
000E   1000           00030         ADDWFC  0,W
Message[305]: Using default destination of 1 (file).
000F   11FF           00031         ADDWFC  MAXRAM
                      00032 
0010   B500           00033         ANDLW   0
0011   B541           00034         ANDLW   'A'
0012   B541           00035         ANDLW   "A"
0013   B5FF           00036         ANDLW   0FF
                      00037 
Message[305]: Using default destination of 1 (file).
0014   0B00           00038         ANDWF   0
0015   0B00           00039         ANDWF   0,1
0016   0B00           00040         ANDWF   0,F
0017   0A00           00041         ANDWF   0,0
0018   0A00           00042         ANDWF   0,W
Message[305]: Using default destination of 1 (file).
0019   0BFF           00043         ANDWF   MAXRAM
                      00044 
001A   8800           00045         BCF     0,0
001B   8900           00046         BCF     0,1
001C   8A00           00047         BCF     0,2
MPASM 03.20.02 Released          OP16.ASM   11-21-2002  20:21:09         PAGE  2


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

001D   8B00           00048         BCF     0,3
001E   8C00           00049         BCF     0,4
001F   8D00           00050         BCF     0,5
0020   8E00           00051         BCF     0,6
0021   8F00           00052         BCF     0,7
0022   88FF           00053         BCF     MAXRAM,0
                      00054 
0023   8000           00055         BSF     0,0
0024   8100           00056         BSF     0,1
0025   8200           00057         BSF     0,2
0026   8300           00058         BSF     0,3
0027   8400           00059         BSF     0,4
0028   8500           00060         BSF     0,5
0029   8600           00061         BSF     0,6
002A   8700           00062         BSF     0,7
002B   80FF           00063         BSF     MAXRAM,0
                      00064 
002C   9800           00065         BTFSC   0,0
002D   9900           00066         BTFSC   0,1
002E   9A00           00067         BTFSC   0,2
002F   9B00           00068         BTFSC   0,3
0030   9C00           00069         BTFSC   0,4
0031   9D00           00070         BTFSC   0,5
0032   9E00           00071         BTFSC   0,6
0033   9F00           00072         BTFSC   0,7
0034   98FF           00073         BTFSC   MAXRAM,0
                      00074 
0035   9000           00075         BTFSS   0,0
0036   9100           00076         BTFSS   0,1
0037   9200           00077         BTFSS   0,2
0038   9300           00078         BTFSS   0,3
0039   9400           00079         BTFSS   0,4
003A   9500           00080         BTFSS   0,5
003B   9600           00081         BTFSS   0,6
003C   9700           00082         BTFSS   0,7
003D   90FF           00083         BTFSS   MAXRAM,0
                      00084 
003E   3800           00085         BTG     0,0
003F   3900           00086         BTG     0,1
0040   3A00           00087         BTG     0,2
0041   3B00           00088         BTG     0,3
0042   3C00           00089         BTG     0,4
0043   3D00           00090         BTG     0,5
0044   3E00           00091         BTG     0,6
0045   3F00           00092         BTG     0,7
0046   38FF           00093         BTG     MAXRAM,0
                      00094 
0047   E000           00095         CALL    0
0048   EFFF           00096         CALL    MAXROM
                      00097 
Message[305]: Using default destination of 1 (file).
0049   2900           00098         CLRF    0
004A   2900           00099         CLRF    0,1
MPASM 03.20.02 Released          OP16.ASM   11-21-2002  20:21:09         PAGE  3


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

004B   2900           00100         CLRF    0,F
004C   2800           00101         CLRF    0,0
004D   2800           00102         CLRF    0,W
Message[305]: Using default destination of 1 (file).
004E   29FF           00103         CLRF    MAXRAM
                      00104 
004F   0004           00105         CLRWDT
                      00106 
Message[305]: Using default destination of 1 (file).
0050   1300           00107         COMF    0
0051   1300           00108         COMF    0,1
0052   1300           00109         COMF    0,F
0053   1200           00110         COMF    0,0
0054   1200           00111         COMF    0,W
Message[305]: Using default destination of 1 (file).
0055   13FF           00112         COMF    MAXRAM
                      00113 
0056   3100           00114         CPFSEQ  0
0057   31FF           00115         CPFSEQ  MAXRAM
                      00116 
0058   3200           00117         CPFSGT  0
0059   32FF           00118         CPFSGT  MAXRAM
                      00119 
005A   3000           00120         CPFSLT  0
005B   30FF           00121         CPFSLT  MAXRAM
                      00122 
Message[305]: Using default destination of 1 (file).
005C   2F00           00123         DAW     0
005D   2F00           00124         DAW     0,1
005E   2F00           00125         DAW     0,F
005F   2E00           00126         DAW     0,0
0060   2E00           00127         DAW     0,W
Message[305]: Using default destination of 1 (file).
0061   2FFF           00128         DAW     MAXRAM
                      00129 
Message[305]: Using default destination of 1 (file).
0062   0700           00130         DECF    0
0063   0700           00131         DECF    0,1
0064   0700           00132         DECF    0,F
0065   0600           00133         DECF    0,0
0066   0600           00134         DECF    0,W
Message[305]: Using default destination of 1 (file).
0067   07FF           00135         DECF    MAXRAM
                      00136 
Message[305]: Using default destination of 1 (file).
0068   1700           00137         DECFSZ  0
0069   1700           00138         DECFSZ  0,1
006A   1700           00139         DECFSZ  0,F
006B   1600           00140         DECFSZ  0,0
006C   1600           00141         DECFSZ  0,W
Message[305]: Using default destination of 1 (file).
006D   17FF           00142         DECFSZ  MAXRAM
                      00143 
MPASM 03.20.02 Released          OP16.ASM   11-21-2002  20:21:09         PAGE  4


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

Message[305]: Using default destination of 1 (file).
006E   2700           00144         DCFSNZ  0
006F   2700           00145         DCFSNZ  0,1
0070   2700           00146         DCFSNZ  0,F
0071   2600           00147         DCFSNZ  0,0
0072   2600           00148         DCFSNZ  0,W
Message[305]: Using default destination of 1 (file).
0073   27FF           00149         DCFSNZ  MAXRAM
                      00150 
0074   C000           00151         GOTO    0
0075   DFFF           00152         GOTO    1FFF
                      00153 
Message[305]: Using default destination of 1 (file).
0076   1500           00154         INCF    0
0077   1500           00155         INCF    0,1
0078   1500           00156         INCF    0,F
0079   1400           00157         INCF    0,0
007A   1400           00158         INCF    0,W
Message[305]: Using default destination of 1 (file).
007B   15FF           00159         INCF    MAXRAM
                      00160 
Message[305]: Using default destination of 1 (file).
007C   1F00           00161         INCFSZ  0
007D   1F00           00162         INCFSZ  0,1
007E   1F00           00163         INCFSZ  0,F
007F   1E00           00164         INCFSZ  0,0
0080   1E00           00165         INCFSZ  0,W
Message[305]: Using default destination of 1 (file).
0081   1FFF           00166         INCFSZ  MAXRAM
                      00167 
Message[305]: Using default destination of 1 (file).
0082   2500           00168         INFSNZ  0
0083   2500           00169         INFSNZ  0,1
0084   2500           00170         INFSNZ  0,F
0085   2400           00171         INFSNZ  0,0
0086   2400           00172         INFSNZ  0,W
Message[305]: Using default destination of 1 (file).
0087   25FF           00173         INFSNZ  MAXRAM
                      00174 
0088   B300           00175         IORLW   0
0089   B341           00176         IORLW   'A'
008A   B341           00177         IORLW   "A"
008B   B3FF           00178         IORLW   0FF
                      00179 
Message[305]: Using default destination of 1 (file).
008C   0900           00180         IORWF   0
008D   0900           00181         IORWF   0,1
008E   0900           00182         IORWF   0,F
008F   0800           00183         IORWF   0,0
0090   0800           00184         IORWF   0,W
Message[305]: Using default destination of 1 (file).
0091   09FF           00185         IORWF   MAXRAM
                      00186 
MPASM 03.20.02 Released          OP16.ASM   11-21-2002  20:21:09         PAGE  5


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

0092   B700           00187         LCALL   0
0093   B7FF           00188         LCALL   0FF
                      00189 
0094   6000           00190         MOVFP   0,0
0095   7FFF           00191         MOVFP   0FF,1F
                      00192 
0096   B800           00193         MOVLB   0
0097   B80F           00194         MOVLB   0F
                      00195 
0098   B000           00196         MOVLW   0
0099   B041           00197         MOVLW   'A'
009A   B041           00198         MOVLW   "A"
009B   B0FF           00199         MOVLW   0FF
                      00200 
009C   4000           00201         MOVPF   0,0
009D   5FFF           00202         MOVPF   1F,0FF
                      00203 
009E   0100           00204         MOVWF   0
009F   01FF           00205         MOVWF   MAXRAM
                      00206 
Message[305]: Using default destination of 1 (file).
00A0   2D00           00207         NEGW    0
00A1   2D00           00208         NEGW    0,1
00A2   2D00           00209         NEGW    0,F
00A3   2C00           00210         NEGW    0,0
00A4   2C00           00211         NEGW    0,W
Message[305]: Using default destination of 1 (file).
00A5   2DFF           00212         NEGW    MAXRAM
                      00213 
00A6   0000           00214         NOP
                      00215 
00A7   0005           00216         RETFIE
                      00217 
00A8   B600           00218         RETLW   0
00A9   B641           00219         RETLW   'A'
00AA   B641           00220         RETLW   "A"
00AB   B6FF           00221         RETLW   0FF
                      00222 
00AC   0002           00223         RETURN
                      00224 
Message[305]: Using default destination of 1 (file).
00AD   1B00           00225         RLCF    0
00AE   1B00           00226         RLCF    0,1
00AF   1B00           00227         RLCF    0,F
00B0   1A00           00228         RLCF    0,0
00B1   1A00           00229         RLCF    0,W
Message[305]: Using default destination of 1 (file).
00B2   1BFF           00230         RLCF    MAXRAM
                      00231 
Message[305]: Using default destination of 1 (file).
00B3   2300           00232         RLNCF   0
00B4   2300           00233         RLNCF   0,1
00B5   2300           00234         RLNCF   0,F
MPASM 03.20.02 Released          OP16.ASM   11-21-2002  20:21:09         PAGE  6


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

00B6   2200           00235         RLNCF   0,0
00B7   2200           00236         RLNCF   0,W
Message[305]: Using default destination of 1 (file).
00B8   23FF           00237         RLNCF   MAXRAM
                      00238 
Message[305]: Using default destination of 1 (file).
00B9   1900           00239         RRCF    0
00BA   1900           00240         RRCF    0,1
00BB   1900           00241         RRCF    0,F
00BC   1800           00242         RRCF    0,0
00BD   1800           00243         RRCF    0,W
Message[305]: Using default destination of 1 (file).
00BE   19FF           00244         RRCF    MAXRAM
                      00245 
Message[305]: Using default destination of 1 (file).
00BF   2100           00246         RRNCF   0
00C0   2100           00247         RRNCF   0,1
00C1   2100           00248         RRNCF   0,F
00C2   2000           00249         RRNCF   0,0
00C3   2000           00250         RRNCF   0,W
Message[305]: Using default destination of 1 (file).
00C4   21FF           00251         RRNCF   MAXRAM
                      00252 
Message[305]: Using default destination of 1 (file).
00C5   2B00           00253         SETF    0
00C6   2B00           00254         SETF    0,1
00C7   2B00           00255         SETF    0,F
00C8   2A00           00256         SETF    0,0
00C9   2A00           00257         SETF    0,W
Message[305]: Using default destination of 1 (file).
00CA   2BFF           00258         SETF    MAXRAM
                      00259 
00CB   0003           00260         SLEEP
                      00261 
00CC   B200           00262         SUBLW   0
00CD   B241           00263         SUBLW   'A'
00CE   B241           00264         SUBLW   "A"
00CF   B2FF           00265         SUBLW   0FF
                      00266 
Message[305]: Using default destination of 1 (file).
00D0   0500           00267         SUBWF   0
00D1   0500           00268         SUBWF   0,1
00D2   0500           00269         SUBWF   0,F
00D3   0400           00270         SUBWF   0,0
00D4   0400           00271         SUBWF   0,W
Message[305]: Using default destination of 1 (file).
00D5   05FF           00272         SUBWF   MAXRAM
                      00273 
Message[305]: Using default destination of 1 (file).
00D6   0300           00274         SUBWFB  0
00D7   0300           00275         SUBWFB  0,1
00D8   0300           00276         SUBWFB  0,F
00D9   0200           00277         SUBWFB  0,0
MPASM 03.20.02 Released          OP16.ASM   11-21-2002  20:21:09         PAGE  7


LOC  OBJECT CODE     LINE SOURCE TEXT
  VALUE

00DA   0200           00278         SUBWFB  0,W
Message[305]: Using default destination of 1 (file).
00DB   03FF           00279         SUBWFB  MAXRAM
                      00280 
Message[305]: Using default destination of 1 (file).
00DC   1D00           00281         SWAPF   0
00DD   1D00           00282         SWAPF   0,1
00DE   1D00           00283         SWAPF   0,F
00DF   1C00           00284         SWAPF   0,0
00E0   1C00           00285         SWAPF   0,W
Message[305]: Using default destination of 1 (file).
00E1   1DFF           00286         SWAPF   MAXRAM
                      00287 
00E2   A800           00288         TABLRD  0,0,0
00E3   A900           00289         TABLRD  0,1,0
00E4   AA00           00290         TABLRD  1,0,0
00E5   AB00           00291         TABLRD  1,1,0
00E6   A8FF           00292         TABLRD  0,0,MAXRAM
                      00293 
00E7   AC00           00294         TABLWT  0,0,0
00E8   AD00           00295         TABLWT  0,1,0
00E9   AE00           00296         TABLWT  1,0,0
00EA   AF00           00297         TABLWT  1,1,0
00EB   ACFF           00298         TABLWT  0,0,MAXRAM
                      00299 
00EC   A000           00300         TLRD    0,0
00ED   A2FF           00301         TLRD    1,MAXRAM
                      00302 
00EE   A400           00303         TLWT    0,0
00EF   A6FF           00304         TLWT    1,MAXRAM
                      00305 
00F0   3300           00306         TSTFSZ  0
00F1   33FF           00307         TSTFSZ  MAXRAM
                      00308 
00F2   B400           00309         XORLW   0
00F3   B441           00310         XORLW   'A'
00F4   B441           00311         XORLW   "A"
00F5   B4FF           00312         XORLW   0FF
                      00313 
Message[305]: Using default destination of 1 (file).
00F6   0D00           00314         XORWF   0
00F7   0D00           00315         XORWF   0,1
00F8   0D00           00316         XORWF   0,F
00F9   0C00           00317         XORWF   0,0
00FA   0C00           00318         XORWF   0,W
Message[305]: Using default destination of 1 (file).
00FB   0DFF           00319         XORWF   MAXRAM
                      00320 
                      00321         END
MPASM 03.20.02 Released          OP16.ASM   11-21-2002  20:21:09         PAGE  8


SYMBOL TABLE
  LABEL                             VALUE 

MAXRAM                            000000FF
MAXROM                            00000FFF
__17C42                           00000001


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

0000 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
0040 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
0080 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX
00C0 : XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXX----

All other memory blocks unused.

Program Memory Words Used:   252


Errors   :     0
Warnings :     0 reported,     0 suppressed
Messages :    46 reported,     0 suppressed

