opt subtitle "HI-TECH Software Omniscient Code Generator (Lite mode) build 10920"

opt pagewidth 120

	opt lm

	processor	16F877A
clrc	macro
	bcf	3,0
	endm
clrz	macro
	bcf	3,2
	endm
setc	macro
	bsf	3,0
	endm
setz	macro
	bsf	3,2
	endm
skipc	macro
	btfss	3,0
	endm
skipz	macro
	btfss	3,2
	endm
skipnc	macro
	btfsc	3,0
	endm
skipnz	macro
	btfsc	3,2
	endm
indf	equ	0
indf0	equ	0
pc	equ	2
pcl	equ	2
status	equ	3
fsr	equ	4
fsr0	equ	4
c	equ	1
z	equ	0
pclath	equ	10
	FNCALL	_main,_SysInit
	FNCALL	_main,_DeviceInit
	FNCALL	_DeviceInit,_flilflop_Enable
	FNROOT	_main
	FNCALL	_HIGH_ISR,_StepMotorPlay
	FNCALL	_StepMotorPlay,i1_flilflop_Enable
	FNCALL	intlevel1,_HIGH_ISR
	global	intlevel1
	FNROOT	intlevel1
	global	_ccwSet
	global	_cwSet
psect	idataBANK0,class=CODE,space=0,delta=2
global __pidataBANK0
__pidataBANK0:
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
	line	27

;initializer for _ccwSet
	retlw	08h
	retlw	02h
	retlw	04h
	retlw	01h
	line	26

;initializer for _cwSet
	retlw	01h
	retlw	04h
	retlw	02h
	retlw	08h
	global	StepMotorPlay@cnt2
	global	StepMotorPlay@cnt
	global	StepMotorPlay@i
	global	_dir
	global	_INTCON
_INTCON	set	11
	global	_PORTB
_PORTB	set	6
	global	_PORTC
_PORTC	set	7
	global	_PORTD
_PORTD	set	8
	global	_PORTE
_PORTE	set	9
	global	_TMR0
_TMR0	set	1
	global	_CARRY
_CARRY	set	24
	global	_GIE
_GIE	set	95
	global	_OPTION_REG
_OPTION_REG	set	129
	global	_TRISA
_TRISA	set	133
	global	_TRISB
_TRISB	set	134
	global	_TRISC
_TRISC	set	135
	global	_TRISD
_TRISD	set	136
	global	_TRISE
_TRISE	set	137
	global	_EEADR
_EEADR	set	269
	global	_EEDATA
_EEDATA	set	268
	global	_EECON1
_EECON1	set	396
	global	_EECON2
_EECON2	set	397
	global	_RD
_RD	set	3168
	global	_WR
_WR	set	3169
	global	_WREN
_WREN	set	3170
	file	"Test.as"
	line	#
psect cinit,class=CODE,delta=2
global start_initialization
start_initialization:

psect	bitbssCOMMON,class=COMMON,bit,space=1
global __pbitbssCOMMON
__pbitbssCOMMON:
_dir:
       ds      1

psect	bssCOMMON,class=COMMON,space=1
global __pbssCOMMON
__pbssCOMMON:
StepMotorPlay@cnt:
       ds      2

StepMotorPlay@i:
       ds      2

psect	bssBANK0,class=BANK0,space=1
global __pbssBANK0
__pbssBANK0:
StepMotorPlay@cnt2:
       ds      2

psect	dataBANK0,class=BANK0,space=1
global __pdataBANK0
__pdataBANK0:
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
	line	27
_ccwSet:
       ds      4

psect	dataBANK0
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
	line	26
_cwSet:
       ds      4

; Clear objects allocated to BITCOMMON
psect cinit,class=CODE,delta=2
	clrf	((__pbitbssCOMMON/8)+0)&07Fh
; Clear objects allocated to COMMON
psect cinit,class=CODE,delta=2
	clrf	((__pbssCOMMON)+0)&07Fh
	clrf	((__pbssCOMMON)+1)&07Fh
	clrf	((__pbssCOMMON)+2)&07Fh
	clrf	((__pbssCOMMON)+3)&07Fh
; Clear objects allocated to BANK0
psect cinit,class=CODE,delta=2
	clrf	((__pbssBANK0)+0)&07Fh
	clrf	((__pbssBANK0)+1)&07Fh
global btemp
psect inittext,class=CODE,delta=2
global init_fetch,btemp
;	Called with low address in FSR and high address in W
init_fetch:
	movf btemp,w
	movwf pclath
	movf btemp+1,w
	movwf pc
global init_ram
;Called with:
;	high address of idata address in btemp 
;	low address of idata address in btemp+1 
;	low address of data in FSR
;	high address + 1 of data in btemp-1
init_ram:
	fcall init_fetch
	movwf indf,f
	incf fsr,f
	movf fsr,w
	xorwf btemp-1,w
	btfsc status,2
	retlw 0
	incf btemp+1,f
	btfsc status,2
	incf btemp,f
	goto init_ram
; Initialize objects allocated to BANK0
psect cinit,class=CODE,delta=2
global init_ram, __pidataBANK0
	bcf	status, 7	;select IRP bank0
	movlw low(__pdataBANK0+8)
	movwf btemp-1,f
	movlw high(__pidataBANK0)
	movwf btemp,f
	movlw low(__pidataBANK0)
	movwf btemp+1,f
	movlw low(__pdataBANK0)
	movwf fsr,f
	fcall init_ram
psect cinit,class=CODE,delta=2
global end_of_initialization

;End of C runtime variable initialization code

end_of_initialization:
clrf status
ljmp _main	;jump to C main() function
psect	cstackCOMMON,class=COMMON,space=1
global __pcstackCOMMON
__pcstackCOMMON:
	global	?_StepMotorPlay
?_StepMotorPlay:	; 0 bytes @ 0x0
	global	?_HIGH_ISR
?_HIGH_ISR:	; 0 bytes @ 0x0
	global	?_SysInit
?_SysInit:	; 0 bytes @ 0x0
	global	?_DeviceInit
?_DeviceInit:	; 0 bytes @ 0x0
	global	?_main
?_main:	; 0 bytes @ 0x0
	global	?i1_flilflop_Enable
?i1_flilflop_Enable:	; 0 bytes @ 0x0
	global	i1flilflop_Enable@OuputData
i1flilflop_Enable@OuputData:	; 1 bytes @ 0x0
	ds	1
	global	??i1_flilflop_Enable
??i1_flilflop_Enable:	; 0 bytes @ 0x1
	ds	1
	global	i1flilflop_Enable@Add
i1flilflop_Enable@Add:	; 1 bytes @ 0x2
	ds	1
	global	??_StepMotorPlay
??_StepMotorPlay:	; 0 bytes @ 0x3
	ds	1
	global	??_HIGH_ISR
??_HIGH_ISR:	; 0 bytes @ 0x4
	ds	5
psect	cstackBANK0,class=BANK0,space=1
global __pcstackBANK0
__pcstackBANK0:
	global	?_flilflop_Enable
?_flilflop_Enable:	; 0 bytes @ 0x0
	global	??_SysInit
??_SysInit:	; 0 bytes @ 0x0
	global	flilflop_Enable@OuputData
flilflop_Enable@OuputData:	; 1 bytes @ 0x0
	ds	1
	global	??_flilflop_Enable
??_flilflop_Enable:	; 0 bytes @ 0x1
	ds	1
	global	flilflop_Enable@Add
flilflop_Enable@Add:	; 1 bytes @ 0x2
	ds	1
	global	??_DeviceInit
??_DeviceInit:	; 0 bytes @ 0x3
	global	??_main
??_main:	; 0 bytes @ 0x3
;;Data sizes: Strings 0, constant 0, data 8, bss 6, persistent 0 stack 0
;;Auto spaces:   Size  Autos    Used
;; COMMON          14      9      14
;; BANK0           80      3      13
;; BANK1           80      0       0
;; BANK3           96      0       0
;; BANK2           96      0       0

;;
;; Pointer list with targets:



;;
;; Critical Paths under _main in COMMON
;;
;;   None.
;;
;; Critical Paths under _HIGH_ISR in COMMON
;;
;;   _HIGH_ISR->_StepMotorPlay
;;   _StepMotorPlay->i1_flilflop_Enable
;;
;; Critical Paths under _main in BANK0
;;
;;   _DeviceInit->_flilflop_Enable
;;
;; Critical Paths under _HIGH_ISR in BANK0
;;
;;   None.
;;
;; Critical Paths under _main in BANK1
;;
;;   None.
;;
;; Critical Paths under _HIGH_ISR in BANK1
;;
;;   None.
;;
;; Critical Paths under _main in BANK3
;;
;;   None.
;;
;; Critical Paths under _HIGH_ISR in BANK3
;;
;;   None.
;;
;; Critical Paths under _main in BANK2
;;
;;   None.
;;
;; Critical Paths under _HIGH_ISR in BANK2
;;
;;   None.

;;
;;Main: autosize = 0, tempsize = 0, incstack = 0, save=0
;;

;;
;;Call Graph Tables:
;;
;; ---------------------------------------------------------------------------------
;; (Depth) Function   	        Calls       Base Space   Used Autos Params    Refs
;; ---------------------------------------------------------------------------------
;; (0) _main                                                 0     0      0      44
;;                            _SysInit
;;                         _DeviceInit
;; ---------------------------------------------------------------------------------
;; (1) _DeviceInit                                           0     0      0      44
;;                    _flilflop_Enable
;; ---------------------------------------------------------------------------------
;; (1) _SysInit                                              0     0      0       0
;; ---------------------------------------------------------------------------------
;; (2) _flilflop_Enable                                      3     2      1      44
;;                                              0 BANK0      3     2      1
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 2
;; ---------------------------------------------------------------------------------
;; (Depth) Function   	        Calls       Base Space   Used Autos Params    Refs
;; ---------------------------------------------------------------------------------
;; (3) _HIGH_ISR                                             5     5      0     146
;;                                              4 COMMON     5     5      0
;;                      _StepMotorPlay
;; ---------------------------------------------------------------------------------
;; (4) _StepMotorPlay                                        1     1      0     146
;;                                              3 COMMON     1     1      0
;;                  i1_flilflop_Enable
;; ---------------------------------------------------------------------------------
;; (5) i1_flilflop_Enable                                    3     2      1     146
;;                                              0 COMMON     3     2      1
;; ---------------------------------------------------------------------------------
;; Estimated maximum stack depth 5
;; ---------------------------------------------------------------------------------

;; Call Graph Graphs:

;; _main (ROOT)
;;   _SysInit
;;   _DeviceInit
;;     _flilflop_Enable
;;
;; _HIGH_ISR (ROOT)
;;   _StepMotorPlay
;;     i1_flilflop_Enable
;;

;; Address spaces:

;;Name               Size   Autos  Total    Cost      Usage
;;BANK3               60      0       0       9        0.0%
;;BITBANK3            60      0       0       8        0.0%
;;SFR3                 0      0       0       4        0.0%
;;BITSFR3              0      0       0       4        0.0%
;;BANK2               60      0       0      11        0.0%
;;BITBANK2            60      0       0      10        0.0%
;;SFR2                 0      0       0       5        0.0%
;;BITSFR2              0      0       0       5        0.0%
;;SFR1                 0      0       0       2        0.0%
;;BITSFR1              0      0       0       2        0.0%
;;BANK1               50      0       0       7        0.0%
;;BITBANK1            50      0       0       6        0.0%
;;CODE                 0      0       0       0        0.0%
;;DATA                 0      0      23      12        0.0%
;;ABS                  0      0      1B       3        0.0%
;;NULL                 0      0       0       0        0.0%
;;STACK                0      0       8       2        0.0%
;;BANK0               50      3       D       5       16.3%
;;BITBANK0            50      0       0       4        0.0%
;;SFR0                 0      0       0       1        0.0%
;;BITSFR0              0      0       0       1        0.0%
;;COMMON               E      9       E       1      100.0%
;;BITCOMMON            E      0       1       0        7.1%
;;EEDATA             100      0       0       0        0.0%

	global	_main
psect	maintext,global,class=CODE,delta=2
global __pmaintext
__pmaintext:

;; *************** function _main *****************
;; Defined at:
;;		line 100 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0, pclath, cstack
;; Tracked objects:
;;		On entry : 17F/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         0       0       0       0       0
;;      Locals:         0       0       0       0       0
;;      Temps:          0       0       0       0       0
;;      Totals:         0       0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels required when called:    5
;; This function calls:
;;		_SysInit
;;		_DeviceInit
;; This function is called by:
;;		Startup code after reset
;; This function uses a non-reentrant model
;;
psect	maintext
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
	line	100
	global	__size_of_main
	__size_of_main	equ	__end_of_main-_main
	
_main:	
	opt	stack 3
; Regs used in _main: [wreg+status,2+status,0+pclath+cstack]
	line	101
	
l2755:	
;test_all_code.c: 101: SysInit();
	fcall	_SysInit
	line	102
;test_all_code.c: 102: DeviceInit();
	fcall	_DeviceInit
	goto	l718
	line	103
;test_all_code.c: 103: while (1)
	
l717:	
	line	105
;test_all_code.c: 104: {
	
l718:	
	line	103
	goto	l718
	
l719:	
	line	106
	
l720:	
	global	start
	ljmp	start
	opt stack 0
GLOBAL	__end_of_main
	__end_of_main:
;; =============== function _main ends ============

	signat	_main,88
	global	_DeviceInit
psect	text187,local,class=CODE,delta=2
global __ptext187
__ptext187:

;; *************** function _DeviceInit *****************
;; Defined at:
;;		line 87 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         0       0       0       0       0
;;      Locals:         0       0       0       0       0
;;      Temps:          0       0       0       0       0
;;      Totals:         0       0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    4
;; This function calls:
;;		_flilflop_Enable
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text187
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
	line	87
	global	__size_of_DeviceInit
	__size_of_DeviceInit	equ	__end_of_DeviceInit-_DeviceInit
	
_DeviceInit:	
	opt	stack 3
; Regs used in _DeviceInit: [wreg+status,2+status,0+pclath+cstack]
	line	89
	
l2753:	
;test_all_code.c: 89: flilflop_Enable(0X00,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(0)
	fcall	_flilflop_Enable
	line	90
;test_all_code.c: 90: flilflop_Enable(0X01,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(01h)
	fcall	_flilflop_Enable
	line	91
;test_all_code.c: 91: flilflop_Enable(0X02,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(02h)
	fcall	_flilflop_Enable
	line	92
;test_all_code.c: 92: flilflop_Enable(0X03,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(03h)
	fcall	_flilflop_Enable
	line	93
;test_all_code.c: 93: flilflop_Enable(0X04,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(04h)
	fcall	_flilflop_Enable
	line	94
;test_all_code.c: 94: flilflop_Enable(0X05,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(05h)
	fcall	_flilflop_Enable
	line	95
;test_all_code.c: 95: flilflop_Enable(0X06,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(06h)
	fcall	_flilflop_Enable
	line	96
;test_all_code.c: 96: flilflop_Enable(0X07,0X00);
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(?_flilflop_Enable)
	movlw	(07h)
	fcall	_flilflop_Enable
	line	97
	
l714:	
	return
	opt stack 0
GLOBAL	__end_of_DeviceInit
	__end_of_DeviceInit:
;; =============== function _DeviceInit ends ============

	signat	_DeviceInit,88
	global	_SysInit
psect	text188,local,class=CODE,delta=2
global __ptext188
__ptext188:

;; *************** function _SysInit *****************
;; Defined at:
;;		line 69 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         0       0       0       0       0
;;      Locals:         0       0       0       0       0
;;      Temps:          0       0       0       0       0
;;      Totals:         0       0       0       0       0
;;Total ram usage:        0 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    3
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_main
;; This function uses a non-reentrant model
;;
psect	text188
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
	line	69
	global	__size_of_SysInit
	__size_of_SysInit	equ	__end_of_SysInit-_SysInit
	
_SysInit:	
	opt	stack 4
; Regs used in _SysInit: [wreg+status,2]
	line	71
	
l2733:	
;test_all_code.c: 71: TRISA = 0X0f;
	movlw	(0Fh)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(133)^080h	;volatile
	line	72
;test_all_code.c: 72: TRISB = 0X01;
	movlw	(01h)
	movwf	(134)^080h	;volatile
	line	73
	
l2735:	
;test_all_code.c: 73: PORTB = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(6)	;volatile
	line	74
	
l2737:	
;test_all_code.c: 74: TRISC = 0x80;
	movlw	(080h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(135)^080h	;volatile
	line	75
;test_all_code.c: 75: PORTC = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(7)	;volatile
	line	76
;test_all_code.c: 76: TRISD = 0X00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(136)^080h	;volatile
	line	77
;test_all_code.c: 77: PORTD = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(8)	;volatile
	line	78
;test_all_code.c: 78: TRISE = 0X00;
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	clrf	(137)^080h	;volatile
	line	79
;test_all_code.c: 79: PORTE = 0X00;
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	clrf	(9)	;volatile
	line	81
	
l2739:	
;test_all_code.c: 81: OPTION_REG = 0b01000100;
	movlw	(044h)
	bsf	status, 5	;RP0=1, select bank1
	bcf	status, 6	;RP1=0, select bank1
	movwf	(129)^080h	;volatile
	line	82
	
l2741:	
;test_all_code.c: 82: INTCON = 0b10100100;
	movlw	(0A4h)
	movwf	(11)	;volatile
	line	83
	
l2743:	
;test_all_code.c: 83: TMR0 = 0X83;
	movlw	(083h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(1)	;volatile
	line	85
	
l711:	
	return
	opt stack 0
GLOBAL	__end_of_SysInit
	__end_of_SysInit:
;; =============== function _SysInit ends ============

	signat	_SysInit,88
	global	_flilflop_Enable
psect	text189,local,class=CODE,delta=2
global __ptext189
__ptext189:

;; *************** function _flilflop_Enable *****************
;; Defined at:
;;		line 30 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
;; Parameters:    Size  Location     Type
;;  Add             1    wreg     unsigned char 
;;  OuputData       1    0[BANK0 ] unsigned char 
;; Auto vars:     Size  Location     Type
;;  Add             1    2[BANK0 ] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         0       1       0       0       0
;;      Locals:         0       1       0       0       0
;;      Temps:          0       1       0       0       0
;;      Totals:         0       3       0       0       0
;;Total ram usage:        3 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    3
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_DeviceInit
;; This function uses a non-reentrant model
;;
psect	text189
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
	line	30
	global	__size_of_flilflop_Enable
	__size_of_flilflop_Enable	equ	__end_of_flilflop_Enable-_flilflop_Enable
	
_flilflop_Enable:	
	opt	stack 3
; Regs used in _flilflop_Enable: [wreg+status,2+status,0]
;flilflop_Enable@Add stored from wreg
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(flilflop_Enable@Add)
	line	31
	
l2695:	
;test_all_code.c: 31: PORTD = OuputData;PORTB |= 0X10;
	movf	(flilflop_Enable@OuputData),w
	movwf	(8)	;volatile
	
l2697:	
	bsf	(6)+(4/8),(4)&7	;volatile
	line	32
;test_all_code.c: 32: PORTC = Add;
	movf	(flilflop_Enable@Add),w
	movwf	(7)	;volatile
	line	33
	
l2699:	
;test_all_code.c: 33: PORTB &= ~0X10;
	movlw	(0EFh)
	movwf	(??_flilflop_Enable+0)+0
	movf	(??_flilflop_Enable+0)+0,w
	andwf	(6),f	;volatile
	line	34
	
l2701:	
;test_all_code.c: 34: PORTB |= 0X10;
	bsf	(6)+(4/8),(4)&7	;volatile
	line	35
	
l691:	
	return
	opt stack 0
GLOBAL	__end_of_flilflop_Enable
	__end_of_flilflop_Enable:
;; =============== function _flilflop_Enable ends ============

	signat	_flilflop_Enable,8312
	global	_HIGH_ISR
psect	text190,local,class=CODE,delta=2
global __ptext190
__ptext190:

;; *************** function _HIGH_ISR *****************
;; Defined at:
;;		line 62 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         0       0       0       0       0
;;      Locals:         0       0       0       0       0
;;      Temps:          5       0       0       0       0
;;      Totals:         5       0       0       0       0
;;Total ram usage:        5 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    2
;; This function calls:
;;		_StepMotorPlay
;; This function is called by:
;;		Interrupt level 1
;; This function uses a non-reentrant model
;;
psect	text190
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
	line	62
	global	__size_of_HIGH_ISR
	__size_of_HIGH_ISR	equ	__end_of_HIGH_ISR-_HIGH_ISR
	
_HIGH_ISR:	
	opt	stack 3
; Regs used in _HIGH_ISR: [wreg-fsr0h+status,2+status,0+pclath+cstack]
psect	intentry,class=CODE,delta=2
global __pintentry
__pintentry:
global interrupt_function
interrupt_function:
	global saved_w
	saved_w	set	btemp+0
	movwf	saved_w
	swapf	status,w
	movwf	(??_HIGH_ISR+1)
	movf	fsr0,w
	movwf	(??_HIGH_ISR+2)
	movf	pclath,w
	movwf	(??_HIGH_ISR+3)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movf	btemp+1,w
	movwf	(??_HIGH_ISR+4)
	ljmp	_HIGH_ISR
psect	text190
	line	63
	
i1l2727:	
;test_all_code.c: 63: INTCON &= ~0X04;
	movlw	(0FBh)
	movwf	(??_HIGH_ISR+0)+0
	movf	(??_HIGH_ISR+0)+0,w
	andwf	(11),f	;volatile
	line	64
	
i1l2729:	
;test_all_code.c: 64: StepMotorPlay();
	fcall	_StepMotorPlay
	line	65
	
i1l2731:	
;test_all_code.c: 65: TMR0 += 0X83;
	movlw	(083h)
	movwf	(??_HIGH_ISR+0)+0
	movf	(??_HIGH_ISR+0)+0,w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	addwf	(1),f	;volatile
	line	66
	
i1l708:	
	movf	(??_HIGH_ISR+4),w
	movwf	btemp+1
	movf	(??_HIGH_ISR+3),w
	movwf	pclath
	movf	(??_HIGH_ISR+2),w
	movwf	fsr0
	swapf	(??_HIGH_ISR+1)^0FFFFFF80h,w
	movwf	status
	swapf	saved_w,f
	swapf	saved_w,w
	retfie
	opt stack 0
GLOBAL	__end_of_HIGH_ISR
	__end_of_HIGH_ISR:
;; =============== function _HIGH_ISR ends ============

	signat	_HIGH_ISR,88
	global	_StepMotorPlay
psect	text191,local,class=CODE,delta=2
global __ptext191
__ptext191:

;; *************** function _StepMotorPlay *****************
;; Defined at:
;;		line 37 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
;; Parameters:    Size  Location     Type
;;		None
;; Auto vars:     Size  Location     Type
;;		None
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, fsr0l, fsr0h, status,2, status,0, pclath, cstack
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         0       0       0       0       0
;;      Locals:         0       0       0       0       0
;;      Temps:          1       0       0       0       0
;;      Totals:         1       0       0       0       0
;;Total ram usage:        1 bytes
;; Hardware stack levels used:    1
;; Hardware stack levels required when called:    1
;; This function calls:
;;		i1_flilflop_Enable
;; This function is called by:
;;		_HIGH_ISR
;; This function uses a non-reentrant model
;;
psect	text191
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
	line	37
	global	__size_of_StepMotorPlay
	__size_of_StepMotorPlay	equ	__end_of_StepMotorPlay-_StepMotorPlay
	
_StepMotorPlay:	
	opt	stack 3
; Regs used in _StepMotorPlay: [wreg-fsr0h+status,2+status,0+pclath+cstack]
	line	40
	
i1l2703:	
;test_all_code.c: 38: static unsigned int cnt, cnt2 = 0;
;test_all_code.c: 39: static unsigned int i = 0;
;test_all_code.c: 40: cnt++;
	movlw	low(01h)
	addwf	(StepMotorPlay@cnt),f
	skipnc
	incf	(StepMotorPlay@cnt+1),f
	movlw	high(01h)
	addwf	(StepMotorPlay@cnt+1),f
	line	41
;test_all_code.c: 41: if (cnt == 2)
	movlw	02h
	xorwf	(StepMotorPlay@cnt),w
	iorwf	(StepMotorPlay@cnt+1),w
	skipz
	goto	u226_21
	goto	u226_20
u226_21:
	goto	i1l705
u226_20:
	line	43
	
i1l2705:	
;test_all_code.c: 42: {
;test_all_code.c: 43: if (dir)
	btfss	(_dir/8),(_dir)&7
	goto	u227_21
	goto	u227_20
u227_21:
	goto	i1l2711
u227_20:
	line	45
	
i1l2707:	
;test_all_code.c: 44: {
;test_all_code.c: 45: flilflop_Enable(0X05,cwSet[i++]);
	movf	(StepMotorPlay@i),w
	addlw	_cwSet&0ffh
	movwf	fsr0
	bcf	status, 7	;select IRP bank0
	movf	indf,w
	movwf	(??_StepMotorPlay+0)+0
	movf	(??_StepMotorPlay+0)+0,w
	movwf	(?i1_flilflop_Enable)
	movlw	(05h)
	fcall	i1_flilflop_Enable
	
i1l2709:	
	movlw	low(01h)
	addwf	(StepMotorPlay@i),f
	skipnc
	incf	(StepMotorPlay@i+1),f
	movlw	high(01h)
	addwf	(StepMotorPlay@i+1),f
	line	46
;test_all_code.c: 46: }
	goto	i1l2715
	line	47
	
i1l701:	
	
i1l2711:	
;test_all_code.c: 47: else flilflop_Enable(0X05,ccwSet[i++]);
	movf	(StepMotorPlay@i),w
	addlw	_ccwSet&0ffh
	movwf	fsr0
	bcf	status, 7	;select IRP bank0
	movf	indf,w
	movwf	(??_StepMotorPlay+0)+0
	movf	(??_StepMotorPlay+0)+0,w
	movwf	(?i1_flilflop_Enable)
	movlw	(05h)
	fcall	i1_flilflop_Enable
	
i1l2713:	
	movlw	low(01h)
	addwf	(StepMotorPlay@i),f
	skipnc
	incf	(StepMotorPlay@i+1),f
	movlw	high(01h)
	addwf	(StepMotorPlay@i+1),f
	goto	i1l2715
	
i1l702:	
	line	48
	
i1l2715:	
;test_all_code.c: 48: if (i == 4)
	movlw	04h
	xorwf	(StepMotorPlay@i),w
	iorwf	(StepMotorPlay@i+1),w
	skipz
	goto	u228_21
	goto	u228_20
u228_21:
	goto	i1l703
u228_20:
	line	50
	
i1l2717:	
;test_all_code.c: 49: {
;test_all_code.c: 50: i = 0;
	clrf	(StepMotorPlay@i)
	clrf	(StepMotorPlay@i+1)
	line	51
	
i1l703:	
	line	52
;test_all_code.c: 51: }
;test_all_code.c: 52: cnt = 0;
	clrf	(StepMotorPlay@cnt)
	clrf	(StepMotorPlay@cnt+1)
	line	53
	
i1l2719:	
;test_all_code.c: 53: cnt2++;
	movlw	low(01h)
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	addwf	(StepMotorPlay@cnt2),f
	skipnc
	incf	(StepMotorPlay@cnt2+1),f
	movlw	high(01h)
	addwf	(StepMotorPlay@cnt2+1),f
	line	54
	
i1l2721:	
;test_all_code.c: 54: if (cnt2 == 1000)
	movlw	high(03E8h)
	xorwf	(StepMotorPlay@cnt2+1),w
	skipz
	goto	u229_25
	movlw	low(03E8h)
	xorwf	(StepMotorPlay@cnt2),w
u229_25:

	skipz
	goto	u229_21
	goto	u229_20
u229_21:
	goto	i1l705
u229_20:
	line	56
	
i1l2723:	
;test_all_code.c: 55: {
;test_all_code.c: 56: dir ^= 1;
	movlw	1<<((_dir)&7)
	xorwf	((_dir)/8),f
	line	57
	
i1l2725:	
;test_all_code.c: 57: cnt2 = 0;
	clrf	(StepMotorPlay@cnt2)
	clrf	(StepMotorPlay@cnt2+1)
	goto	i1l705
	line	58
	
i1l704:	
	goto	i1l705
	line	59
	
i1l700:	
	line	60
	
i1l705:	
	return
	opt stack 0
GLOBAL	__end_of_StepMotorPlay
	__end_of_StepMotorPlay:
;; =============== function _StepMotorPlay ends ============

	signat	_StepMotorPlay,88
	global	i1_flilflop_Enable
psect	text192,local,class=CODE,delta=2
global __ptext192
__ptext192:

;; *************** function i1_flilflop_Enable *****************
;; Defined at:
;;		line 30 in file "D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
;; Parameters:    Size  Location     Type
;;  flilflop_Ena    1    wreg     unsigned char 
;;  flilflop_Ena    1    0[COMMON] unsigned char 
;; Auto vars:     Size  Location     Type
;;  flilflop_Ena    1    2[COMMON] unsigned char 
;; Return value:  Size  Location     Type
;;		None               void
;; Registers used:
;;		wreg, status,2, status,0
;; Tracked objects:
;;		On entry : 0/0
;;		On exit  : 0/0
;;		Unchanged: 0/0
;; Data sizes:     COMMON   BANK0   BANK1   BANK3   BANK2
;;      Params:         1       0       0       0       0
;;      Locals:         1       0       0       0       0
;;      Temps:          1       0       0       0       0
;;      Totals:         3       0       0       0       0
;;Total ram usage:        3 bytes
;; Hardware stack levels used:    1
;; This function calls:
;;		Nothing
;; This function is called by:
;;		_StepMotorPlay
;; This function uses a non-reentrant model
;;
psect	text192
	file	"D:\Product\PIC\LK-P16-F\Firmware\V03\PIC16F18F-F_Test_Code_17_0112\Each_Code\CH13_StepMotor\test_all_code.c"
	line	30
	global	__size_ofi1_flilflop_Enable
	__size_ofi1_flilflop_Enable	equ	__end_ofi1_flilflop_Enable-i1_flilflop_Enable
	
i1_flilflop_Enable:	
	opt	stack 3
; Regs used in i1_flilflop_Enable: [wreg+status,2+status,0]
;i1flilflop_Enable@Add stored from wreg
	movwf	(i1flilflop_Enable@Add)
	line	31
	
i1l2745:	
;test_all_code.c: 31: PORTD = OuputData;PORTB |= 0X10;
	movf	(i1flilflop_Enable@OuputData),w
	bcf	status, 5	;RP0=0, select bank0
	bcf	status, 6	;RP1=0, select bank0
	movwf	(8)	;volatile
	
i1l2747:	
	bsf	(6)+(4/8),(4)&7	;volatile
	line	32
;test_all_code.c: 32: PORTC = Add;
	movf	(i1flilflop_Enable@Add),w
	movwf	(7)	;volatile
	line	33
	
i1l2749:	
;test_all_code.c: 33: PORTB &= ~0X10;
	movlw	(0EFh)
	movwf	(??i1_flilflop_Enable+0)+0
	movf	(??i1_flilflop_Enable+0)+0,w
	andwf	(6),f	;volatile
	line	34
	
i1l2751:	
;test_all_code.c: 34: PORTB |= 0X10;
	bsf	(6)+(4/8),(4)&7	;volatile
	line	35
	
i1l691:	
	return
	opt stack 0
GLOBAL	__end_ofi1_flilflop_Enable
	__end_ofi1_flilflop_Enable:
;; =============== function i1_flilflop_Enable ends ============

	signat	i1_flilflop_Enable,88
psect	text193,local,class=CODE,delta=2
global __ptext193
__ptext193:
	global	btemp
	btemp set 07Eh

	DABS	1,126,2	;btemp
	global	wtemp0
	wtemp0 set btemp
	end
