home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
276_01
/
test16b.asm
< prev
next >
Wrap
Assembly Source File
|
1989-10-03
|
8KB
|
546 lines
;
; This file contains the opcodes of the PIC16C52 CPU in numerical order for
; testing the portable PIC1650 cross-assembler.
;
DEST EQU 123H
SUBR EQU 45H
BIT EQU 6
;
; 0400H - 04FFH
;
BCF @FSR, 0
BCF RTCC, 0
BCF PC, 0
BCF SW, 0
BCF FSR, 0
BCF PORTA, 0
BCF PORTB, 0
BCF PORTC, 0
BCF F8, 0
BCF F9, 0
BCF F10, 0
BCF F11, 0
BCF F12, 0
BCF F13, 0
BCF F14, 0
BCF F15, 0
BCF F16, 0
BCF F17, 0
BCF F18, 0
BCF F19, 0
BCF F20, 0
BCF F21, 0
BCF F22, 0
BCF F23, 0
BCF F24, 0
BCF F25, 0
BCF F26, 0
BCF F27, 0
BCF F28, 0
BCF F29, 0
BCF F30, 0
BCF F31, 0
BCF @FSR, 1
BCF RTCC, 1
BCF PC, 1
BCF SW, 1
BCF FSR, 1
BCF PORTA, 1
BCF PORTB, 1
BCF PORTC, 1
BCF F8, 1
BCF F9, 1
BCF F10, 1
BCF F11, 1
BCF F12, 1
BCF F13, 1
BCF F14, 1
BCF F15, 1
BCF F16, 1
BCF F17, 1
BCF F18, 1
BCF F19, 1
BCF F20, 1
BCF F21, 1
BCF F22, 1
BCF F23, 1
BCF F24, 1
BCF F25, 1
BCF F26, 1
BCF F27, 1
BCF F28, 1
BCF F29, 1
BCF F30, 1
BCF F31, 1
BCF @FSR, 2
BCF RTCC, 2
BCF PC, 2
BCF SW, 2
BCF FSR, 2
BCF PORTA, 2
BCF PORTB, 2
BCF PORTC, 2
BCF F8, 2
BCF F9, 2
BCF F10, 2
BCF F11, 2
BCF F12, 2
BCF F13, 2
BCF F14, 2
BCF F15, 2
BCF F16, 2
BCF F17, 2
BCF F18, 2
BCF F19, 2
BCF F20, 2
BCF F21, 2
BCF F22, 2
BCF F23, 2
BCF F24, 2
BCF F25, 2
BCF F26, 2
BCF F27, 2
BCF F28, 2
BCF F29, 2
BCF F30, 2
BCF F31, 2
BCF @FSR, 3
BCF RTCC, 3
BCF PC, 3
BCF SW, 3
BCF FSR, 3
BCF PORTA, 3
BCF PORTB, 3
BCF PORTC, 3
BCF F8, 3
BCF F9, 3
BCF F10, 3
BCF F11, 3
BCF F12, 3
BCF F13, 3
BCF F14, 3
BCF F15, 3
BCF F16, 3
BCF F17, 3
BCF F18, 3
BCF F19, 3
BCF F20, 3
BCF F21, 3
BCF F22, 3
BCF F23, 3
BCF F24, 3
BCF F25, 3
BCF F26, 3
BCF F27, 3
BCF F28, 3
BCF F29, 3
BCF F30, 3
BCF F31, 3
BCF @FSR, 4
BCF RTCC, 4
BCF PC, 4
BCF SW, 4
BCF FSR, 4
BCF PORTA, 4
BCF PORTB, 4
BCF PORTC, 4
BCF F8, 4
BCF F9, 4
BCF F10, 4
BCF F11, 4
BCF F12, 4
BCF F13, 4
BCF F14, 4
BCF F15, 4
BCF F16, 4
BCF F17, 4
BCF F18, 4
BCF F19, 4
BCF F20, 4
BCF F21, 4
BCF F22, 4
BCF F23, 4
BCF F24, 4
BCF F25, 4
BCF F26, 4
BCF F27, 4
BCF F28, 4
BCF F29, 4
BCF F30, 4
BCF F31, 4
BCF @FSR, 5
BCF RTCC, 5
BCF PC, 5
BCF SW, 5
BCF FSR, 5
BCF PORTA, 5
BCF PORTB, 5
BCF PORTC, 5
BCF F8, 5
BCF F9, 5
BCF F10, 5
BCF F11, 5
BCF F12, 5
BCF F13, 5
BCF F14, 5
BCF F15, 5
BCF F16, 5
BCF F17, 5
BCF F18, 5
BCF F19, 5
BCF F20, 5
BCF F21, 5
BCF F22, 5
BCF F23, 5
BCF F24, 5
BCF F25, 5
BCF F26, 5
BCF F27, 5
BCF F28, 5
BCF F29, 5
BCF F30, 5
BCF F31, 5
BCF @FSR, 6
BCF RTCC, 6
BCF PC, 6
BCF SW, 6
BCF FSR, 6
BCF PORTA, 6
BCF PORTB, 6
BCF PORTC, 6
BCF F8, 6
BCF F9, 6
BCF F10, 6
BCF F11, 6
BCF F12, 6
BCF F13, 6
BCF F14, 6
BCF F15, 6
BCF F16, 6
BCF F17, 6
BCF F18, 6
BCF F19, 6
BCF F20, 6
BCF F21, 6
BCF F22, 6
BCF F23, 6
BCF F24, 6
BCF F25, 6
BCF F26, 6
BCF F27, 6
BCF F28, 6
BCF F29, 6
BCF F30, 6
BCF F31, 6
BCF @FSR, 7
BCF RTCC, 7
BCF PC, 7
BCF SW, 7
BCF FSR, 7
BCF PORTA, 7
BCF PORTB, 7
BCF PORTC, 7
BCF F8, 7
BCF F9, 7
BCF F10, 7
BCF F11, 7
BCF F12, 7
BCF F13, 7
BCF F14, 7
BCF F15, 7
BCF F16, 7
BCF F17, 7
BCF F18, 7
BCF F19, 7
BCF F20, 7
BCF F21, 7
BCF F22, 7
BCF F23, 7
BCF F24, 7
BCF F25, 7
BCF F26, 7
BCF F27, 7
BCF F28, 7
BCF F29, 7
BCF F30, 7
BCF F31, 7
;
; 0500H - 05FFH
;
BSF @FSR, 0
BSF RTCC, 0
BSF PC, 0
BSF SW, 0
BSF FSR, 0
BSF PORTA, 0
BSF PORTB, 0
BSF PORTC, 0
BSF F8, 0
;We'll leave out 0509H - 051EH for brevity.
BSF F31, 0
BSF @FSR, 1
BSF RTCC, 1
BSF PC, 1
BSF SW, 1
BSF FSR, 1
BSF PORTA, 1
BSF PORTB, 1
BSF PORTC, 1
BSF F8, 1
;We'll leave out 0529H - 053EH for brevity.
BSF F31, 1
BSF @FSR, 2
BSF RTCC, 2
BSF PC, 2
BSF SW, 2
BSF FSR, 2
BSF PORTA, 2
BSF PORTB, 2
BSF PORTC, 2
BSF F8, 2
;We'll leave out 0549H - 055EH for brevity.
BSF F31, 2
BSF @FSR, 3
BSF RTCC, 3
BSF PC, 3
BSF SW, 3
BSF FSR, 3
BSF PORTA, 3
BSF PORTB, 3
BSF PORTC, 3
BSF F8, 3
;We'll leave out 0569H - 057EH for brevity.
BSF F31, 3
BSF @FSR, 4
BSF RTCC, 4
BSF PC, 4
BSF SW, 4
BSF FSR, 4
BSF PORTA, 4
BSF PORTB, 4
BSF PORTC, 4
BSF F8, 4
;We'll leave out 0589H - 059EH for brevity.
BSF F31, 4
BSF @FSR, 5
BSF RTCC, 5
BSF PC, 5
BSF SW, 5
BSF FSR, 5
BSF PORTA, 5
BSF PORTB, 5
BSF PORTC, 5
BSF F8, 5
;We'll leave out 05A9H - 05BEH for brevity.
BSF F31, 5
BSF @FSR, 6
BSF RTCC, 6
BSF PC, 6
BSF SW, 6
BSF FSR, 6
BSF PORTA, 6
BSF PORTB, 6
BSF PORTC, 6
BSF F8, 6
;We'll leave out 05C9H - 05DEH for brevity.
BSF F31, 6
BSF @FSR, 7
BSF RTCC, 7
BSF PC, 7
BSF SW, 7
BSF FSR, 7
BSF PORTA, 7
BSF PORTB, 7
BSF PORTC, 7
BSF F8, 7
;We'll leave out 05E9H - 05FEH for brevity.
BSF F31, 7
;
; 0600H - 06FFH
;
BTFSC @FSR, 0
BTFSC RTCC, 0
BTFSC PC, 0
BTFSC SW, 0
BTFSC FSR, 0
BTFSC PORTA, 0
BTFSC PORTB, 0
BTFSC PORTC, 0
BTFSC F8, 0
;We'll leave out 0609H - 061EH for brevity.
BTFSC F31, 0
BTFSC @FSR, 1
BTFSC RTCC, 1
BTFSC PC, 1
BTFSC SW, 1
BTFSC FSR, 1
BTFSC PORTA, 1
BTFSC PORTB, 1
BTFSC PORTC, 1
BTFSC F8, 1
;We'll leave out 0629H - 063EH for brevity.
BTFSC F31, 1
BTFSC @FSR, 2
BTFSC RTCC, 2
BTFSC PC, 2
BTFSC SW, 2
BTFSC FSR, 2
BTFSC PORTA, 2
BTFSC PORTB, 2
BTFSC PORTC, 2
BTFSC F8, 2
;We'll leave out 0649H - 065EH for brevity.
BTFSC F31, 2
BTFSC @FSR, 3
BTFSC RTCC, 3
BTFSC PC, 3
BTFSC SW, 3
BTFSC FSR, 3
BTFSC PORTA, 3
BTFSC PORTB, 3
BTFSC PORTC, 3
BTFSC F8, 3
;We'll leave out 0669H - 067EH for brevity.
BTFSC F31, 3
BTFSC @FSR, 4
BTFSC RTCC, 4
BTFSC PC, 4
BTFSC SW, 4
BTFSC FSR, 4
BTFSC PORTA, 4
BTFSC PORTB, 4
BTFSC PORTC, 4
BTFSC F8, 4
;We'll leave out 0689H - 069EH for brevity.
BTFSC F31, 4
BTFSC @FSR, 5
BTFSC RTCC, 5
BTFSC PC, 5
BTFSC SW, 5
BTFSC FSR, 5
BTFSC PORTA, 5
BTFSC PORTB, 5
BTFSC PORTC, 5
BTFSC F8, 5
;We'll leave out 06A9H - 06BEH for brevity.
BTFSC F31, 5
BTFSC @FSR, 6
BTFSC RTCC, 6
BTFSC PC, 6
BTFSC SW, 6
BTFSC FSR, 6
BTFSC PORTA, 6
BTFSC PORTB, 6
BTFSC PORTC, 6
BTFSC F8, 6
;We'll leave out 06C9H - 06DEH for brevity.
BTFSC F31, 6
BTFSC @FSR, 7
BTFSC RTCC, 7
BTFSC PC, 7
BTFSC SW, 7
BTFSC FSR, 7
BTFSC PORTA, 7
BTFSC PORTB, 7
BTFSC PORTC, 7
BTFSC F8, 7
;We'll leave out 06E9H - 06FEH for brevity.
BTFSC F31, 7
;
; 0700H - 07FFH
;
BTFSS @FSR, 0
BTFSS RTCC, 0
BTFSS PC, 0
BTFSS SW, 0
BTFSS FSR, 0
BTFSS PORTA, 0
BTFSS PORTB, 0
BTFSS PORTC, 0
BTFSS F8, 0
;We'll leave out 0709H - 071EH for brevity.
BTFSS F31, 0
BTFSS @FSR, 1
BTFSS RTCC, 1
BTFSS PC, 1
BTFSS SW, 1
BTFSS FSR, 1
BTFSS PORTA, 1
BTFSS PORTB, 1
BTFSS PORTC, 1
BTFSS F8, 1
;We'll leave out 0729H - 073EH for brevity.
BTFSS F31, 1
BTFSS @FSR, 2
BTFSS RTCC, 2
BTFSS PC, 2
BTFSS SW, 2
BTFSS FSR, 2
BTFSS PORTA, 2
BTFSS PORTB, 2
BTFSS PORTC, 2
BTFSS F8, 2
;We'll leave out 0749H - 075EH for brevity.
BTFSS F31, 2
BTFSS @FSR, 3
BTFSS RTCC, 3
BTFSS PC, 3
BTFSS SW, 3
BTFSS FSR, 3
BTFSS PORTA, 3
BTFSS PORTB, 3
BTFSS PORTC, 3
BTFSS F8, 3
;We'll leave out 0769H - 077EH for brevity.
BTFSS F31, 3
BTFSS @FSR, 4
BTFSS RTCC, 4
BTFSS PC, 4
BTFSS SW, 4
BTFSS FSR, 4
BTFSS PORTA, 4
BTFSS PORTB, 4
BTFSS PORTC, 4
BTFSS F8, 4
;We'll leave out 0789H - 079EH for brevity.
BTFSS F31, 4
BTFSS @FSR, 5
BTFSS RTCC, 5
BTFSS PC, 5
BTFSS SW, 5
BTFSS FSR, 5
BTFSS PORTA, 5
BTFSS PORTB, 5
BTFSS PORTC, 5
BTFSS F8, 5
;We'll leave out 07A9H - 07BEH for brevity.
BTFSS F31, 5
BTFSS @FSR, 6
BTFSS RTCC, 6
BTFSS PC, 6
BTFSS SW, 6
BTFSS FSR, 6
BTFSS PORTA, 6
BTFSS PORTB, 6
BTFSS PORTC, 6
BTFSS F8, 6
;We'll leave out 07C9H - 07DEH for brevity.
BTFSS F31, 6
BTFSS @FSR, 7
BTFSS RTCC,