; Generated by holtek-gcc v3.20, Fri Aug 28 11:21:42 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.20" "build 20130711"
; Rebuild 610

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
public _Drv_LVD
#pragma debug scope 2 1
#line 27 "c:\users\iris\desktop\2. demo code\bh67f5362_lvd\BH67F5362_Drv\Drv_LVD.c"
_Drv_LVD .section 'code'
_Drv_LVD proc
    local _Drv_LVD_2 db 4 dup(?)	; 0,4
#pragma debug variable 14 2 _Drv_LVD_2+0 "VDDData"
#line 29 "c:\users\iris\desktop\2. demo code\bh67f5362_lvd\BH67F5362_Drv\Drv_LVD.c"
	mov a,10
	mov _Drv_GetADC_AVGn_2[0],a
	mov a,1
	fcall _Drv_GetADC_AVGn
	mov a,ra
	mov _Drv_LVD_2[0],a
	mov a,rb
	mov _Drv_LVD_2[1],a
	clr _Drv_LVD_2[2]
	clr _Drv_LVD_2[3]
#line 30 "c:\users\iris\desktop\2. demo code\bh67f5362_lvd\BH67F5362_Drv\Drv_LVD.c"
	mov a,_Drv_LVD_2[0]
	mov _builtin_holtek_mulsi3_2[0],a
	mov a,_Drv_LVD_2[1]
	mov _builtin_holtek_mulsi3_2[1],a
	mov a,_Drv_LVD_2[2]
	mov _builtin_holtek_mulsi3_2[2],a
	mov a,_Drv_LVD_2[3]
	mov _builtin_holtek_mulsi3_2[3],a
	mov a,228
	mov _builtin_holtek_mulsi3_2[4],a
	mov a,12
	mov _builtin_holtek_mulsi3_2[5],a
	mov a,0
	mov _builtin_holtek_mulsi3_2[6],a
	mov a,0
	mov _builtin_holtek_mulsi3_2[7],a
	fcall _builtin_holtek_mulsi3
	mov a,_builtin_holtek_mulsi3_2[8]
	mov re,a
	mov a,_builtin_holtek_mulsi3_2[9]
	mov rf,a
	mov a,_builtin_holtek_mulsi3_2[10]
	mov rg,a
	mov a,_builtin_holtek_mulsi3_2[11]
	mov rh,a
	mov a,re
	mov ra,a
	mov a,rf
	mov rb,a
	mov a,rg
	mov rc,a
	mov a,rh
	mov rd,a
	mov a,12
_LI1:
	clr c
	rrc rd
	rrc rc
	rrc rb
	rrc ra
	sdz acc
	jmp _LI1
	mov a,ra
	mov _Drv_LVD_2[0],a
	mov a,rb
	mov _Drv_LVD_2[1],a
	mov a,rc
	mov _Drv_LVD_2[2],a
	mov a,rd
	mov _Drv_LVD_2[3],a
#line 32 "c:\users\iris\desktop\2. demo code\bh67f5362_lvd\BH67F5362_Drv\Drv_LVD.c"
	mov a,_Drv_LVD_2[0]
	mov ra,a
	mov a,_Drv_LVD_2[1]
	mov rb,a
	mov a,_Drv_LVD_2[2]
	mov rc,a
	mov a,_Drv_LVD_2[3]
	mov rd,a
	ret
_Drv_LVD endp
#line 32 "c:\users\iris\desktop\2. demo code\bh67f5362_lvd\BH67F5362_Drv\Drv_LVD.c"
#pragma debug scope 1 1
___mfi3 equ [73]
public _MuFunction3_ISR
#pragma debug scope 3 1
#line 36 "c:\users\iris\desktop\2. demo code\bh67f5362_lvd\BH67F5362_Drv\Drv_LVD.c"
rombank 0 @MuFunction3_ISR_code
@MuFunction3_ISR_code .section at 44 'code'
	mov r1,a
	mov a,bp
	clr bp
	jmp _MuFunction3_ISR
ROMBANK 0 _MuFunction3_ISR
#pragma debug scope 1 1
@dummy44 proc
	call _MuFunction3_ISR
@dummy44 endp
#pragma debug scope 4 1
_MuFunction3_ISR .section 'code'
_MuFunction3_ISR proc
	mov r2,a
	mov a, status
	mov r3,a
#line 37 "c:\users\iris\desktop\2. demo code\bh67f5362_lvd\BH67F5362_Drv\Drv_LVD.c"
	snz [73].4
	jmp _L2
#line 39 "c:\users\iris\desktop\2. demo code\bh67f5362_lvd\BH67F5362_Drv\Drv_LVD.c"
	clr [73].4
_L2:
	mov a,r2
	mov bp,a
	mov a,r3
	mov status,a
	mov a,r1
	reti
_MuFunction3_ISR endp

#line 39 "c:\users\iris\desktop\2. demo code\bh67f5362_lvd\BH67F5362_Drv\Drv_LVD.c"
#pragma debug scope 1 1
#pragma debug struct_begin 42 "__mfi3_bits"
#pragma debug field 21 8 0 1 "__lve" ;0,1
#pragma debug field 21 8 0 1 "__dee" ;1,1
#pragma debug field 21 8 0 1 "__spie" ;2,1
#pragma debug field 21 8 0 1 "__sime" ;3,1
#pragma debug field 21 8 0 1 "__lvf" ;4,1
#pragma debug field 21 8 0 1 "__def" ;5,1
#pragma debug field 21 8 0 1 "__spif" ;6,1
#pragma debug field 21 8 0 1 "__simf" ;7,1
#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 ___mfi3 "__mfi3" 1
extern r1:byte
extern r2:byte
extern r3:byte
extern _Drv_GetADC_AVGn_2:byte
extern _Drv_GetADC_AVGn:near
extern _builtin_holtek_mulsi3_2:byte
extern _builtin_holtek_mulsi3:near

; 
; Generated by holtek-gcc v3.20, Fri Aug 28 11:21:42 2020
; Rebuild 610
; end of file
