; Generated by holtek-gcc v3.19, Thu May 14 10:24:16 2020
; 
; Configuration:
;       with long instruction
;       Multi-ROM, Multi-RAM
;       bits_per_rom_unit:16
;       with mp1
;       with tbhp, address(0x9)
;          Use tabrd-const
;       
; SFR address of long-instruction arch:
;    mp0 = -1,1,0
;    mp1 = 4,3,2
;    mp2 = 14,13,12
;    tbp = 9,7,8
;    acc = 5
;    pcl = 6
;    status = 10
;    bp = 11
;    intc = 16
;       
;       
; use 'tabrdc' instead of 'tabrd'
;       

#pragma translator "holtek-gcc 4.6.4" "3.19" "build 20130711"
; Rebuild 718

ir equ [2]
mp equ [3]
sbp equ [4]
acc equ [5]
bp equ [11]
tblp equ [7]
tbhp equ [9]
status equ [10]
c equ [10].0
ac equ [10].1
z equ [10].2
ov equ [10].3
cz equ [10].6
sc equ [10].7
intc equ [16]
mduwr0 equ [59h]
mduwr1 equ [5ah]
mduwr2 equ [5bh]
mduwr3 equ [5ch]
mduwr4 equ [5dh]
mduwr5 equ [5eh]
mduwrctrl equ [5fh]

extern ra:byte
extern rb:byte
extern rc:byte
extern rd:byte
extern re:byte
extern rf:byte
extern rg:byte
extern rh:byte
extern _Crom2Prom:near
extern _Crom2PromNext:near

RAMBANK 0 @BITDATASEC, @BITDATASEC1
@HCCINIT	.section 'data'
@HCCINIT0	.section 'data'
@BITDATASEC	 .section 'data'
@BITDATASEC1	 .section 'data'

#pragma debug scope 1 1
	extern __DELAY3:near
	extern __DELAYX3:near
	extern __DELAYX6:near
	extern __DELAYY5:near
	extern __DELAYY3:near
	extern _builtin_holtek_delay_2:byte
___ptm0al equ [260]
___ptm0ah equ [261]
___ptm0c0 equ [256]
___ptm0c1 equ [257]
___mfi0 equ [70]
___intc1 equ [17]
___ptm1al equ [286]
___ptm1ah equ [287]
___ptm1c0 equ [282]
___ptm1c1 equ [283]
___mfi1 equ [71]
___intc0 equ [16]
public _Drv_PTMn_Timer_Init
#pragma debug scope 2 1
#line 58 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
_Drv_PTMn_Timer_Init .section 'code'
_Drv_PTMn_Timer_Init proc
public _Drv_PTMn_Timer_Init_2
    local _Drv_PTMn_Timer_Init_2 db 5 dup(?)	; 4,1
	mov ra,a
	mov _Drv_PTMn_Timer_Init_2[4],a
#pragma debug variable 8 2 _Drv_PTMn_Timer_Init_2+4 "PTMn"
#pragma debug variable 12 2 _Drv_PTMn_Timer_Init_2+0 "timeClock"
#pragma debug variable 12 2 _Drv_PTMn_Timer_Init_2+2 "Count"
#line 59 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	sz ra
	jmp _L2
#line 61 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	mov a,_Drv_PTMn_Timer_Init_2[2]
	lmov [260],a
	mov a,_Drv_PTMn_Timer_Init_2[3]
	lmov [261],a
#line 62 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	mov a,_Drv_PTMn_Timer_Init_2[0]
	lmov [256],a
#line 63 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	mov a,193
	lmov [257],a
#line 64 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	clr [70].5
	set [70].1
#line 65 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	clr [17].5
	set [17].1
	jmp _L3
_L2:
#line 67 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	sdza _Drv_PTMn_Timer_Init_2[4]
	jmp _L3
#line 69 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	mov a,_Drv_PTMn_Timer_Init_2[2]
	lmov [286],a
	mov a,_Drv_PTMn_Timer_Init_2[3]
	lmov [287],a
#line 70 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	mov a,_Drv_PTMn_Timer_Init_2[0]
	lmov [282],a
#line 71 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	mov a,193
	lmov [283],a
#line 72 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	clr [71].5
	set [71].1
#line 73 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	clr [17].6
	set [17].2
_L3:
#line 75 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	set [16].0
	ret
_Drv_PTMn_Timer_Init endp
#line 75 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
#pragma debug scope 1 1
public _Drv_PTM0_PWM_Init
#pragma debug scope 3 1
#line 88 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
_Drv_PTM0_PWM_Init .section 'code'
_Drv_PTM0_PWM_Init proc
public _Drv_PTM0_PWM_Init_2
    local _Drv_PTM0_PWM_Init_2 db 5 dup(?)	; 4,1
	mov ra,a
	mov _Drv_PTM0_PWM_Init_2[4],a
#pragma debug variable 8 3 _Drv_PTM0_PWM_Init_2+4 "PTMn"
#pragma debug variable 12 3 _Drv_PTM0_PWM_Init_2+0 "timeClock"
#pragma debug variable 12 3 _Drv_PTM0_PWM_Init_2+2 "Count"
#line 89 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	sz ra
	jmp _L6
#pragma debug scope 4 3
;begin block, line: 89.-1
#line 91 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	mov a,_Drv_PTM0_PWM_Init_2[2]
	lmov [260],a
	mov a,_Drv_PTM0_PWM_Init_2[3]
	lmov [261],a
#line 92 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	mov a,_Drv_PTM0_PWM_Init_2[0]
	lmov [256],a
#line 93 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	mov a,168
	lmov [257],a
#line 94 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	fcall _SET_PB4_PTP0
#line 95 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	fcall _SET_PB5_PTP0B
#line 99 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	clr [70].5
	set [70].1
#line 100 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	clr [17].5
	set [17].1
#pragma debug scope 3 1
	jmp _L5
_L6:
#line 102 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	sdza _Drv_PTM0_PWM_Init_2[4]
	jmp _L5
#pragma debug scope 5 3
;begin block, line: 102.-1
#line 104 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	mov a,_Drv_PTM0_PWM_Init_2[2]
	lmov [286],a
	mov a,_Drv_PTM0_PWM_Init_2[3]
	lmov [287],a
#line 105 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	mov a,_Drv_PTM0_PWM_Init_2[0]
	lmov [256],a
#line 106 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	fcall _SET_PE4_PTP1B
#line 107 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	mov a,168
	lmov [283],a
#line 108 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	clr [71].5
	set [71].1
#line 109 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	clr [17].6
	set [17].2
_L5:
#pragma debug scope 3 1
	ret
_Drv_PTM0_PWM_Init endp
#line 109 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
#pragma debug scope 1 1
public _MuFunction0_ISR
#pragma debug scope 6 1
#line 117 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
rombank 0 @MuFunction0_ISR_code
@MuFunction0_ISR_code .section at 16 'code'
	mov r1,a
	mov a,bp
	clr bp
	jmp _MuFunction0_ISR
ROMBANK 0 _MuFunction0_ISR
#pragma debug scope 1 1
@dummy16 proc
	call _MuFunction0_ISR
@dummy16 endp
#pragma debug scope 7 1
_MuFunction0_ISR .section 'code'
_MuFunction0_ISR proc
	mov r2,a
	mov a, status
	mov r3,a
#line 118 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	snz [70].5
	jmp _L9
#line 120 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	clr [70].5
	jmp _L10
_L9:
#line 123 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	snz [70].4
	jmp _L10
#line 125 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	clr [70].4
_L10:
#line 128 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	snz [71].5
	jmp _L11
#line 130 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	clr [71].5
	jmp _L8
_L11:
#line 133 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	snz [71].4
	jmp _L8
#line 135 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
	clr [71].4
_L8:
	mov a,r2
	mov bp,a
	mov a,r3
	mov status,a
	mov a,r1
	reti
_MuFunction0_ISR endp

#line 135 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
#pragma debug scope 1 1
public _MuFunction1_ISR
#pragma debug scope 8 1
#line 142 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
rombank 0 @MuFunction1_ISR_code
@MuFunction1_ISR_code .section at 20 'code'
_MuFunction1_ISR:
	reti
#line 142 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
#pragma debug scope 1 1
public _MuFunction2_ISR
#pragma debug scope 9 1
#line 149 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
rombank 0 @MuFunction2_ISR_code
@MuFunction2_ISR_code .section at 24 'code'
_MuFunction2_ISR:
	reti
#line 149 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
#pragma debug scope 1 1
public _TIMEBASE0_ISR
#pragma debug scope 10 1
#line 155 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
rombank 0 @TIMEBASE0_ISR_code
@TIMEBASE0_ISR_code .section at 36 'code'
_TIMEBASE0_ISR:
	reti
#line 155 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
#pragma debug scope 1 1
public _TIMEBASE1_ISR
#pragma debug scope 11 1
#line 161 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
rombank 0 @TIMEBASE1_ISR_code
@TIMEBASE1_ISR_code .section at 40 'code'
_TIMEBASE1_ISR:
	reti
#line 161 "C:\Users\iris\Desktop\2. demo code\BH66F5362_LVD\BH66F5362_Drv\Drv_Timers.c"
#pragma debug scope 1 1
#pragma debug struct_begin 42 "__intc0_bits"
#pragma debug field 21 8 0 1 "__emi" ;0,1
#pragma debug field 21 8 0 1 "__int0e" ;1,1
#pragma debug field 21 8 0 1 "__int1e" ;2,1
#pragma debug field 21 8 0 1 ;3,1
#pragma debug field 21 8 0 1 "__int0f" ;4,1
#pragma debug field 21 8 0 1 "__int1f" ;5,1
#pragma debug field 21 8 0 2 ;6,2
#pragma debug struct_end
#pragma debug union_begin 43 ""
#pragma debug field 2 42 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 43 1 ___intc0 "__intc0" 1
#pragma debug struct_begin 44 "__intc1_bits"
#pragma debug field 21 8 0 1 "__cp1e" ;0,1
#pragma debug field 21 8 0 1 "__mf0e" ;1,1
#pragma debug field 21 8 0 1 "__mf1e" ;2,1
#pragma debug field 21 8 0 1 "__ade" ;3,1
#pragma debug field 21 8 0 1 "__cp1f" ;4,1
#pragma debug field 21 8 0 1 "__mf0f" ;5,1
#pragma debug field 21 8 0 1 "__mf1f" ;6,1
#pragma debug field 21 8 0 1 "__adf" ;7,1
#pragma debug struct_end
#pragma debug union_begin 45 ""
#pragma debug field 2 44 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 45 1 ___intc1 "__intc1" 1
#pragma debug struct_begin 46 "__mfi0_bits"
#pragma debug field 21 8 0 1 "__ptm0pe" ;0,1
#pragma debug field 21 8 0 1 "__ptm0ae" ;1,1
#pragma debug field 21 8 0 1 "__stm0pe" ;2,1
#pragma debug field 21 8 0 1 "__stm0ae" ;3,1
#pragma debug field 21 8 0 1 "__ptm0pf" ;4,1
#pragma debug field 21 8 0 1 "__ptm0af" ;5,1
#pragma debug field 21 8 0 1 "__stm0pf" ;6,1
#pragma debug field 21 8 0 1 "__stm0af" ;7,1
#pragma debug struct_end
#pragma debug union_begin 47 ""
#pragma debug field 2 46 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 47 1 ___mfi0 "__mfi0" 1
#pragma debug struct_begin 48 "__mfi1_bits"
#pragma debug field 21 8 0 1 "__ptm1pe" ;0,1
#pragma debug field 21 8 0 1 "__ptm1ae" ;1,1
#pragma debug field 21 8 0 1 "__stm1pe" ;2,1
#pragma debug field 21 8 0 1 "__stm1ae" ;3,1
#pragma debug field 21 8 0 1 "__ptm1pf" ;4,1
#pragma debug field 21 8 0 1 "__ptm1af" ;5,1
#pragma debug field 21 8 0 1 "__stm1pf" ;6,1
#pragma debug field 21 8 0 1 "__stm1af" ;7,1
#pragma debug struct_end
#pragma debug union_begin 49 ""
#pragma debug field 2 48 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 49 1 ___mfi1 "__mfi1" 1
#pragma debug struct_begin 50 "__ptm0c0_bits"
#pragma debug field 21 8 0 3 ;0,3
#pragma debug field 21 8 0 1 "__pt0on" ;3,1
#pragma debug field 21 8 0 1 "__pt0ck0" ;4,1
#pragma debug field 21 8 0 1 "__pt0ck1" ;5,1
#pragma debug field 21 8 0 1 "__pt0ck2" ;6,1
#pragma debug field 21 8 0 1 "__pt0pau" ;7,1
#pragma debug struct_end
#pragma debug union_begin 51 ""
#pragma debug field 2 50 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 51 1 ___ptm0c0 "__ptm0c0" 1
#pragma debug struct_begin 52 "__ptm0c1_bits"
#pragma debug field 21 8 0 1 "__pt0cclr" ;0,1
#pragma debug field 21 8 0 1 "__pt0capts" ;1,1
#pragma debug field 21 8 0 1 "__pt0pol" ;2,1
#pragma debug field 21 8 0 1 "__pt0oc" ;3,1
#pragma debug field 21 8 0 1 "__pt0io0" ;4,1
#pragma debug field 21 8 0 1 "__pt0io1" ;5,1
#pragma debug field 21 8 0 1 "__pt0m0" ;6,1
#pragma debug field 21 8 0 1 "__pt0m1" ;7,1
#pragma debug struct_end
#pragma debug union_begin 53 ""
#pragma debug field 2 52 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 53 1 ___ptm0c1 "__ptm0c1" 1
#pragma debug variable 8 1 ___ptm0al "__ptm0al" 1
#pragma debug variable 8 1 ___ptm0ah "__ptm0ah" 1
#pragma debug struct_begin 54 "__ptm1c0_bits"
#pragma debug field 21 8 0 3 ;0,3
#pragma debug field 21 8 0 1 "__pt1on" ;3,1
#pragma debug field 21 8 0 1 "__pt1ck0" ;4,1
#pragma debug field 21 8 0 1 "__pt1ck1" ;5,1
#pragma debug field 21 8 0 1 "__pt1ck2" ;6,1
#pragma debug field 21 8 0 1 "__pt1pau" ;7,1
#pragma debug struct_end
#pragma debug union_begin 55 ""
#pragma debug field 2 54 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 55 1 ___ptm1c0 "__ptm1c0" 1
#pragma debug struct_begin 56 "__ptm1c1_bits"
#pragma debug field 21 8 0 1 "__pt1cclr" ;0,1
#pragma debug field 21 8 0 1 "__pt1capts" ;1,1
#pragma debug field 21 8 0 1 "__pt1pol" ;2,1
#pragma debug field 21 8 0 1 "__pt1oc" ;3,1
#pragma debug field 21 8 0 1 "__pt1io0" ;4,1
#pragma debug field 21 8 0 1 "__pt1io1" ;5,1
#pragma debug field 21 8 0 1 "__pt1m0" ;6,1
#pragma debug field 21 8 0 1 "__pt1m1" ;7,1
#pragma debug struct_end
#pragma debug union_begin 57 ""
#pragma debug field 2 56 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 57 1 ___ptm1c1 "__ptm1c1" 1
#pragma debug variable 8 1 ___ptm1al "__ptm1al" 1
#pragma debug variable 8 1 ___ptm1ah "__ptm1ah" 1
extern r1:byte
extern r2:byte
extern r3:byte
extern _SET_PB4_PTP0:near
extern _SET_PB5_PTP0B:near
extern _SET_PE4_PTP1B:near

; 
; Generated by holtek-gcc v3.19, Thu May 14 10:24:16 2020
; Rebuild 718
; end of file
