; Generated by holtek-gcc v3.19, Mon Jul 14 16:56:28 2025
; 
; Configuration:
;       with long instruction
;       Single 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 = 32
;       
;       
; 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 [32]

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
___irefc equ [69]
___pvref equ [70]
public _VirefCfg
#pragma debug scope 2 1
#line 37 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_VirefCfg .section 'code'
_VirefCfg proc
public _VirefCfg_2
    local _VirefCfg_2 db 13 dup(?)	; 13,0
#pragma debug struct_begin 42 "DAC_t"
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug struct_begin 43 ""
#pragma debug field 0 8 "dacRefVol"
#pragma debug field 0 8 "dacVrefSelect"
#pragma debug field 0 8 "vrefData"
#pragma debug field 0 8 "irefEn"
#pragma debug field 2 42 "dac1"
#pragma debug field 2 42 "dac2"
#pragma debug field 2 42 "dac3"
#pragma debug struct_end
#pragma debug variable 43 2 _VirefCfg_2+0 "afePower"
#line 38 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,252
	andm a,[69]
#line 39 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_VirefCfg_2[0]
	orm a,[69]
#line 40 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_VirefCfg_2[1]
	and a,1
	mov rb,a
	clr ra
	sz rb
	set ra.2
	clr [69].2
	mov a,ra
	orm a,[69]
#line 41 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_VirefCfg_2[2]
	mov [70],a
#line 42 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_VirefCfg_2[3]
	and a,1
	mov ra,a
	swapa ra
	and a,0f0h 
	mov ra,a
	clr [69].4
	mov a,ra
	orm a,[69]
	ret
_VirefCfg endp
#line 42 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
___afeda1l equ [74]
___afeda1h equ [75]
___afeda1c equ [73]
public _Dac1Cfg
#pragma debug scope 3 1
#line 46 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_Dac1Cfg .section 'code'
_Dac1Cfg proc
public _Dac1Cfg_2
    local _Dac1Cfg_2 db 3 dup(?)	; 3,0
#pragma debug struct_begin 44 ""
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug variable 44 3 _Dac1Cfg_2+0 "dac"
	mov a,_Dac1Cfg_2[1]
	mov rb,a
	mov a,_Dac1Cfg_2[2]
	mov rc,a
#line 47 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,rb
	mov ra,a
	swapa ra
	and a,0f0h 
	mov ra,a
	mov a,ra
	mov [74],a
#line 48 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,4
_LI1:
	clr c
	rrc rc
	rrc rb
	sdz acc
	jmp _LI1
	mov a,rb
	mov [75],a
#line 49 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_Dac1Cfg_2[0]
	mov [73],a
	ret
_Dac1Cfg endp
#line 49 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
___afeda2l equ [77]
___afeda2h equ [78]
___afeda2c equ [76]
public _Dac2Cfg
#pragma debug scope 4 1
#line 53 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_Dac2Cfg .section 'code'
_Dac2Cfg proc
public _Dac2Cfg_2
    local _Dac2Cfg_2 db 3 dup(?)	; 3,0
#pragma debug struct_begin 45 ""
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug variable 45 4 _Dac2Cfg_2+0 "dac"
	mov a,_Dac2Cfg_2[1]
	mov rb,a
	mov a,_Dac2Cfg_2[2]
	mov rc,a
#line 54 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,rb
	mov ra,a
	swapa ra
	and a,0f0h 
	mov ra,a
	mov a,ra
	mov [77],a
#line 55 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,4
_LI2:
	clr c
	rrc rc
	rrc rb
	sdz acc
	jmp _LI2
	mov a,rb
	mov [78],a
#line 56 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_Dac2Cfg_2[0]
	mov [76],a
	ret
_Dac2Cfg endp
#line 56 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
___afeda3l equ [80]
___afeda3h equ [81]
___afeda3c equ [79]
public _Dac3Cfg
#pragma debug scope 5 1
#line 60 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_Dac3Cfg .section 'code'
_Dac3Cfg proc
public _Dac3Cfg_2
    local _Dac3Cfg_2 db 3 dup(?)	; 3,0
#pragma debug struct_begin 46 ""
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug variable 46 5 _Dac3Cfg_2+0 "dac"
	mov a,_Dac3Cfg_2[1]
	mov rb,a
	mov a,_Dac3Cfg_2[2]
	mov rc,a
#line 61 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,rb
	mov ra,a
	swapa ra
	and a,0f0h 
	mov ra,a
	mov a,ra
	mov [80],a
#line 62 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,4
_LI3:
	clr c
	rrc rc
	rrc rb
	sdz acc
	jmp _LI3
	mov a,rb
	mov [81],a
#line 63 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_Dac3Cfg_2[0]
	mov [79],a
	ret
_Dac3Cfg endp
#line 63 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
___opac equ [71]
___gsc1 equ [72]
___fbrc equ [82]
public _Opa1Cfg
#pragma debug scope 6 1
#line 67 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_Opa1Cfg .section 'code'
_Opa1Cfg proc
public _Opa1Cfg_2
    local _Opa1Cfg_2 db 3 dup(?)	; 2,1
#pragma debug struct_begin 47 ""
#pragma debug field 0 8 "enable"
#pragma debug field 0 8 "feedbackRes"
#pragma debug struct_end
#pragma debug variable 47 6 _Opa1Cfg_2+0 "opa"
	mov a,_Opa1Cfg_2[1]
	mov _Opa1Cfg_2[2],a
#line 69 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_Opa1Cfg_2[0]
	and a,1
	mov ra,a
	mov a,ra
	mov rb,a
	swapa rb
	rl acc
	and a,0e0h
	mov rb,a
	clr [71].5
	mov a,rb
	orm a,[71]
#line 70 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [72].0
	mov a,ra
	orm a,[72]
#line 71 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	siza _Opa1Cfg_2[2]
	jmp _L6
#line 73 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [82].7
	jmp _L5
_L6:
#line 77 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	set [82].7
#line 79 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_Opa1Cfg_2[2]
	sub a,0
	sz z
	jmp _L8
	sub a,(1)-(0)
	sz z
	jmp _L9
	mov a,_Opa1Cfg_2[2]
	sub a,2
	sz z
	jmp _L10
	sub a,(3)-(2)
	sz z
	jmp _L11
	mov a,_Opa1Cfg_2[2]
	sub a,4
	snz z
	jmp _L5
#line 90 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	set [82].6
	jmp _L14
_L8:
#pragma debug scope 7 6
;begin block, line: 90.-1
#pragma debug scope 8 7
;begin block, line: 90.-1
#line 82 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [82].6
	jmp _L14
_L9:
#pragma debug scope 7 6
#pragma debug scope 6 1
#line 84 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [82].6
	clr [82].5
	jmp _L15
_L10:
#line 86 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [82].6
	set [82].5
	jmp _L13
_L11:
#line 88 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [82].6
	set [82].5
_L15:
	set [82].4
	jmp _L5
_L14:
#line 90 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [82].5
_L13:
	clr [82].4
_L5:
	ret
_Opa1Cfg endp
#line 90 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
public _Opa2Cfg
#pragma debug scope 9 1
#line 99 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_Opa2Cfg .section 'code'
_Opa2Cfg proc
public _Opa2Cfg_2
    local _Opa2Cfg_2 db 3 dup(?)	; 2,1
#pragma debug struct_begin 48 ""
#pragma debug field 0 8 "enable"
#pragma debug field 0 8 "feedbackRes"
#pragma debug struct_end
#pragma debug variable 48 9 _Opa2Cfg_2+0 "opa"
	mov a,_Opa2Cfg_2[1]
	mov _Opa2Cfg_2[2],a
#line 101 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_Opa2Cfg_2[0]
	and a,1
	mov ra,a
	mov a,ra
	mov rb,a
	rra rb
	rr acc
	and a,0c0h
	mov rb,a
	clr [71].6
	mov a,rb
	orm a,[71]
#line 102 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,ra
	addm a,ra
	clr [72].1
	mov a,ra
	orm a,[72]
#line 103 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	siza _Opa2Cfg_2[2]
	jmp _L18
#line 105 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [82].3
	jmp _L17
_L18:
#line 109 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	set [82].3
#line 111 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_Opa2Cfg_2[2]
	sub a,0
	sz z
	jmp _L20
	sub a,(1)-(0)
	sz z
	jmp _L21
	mov a,_Opa2Cfg_2[2]
	sub a,2
	sz z
	jmp _L22
	sub a,(3)-(2)
	sz z
	jmp _L23
	mov a,_Opa2Cfg_2[2]
	sub a,4
	snz z
	jmp _L17
#line 122 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	set [82].2
	jmp _L26
_L20:
#line 114 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [82].2
	jmp _L26
_L21:
#line 116 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [82].2
	clr [82].1
	jmp _L27
_L22:
#line 118 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [82].2
	set [82].1
	jmp _L25
_L23:
#line 120 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [82].2
	set [82].1
_L27:
	set [82].0
	jmp _L17
_L26:
#line 122 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr [82].1
_L25:
	clr [82].0
_L17:
	ret
_Opa2Cfg endp
#line 122 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
public _Opa3Cfg
#pragma debug scope 10 1
#line 131 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_Opa3Cfg .section 'code'
_Opa3Cfg proc
public _Opa3Cfg_2
    local _Opa3Cfg_2 db 5 dup(?)	; 5,0
#pragma debug struct_begin 49 "OPA_t"
#pragma debug field 0 8 "enable"
#pragma debug field 0 8 "feedbackRes"
#pragma debug struct_end
#pragma debug struct_begin 50 ""
#pragma debug field 2 49 "opa1"
#pragma debug field 2 49 "opa2"
#pragma debug field 0 8 "opa3Enable"
#pragma debug struct_end
#pragma debug variable 50 10 _Opa3Cfg_2+0 "opa"
#line 133 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_Opa3Cfg_2[4]
	and a,1
	mov ra,a
	mov a,ra
	mov rb,a
	rrc rb
	clr rb
	rrc rb
	clr [71].7
	mov a,rb
	orm a,[71]
#line 134 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr rb
	sz ra
	set rb.2
	clr [72].2
	mov a,rb
	orm a,[72]
	ret
_Opa3Cfg endp
#line 134 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
public _TwoElAfeCfg
#pragma debug scope 11 1
#line 138 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_TwoElAfeCfg .section 'code'
_TwoElAfeCfg proc
public _TwoElAfeCfg_2
    local _TwoElAfeCfg_2 db 18 dup(?)	; 18,0
#pragma debug struct_begin 51 "DAC_t"
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug struct_begin 52 ""
#pragma debug field 0 8 "dacRefVol"
#pragma debug field 0 8 "dacVrefSelect"
#pragma debug field 0 8 "vrefData"
#pragma debug field 0 8 "irefEn"
#pragma debug field 2 51 "dac1"
#pragma debug field 2 51 "dac2"
#pragma debug field 2 51 "dac3"
#pragma debug struct_end
#pragma debug variable 52 11 _TwoElAfeCfg_2+0 "afePower"
#pragma debug struct_begin 53 "OPA_t"
#pragma debug field 0 8 "enable"
#pragma debug field 0 8 "feedbackRes"
#pragma debug struct_end
#pragma debug struct_begin 54 ""
#pragma debug field 2 53 "opa1"
#pragma debug field 2 53 "opa2"
#pragma debug field 0 8 "opa3Enable"
#pragma debug struct_end
#pragma debug variable 54 11 _TwoElAfeCfg_2+13 "opa"
#line 140 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_TwoElAfeCfg_2[0]
	mov _VirefCfg_2[0],a
	mov a,_TwoElAfeCfg_2[1]
	mov _VirefCfg_2[1],a
	mov a,_TwoElAfeCfg_2[2]
	mov _VirefCfg_2[2],a
	mov a,_TwoElAfeCfg_2[3]
	mov _VirefCfg_2[3],a
	mov a,_TwoElAfeCfg_2[4]
	mov _VirefCfg_2[4],a
	mov a,_TwoElAfeCfg_2[5]
	mov _VirefCfg_2[5],a
	mov a,_TwoElAfeCfg_2[6]
	mov _VirefCfg_2[6],a
	mov a,_TwoElAfeCfg_2[7]
	mov _VirefCfg_2[7],a
	mov a,_TwoElAfeCfg_2[8]
	mov _VirefCfg_2[8],a
	mov a,_TwoElAfeCfg_2[9]
	mov _VirefCfg_2[9],a
	mov a,_TwoElAfeCfg_2[10]
	mov _VirefCfg_2[10],a
	mov a,_TwoElAfeCfg_2[11]
	mov _VirefCfg_2[11],a
	mov a,_TwoElAfeCfg_2[12]
	mov _VirefCfg_2[12],a
	call _VirefCfg
#line 143 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_TwoElAfeCfg_2[4]
	mov _Dac1Cfg_2[0],a
	mov a,_TwoElAfeCfg_2[5]
	mov _Dac1Cfg_2[1],a
	mov a,_TwoElAfeCfg_2[6]
	mov _Dac1Cfg_2[2],a
	call _Dac1Cfg
#line 146 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_TwoElAfeCfg_2[13]
	mov _Opa1Cfg_2[0],a
	mov a,_TwoElAfeCfg_2[14]
	mov _Opa1Cfg_2[1],a
	call _Opa1Cfg
	ret
_TwoElAfeCfg endp
#line 146 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
public _ThirdElAfeCfg
#pragma debug scope 12 1
#line 150 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_ThirdElAfeCfg .section 'code'
_ThirdElAfeCfg proc
public _ThirdElAfeCfg_2
    local _ThirdElAfeCfg_2 db 18 dup(?)	; 18,0
#pragma debug struct_begin 55 "DAC_t"
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug struct_begin 56 ""
#pragma debug field 0 8 "dacRefVol"
#pragma debug field 0 8 "dacVrefSelect"
#pragma debug field 0 8 "vrefData"
#pragma debug field 0 8 "irefEn"
#pragma debug field 2 55 "dac1"
#pragma debug field 2 55 "dac2"
#pragma debug field 2 55 "dac3"
#pragma debug struct_end
#pragma debug variable 56 12 _ThirdElAfeCfg_2+0 "afePower"
#pragma debug struct_begin 57 "OPA_t"
#pragma debug field 0 8 "enable"
#pragma debug field 0 8 "feedbackRes"
#pragma debug struct_end
#pragma debug struct_begin 58 ""
#pragma debug field 2 57 "opa1"
#pragma debug field 2 57 "opa2"
#pragma debug field 0 8 "opa3Enable"
#pragma debug struct_end
#pragma debug variable 58 12 _ThirdElAfeCfg_2+13 "opa"
#line 162 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_ThirdElAfeCfg_2[0]
	mov _VirefCfg_2[0],a
	mov a,_ThirdElAfeCfg_2[1]
	mov _VirefCfg_2[1],a
	mov a,_ThirdElAfeCfg_2[2]
	mov _VirefCfg_2[2],a
	mov a,_ThirdElAfeCfg_2[3]
	mov _VirefCfg_2[3],a
	mov a,_ThirdElAfeCfg_2[4]
	mov _VirefCfg_2[4],a
	mov a,_ThirdElAfeCfg_2[5]
	mov _VirefCfg_2[5],a
	mov a,_ThirdElAfeCfg_2[6]
	mov _VirefCfg_2[6],a
	mov a,_ThirdElAfeCfg_2[7]
	mov _VirefCfg_2[7],a
	mov a,_ThirdElAfeCfg_2[8]
	mov _VirefCfg_2[8],a
	mov a,_ThirdElAfeCfg_2[9]
	mov _VirefCfg_2[9],a
	mov a,_ThirdElAfeCfg_2[10]
	mov _VirefCfg_2[10],a
	mov a,_ThirdElAfeCfg_2[11]
	mov _VirefCfg_2[11],a
	mov a,_ThirdElAfeCfg_2[12]
	mov _VirefCfg_2[12],a
	call _VirefCfg
#line 165 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_ThirdElAfeCfg_2[4]
	mov _Dac1Cfg_2[0],a
	mov a,_ThirdElAfeCfg_2[5]
	mov _Dac1Cfg_2[1],a
	mov a,_ThirdElAfeCfg_2[6]
	mov _Dac1Cfg_2[2],a
	call _Dac1Cfg
#line 167 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_ThirdElAfeCfg_2[10]
	mov _Dac3Cfg_2[0],a
	mov a,_ThirdElAfeCfg_2[11]
	mov _Dac3Cfg_2[1],a
	mov a,_ThirdElAfeCfg_2[12]
	mov _Dac3Cfg_2[2],a
	call _Dac3Cfg
#line 170 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_ThirdElAfeCfg_2[13]
	mov _Opa1Cfg_2[0],a
	mov a,_ThirdElAfeCfg_2[14]
	mov _Opa1Cfg_2[1],a
	call _Opa1Cfg
#line 172 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_ThirdElAfeCfg_2[13]
	mov _Opa3Cfg_2[0],a
	mov a,_ThirdElAfeCfg_2[14]
	mov _Opa3Cfg_2[1],a
	mov a,_ThirdElAfeCfg_2[15]
	mov _Opa3Cfg_2[2],a
	mov a,_ThirdElAfeCfg_2[16]
	mov _Opa3Cfg_2[3],a
	mov a,_ThirdElAfeCfg_2[17]
	mov _Opa3Cfg_2[4],a
	call _Opa3Cfg
	ret
_ThirdElAfeCfg endp
#line 172 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
public _FourElAfeCfg
#pragma debug scope 13 1
#line 176 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_FourElAfeCfg .section 'code'
_FourElAfeCfg proc
public _FourElAfeCfg_2
    local _FourElAfeCfg_2 db 18 dup(?)	; 18,0
#pragma debug struct_begin 59 "DAC_t"
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug struct_begin 60 ""
#pragma debug field 0 8 "dacRefVol"
#pragma debug field 0 8 "dacVrefSelect"
#pragma debug field 0 8 "vrefData"
#pragma debug field 0 8 "irefEn"
#pragma debug field 2 59 "dac1"
#pragma debug field 2 59 "dac2"
#pragma debug field 2 59 "dac3"
#pragma debug struct_end
#pragma debug variable 60 13 _FourElAfeCfg_2+0 "afePower"
#pragma debug struct_begin 61 "OPA_t"
#pragma debug field 0 8 "enable"
#pragma debug field 0 8 "feedbackRes"
#pragma debug struct_end
#pragma debug struct_begin 62 ""
#pragma debug field 2 61 "opa1"
#pragma debug field 2 61 "opa2"
#pragma debug field 0 8 "opa3Enable"
#pragma debug struct_end
#pragma debug variable 62 13 _FourElAfeCfg_2+13 "opa"
#line 178 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_FourElAfeCfg_2[0]
	mov _VirefCfg_2[0],a
	mov a,_FourElAfeCfg_2[1]
	mov _VirefCfg_2[1],a
	mov a,_FourElAfeCfg_2[2]
	mov _VirefCfg_2[2],a
	mov a,_FourElAfeCfg_2[3]
	mov _VirefCfg_2[3],a
	mov a,_FourElAfeCfg_2[4]
	mov _VirefCfg_2[4],a
	mov a,_FourElAfeCfg_2[5]
	mov _VirefCfg_2[5],a
	mov a,_FourElAfeCfg_2[6]
	mov _VirefCfg_2[6],a
	mov a,_FourElAfeCfg_2[7]
	mov _VirefCfg_2[7],a
	mov a,_FourElAfeCfg_2[8]
	mov _VirefCfg_2[8],a
	mov a,_FourElAfeCfg_2[9]
	mov _VirefCfg_2[9],a
	mov a,_FourElAfeCfg_2[10]
	mov _VirefCfg_2[10],a
	mov a,_FourElAfeCfg_2[11]
	mov _VirefCfg_2[11],a
	mov a,_FourElAfeCfg_2[12]
	mov _VirefCfg_2[12],a
	call _VirefCfg
#line 181 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_FourElAfeCfg_2[4]
	mov _Dac1Cfg_2[0],a
	mov a,_FourElAfeCfg_2[5]
	mov _Dac1Cfg_2[1],a
	mov a,_FourElAfeCfg_2[6]
	mov _Dac1Cfg_2[2],a
	call _Dac1Cfg
#line 183 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_FourElAfeCfg_2[10]
	mov _Dac3Cfg_2[0],a
	mov a,_FourElAfeCfg_2[11]
	mov _Dac3Cfg_2[1],a
	mov a,_FourElAfeCfg_2[12]
	mov _Dac3Cfg_2[2],a
	call _Dac3Cfg
#line 185 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_FourElAfeCfg_2[7]
	mov _Dac2Cfg_2[0],a
	mov a,_FourElAfeCfg_2[8]
	mov _Dac2Cfg_2[1],a
	mov a,_FourElAfeCfg_2[9]
	mov _Dac2Cfg_2[2],a
	call _Dac2Cfg
#line 188 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_FourElAfeCfg_2[13]
	mov _Opa1Cfg_2[0],a
	mov a,_FourElAfeCfg_2[14]
	mov _Opa1Cfg_2[1],a
	call _Opa1Cfg
#line 190 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_FourElAfeCfg_2[13]
	mov _Opa3Cfg_2[0],a
	mov a,_FourElAfeCfg_2[14]
	mov _Opa3Cfg_2[1],a
	mov a,_FourElAfeCfg_2[15]
	mov _Opa3Cfg_2[2],a
	mov a,_FourElAfeCfg_2[16]
	mov _Opa3Cfg_2[3],a
	mov a,_FourElAfeCfg_2[17]
	mov _Opa3Cfg_2[4],a
	call _Opa3Cfg
#line 192 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_FourElAfeCfg_2[15]
	mov _Opa2Cfg_2[0],a
	mov a,_FourElAfeCfg_2[16]
	mov _Opa2Cfg_2[1],a
	call _Opa2Cfg
	ret
_FourElAfeCfg endp
#line 192 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
public _Disable_AFE
#pragma debug scope 14 1
#line 196 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_Disable_AFE .section 'code'
_Disable_AFE proc
    local _Disable_AFE_2 db 18 dup(?)	; 0,18
#pragma debug struct_begin 63 "DAC_t"
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug struct_begin 64 ""
#pragma debug field 0 8 "dacRefVol"
#pragma debug field 0 8 "dacVrefSelect"
#pragma debug field 0 8 "vrefData"
#pragma debug field 0 8 "irefEn"
#pragma debug field 2 63 "dac1"
#pragma debug field 2 63 "dac2"
#pragma debug field 2 63 "dac3"
#pragma debug struct_end
#pragma debug variable 64 14 _Disable_AFE_2+0 "afePower"
#pragma debug struct_begin 65 "OPA_t"
#pragma debug field 0 8 "enable"
#pragma debug field 0 8 "feedbackRes"
#pragma debug struct_end
#pragma debug struct_begin 66 ""
#pragma debug field 2 65 "opa1"
#pragma debug field 2 65 "opa2"
#pragma debug field 0 8 "opa3Enable"
#pragma debug struct_end
#pragma debug variable 66 14 _Disable_AFE_2+13 "opa"
#line 206 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	clr _FourElAfeCfg_2[13]
	mov a,_Disable_AFE_2[14]
	mov _FourElAfeCfg_2[14],a
	clr _FourElAfeCfg_2[15]
	mov a,_Disable_AFE_2[16]
	mov _FourElAfeCfg_2[16],a
	clr _FourElAfeCfg_2[17]
	mov a,_Disable_AFE_2[0]
	mov _FourElAfeCfg_2[0],a
	mov a,_Disable_AFE_2[1]
	mov _FourElAfeCfg_2[1],a
	mov a,_Disable_AFE_2[2]
	mov _FourElAfeCfg_2[2],a
	clr _FourElAfeCfg_2[3]
	clr _FourElAfeCfg_2[4]
	mov a,_Disable_AFE_2[5]
	mov _FourElAfeCfg_2[5],a
	mov a,_Disable_AFE_2[6]
	mov _FourElAfeCfg_2[6],a
	clr _FourElAfeCfg_2[7]
	mov a,_Disable_AFE_2[8]
	mov _FourElAfeCfg_2[8],a
	mov a,_Disable_AFE_2[9]
	mov _FourElAfeCfg_2[9],a
	clr _FourElAfeCfg_2[10]
	mov a,_Disable_AFE_2[11]
	mov _FourElAfeCfg_2[11],a
	mov a,_Disable_AFE_2[12]
	mov _FourElAfeCfg_2[12],a
	call _FourElAfeCfg
	ret
_Disable_AFE endp
#line 206 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
public _ConfigureViref
#pragma debug scope 15 1
#line 211 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_ConfigureViref .section 'code'
_ConfigureViref proc
    local _ConfigureViref_2 db 14 dup(?)	; 0,14
	mov ra,a
#pragma debug variable 8 15 _ConfigureViref_2+13 "data"
#pragma debug struct_begin 67 "DAC_t"
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug struct_begin 68 ""
#pragma debug field 0 8 "dacRefVol"
#pragma debug field 0 8 "dacVrefSelect"
#pragma debug field 0 8 "vrefData"
#pragma debug field 0 8 "irefEn"
#pragma debug field 2 67 "dac1"
#pragma debug field 2 67 "dac2"
#pragma debug field 2 67 "dac3"
#pragma debug struct_end
#pragma debug variable 68 15 _ConfigureViref_2+0 "afePower"
#line 215 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,ra
	mov _ConfigureViref_2[2],a
#line 218 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,1
	mov _VirefCfg_2[0],a
	clr _VirefCfg_2[1]
	mov a,_ConfigureViref_2[2]
	mov _VirefCfg_2[2],a
	mov a,1
	mov _VirefCfg_2[3],a
	mov a,_ConfigureViref_2[4]
	mov _VirefCfg_2[4],a
	mov a,_ConfigureViref_2[5]
	mov _VirefCfg_2[5],a
	mov a,_ConfigureViref_2[6]
	mov _VirefCfg_2[6],a
	mov a,_ConfigureViref_2[7]
	mov _VirefCfg_2[7],a
	mov a,_ConfigureViref_2[8]
	mov _VirefCfg_2[8],a
	mov a,_ConfigureViref_2[9]
	mov _VirefCfg_2[9],a
	mov a,_ConfigureViref_2[10]
	mov _VirefCfg_2[10],a
	mov a,_ConfigureViref_2[11]
	mov _VirefCfg_2[11],a
	mov a,_ConfigureViref_2[12]
	mov _VirefCfg_2[12],a
	call _VirefCfg
	ret
_ConfigureViref endp
#line 218 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
public _ConfigureDAC1
#pragma debug scope 16 1
#line 223 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_ConfigureDAC1 .section 'code'
_ConfigureDAC1 proc
public _ConfigureDAC1_2
    local _ConfigureDAC1_2 db 5 dup(?)	; 2,3
#pragma debug variable 12 16 _ConfigureDAC1_2+0 "data"
#pragma debug struct_begin 69 ""
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug variable 69 16 _ConfigureDAC1_2+2 "dac"
#line 226 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_ConfigureDAC1_2[0]
	mov _ConfigureDAC1_2[3],a
	mov a,_ConfigureDAC1_2[1]
	mov _ConfigureDAC1_2[4],a
#line 227 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,1
	mov _Dac1Cfg_2[0],a
	mov a,_ConfigureDAC1_2[3]
	mov _Dac1Cfg_2[1],a
	mov a,_ConfigureDAC1_2[4]
	mov _Dac1Cfg_2[2],a
	call _Dac1Cfg
	ret
_ConfigureDAC1 endp
#line 227 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
public _ConfigureDAC2
#pragma debug scope 17 1
#line 232 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_ConfigureDAC2 .section 'code'
_ConfigureDAC2 proc
public _ConfigureDAC2_2
    local _ConfigureDAC2_2 db 5 dup(?)	; 2,3
#pragma debug variable 12 17 _ConfigureDAC2_2+0 "data"
#pragma debug struct_begin 70 ""
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug variable 70 17 _ConfigureDAC2_2+2 "dac"
#line 235 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_ConfigureDAC2_2[0]
	mov _ConfigureDAC2_2[3],a
	mov a,_ConfigureDAC2_2[1]
	mov _ConfigureDAC2_2[4],a
#line 236 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,1
	mov _Dac2Cfg_2[0],a
	mov a,_ConfigureDAC2_2[3]
	mov _Dac2Cfg_2[1],a
	mov a,_ConfigureDAC2_2[4]
	mov _Dac2Cfg_2[2],a
	call _Dac2Cfg
	ret
_ConfigureDAC2 endp
#line 236 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
public _ConfigureDAC3
#pragma debug scope 18 1
#line 241 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
_ConfigureDAC3 .section 'code'
_ConfigureDAC3 proc
public _ConfigureDAC3_2
    local _ConfigureDAC3_2 db 5 dup(?)	; 2,3
#pragma debug variable 12 18 _ConfigureDAC3_2+0 "data"
#pragma debug struct_begin 71 ""
#pragma debug field 0 8 "modeControl"
#pragma debug field 0 12 "data"
#pragma debug struct_end
#pragma debug variable 71 18 _ConfigureDAC3_2+2 "dac"
#line 244 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,_ConfigureDAC3_2[0]
	mov _ConfigureDAC3_2[3],a
	mov a,_ConfigureDAC3_2[1]
	mov _ConfigureDAC3_2[4],a
#line 245 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
	mov a,1
	mov _Dac3Cfg_2[0],a
	mov a,_ConfigureDAC3_2[3]
	mov _Dac3Cfg_2[1],a
	mov a,_ConfigureDAC3_2[4]
	mov _Dac3Cfg_2[2],a
	call _Dac3Cfg
	ret
_ConfigureDAC3 endp
#line 245 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Afe.c"
#pragma debug scope 1 1
#pragma debug struct_begin 72 "__irefc_bits"
#pragma debug field 21 8 0 1 "__dacvrs0" ;0,1
#pragma debug field 21 8 0 1 "__dacvrs1" ;1,1
#pragma debug field 21 8 0 1 "__dacvrefs" ;2,1
#pragma debug field 21 8 0 1 ;3,1
#pragma debug field 21 8 0 1 "__irefen" ;4,1
#pragma debug field 21 8 0 3 ;5,3
#pragma debug struct_end
#pragma debug union_begin 73 ""
#pragma debug field 2 72 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 73 1 ___irefc "__irefc" 1
#pragma debug variable 8 1 ___pvref "__pvref" 1
#pragma debug struct_begin 74 "__opac_bits"
#pragma debug field 21 8 0 5 ;0,5
#pragma debug field 21 8 0 1 "__opa1en" ;5,1
#pragma debug field 21 8 0 1 "__opa2en" ;6,1
#pragma debug field 21 8 0 1 "__opa3en" ;7,1
#pragma debug struct_end
#pragma debug union_begin 75 ""
#pragma debug field 2 74 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 75 1 ___opac "__opac" 1
#pragma debug struct_begin 76 "__gsc1_bits"
#pragma debug field 21 8 0 1 "__gsop1p" ;0,1
#pragma debug field 21 8 0 1 "__gsop2p" ;1,1
#pragma debug field 21 8 0 1 "__gsop3p" ;2,1
#pragma debug field 21 8 0 5 ;3,5
#pragma debug struct_end
#pragma debug union_begin 77 ""
#pragma debug field 2 76 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 77 1 ___gsc1 "__gsc1" 1
#pragma debug struct_begin 78 "__afeda1c_bits"
#pragma debug field 21 8 0 1 "__afeda1cm0" ;0,1
#pragma debug field 21 8 0 1 "__afeda1cm1" ;1,1
#pragma debug field 21 8 0 6 ;2,6
#pragma debug struct_end
#pragma debug union_begin 79 ""
#pragma debug field 2 78 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 79 1 ___afeda1c "__afeda1c" 1
#pragma debug variable 8 1 ___afeda1l "__afeda1l" 1
#pragma debug variable 8 1 ___afeda1h "__afeda1h" 1
#pragma debug struct_begin 80 "__afeda2c_bits"
#pragma debug field 21 8 0 1 "__afeda2cm0" ;0,1
#pragma debug field 21 8 0 1 "__afeda2cm1" ;1,1
#pragma debug field 21 8 0 6 ;2,6
#pragma debug struct_end
#pragma debug union_begin 81 ""
#pragma debug field 2 80 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 81 1 ___afeda2c "__afeda2c" 1
#pragma debug variable 8 1 ___afeda2l "__afeda2l" 1
#pragma debug variable 8 1 ___afeda2h "__afeda2h" 1
#pragma debug struct_begin 82 "__afeda3c_bits"
#pragma debug field 21 8 0 1 "__afeda3cm0" ;0,1
#pragma debug field 21 8 0 1 "__afeda3cm1" ;1,1
#pragma debug field 21 8 0 6 ;2,6
#pragma debug struct_end
#pragma debug union_begin 83 ""
#pragma debug field 2 82 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 83 1 ___afeda3c "__afeda3c" 1
#pragma debug variable 8 1 ___afeda3l "__afeda3l" 1
#pragma debug variable 8 1 ___afeda3h "__afeda3h" 1
#pragma debug struct_begin 84 "__fbrc_bits"
#pragma debug field 21 8 0 1 "__fbr2s0" ;0,1
#pragma debug field 21 8 0 1 "__fbr2s1" ;1,1
#pragma debug field 21 8 0 1 "__fbr2s2" ;2,1
#pragma debug field 21 8 0 1 "__fbr2c" ;3,1
#pragma debug field 21 8 0 1 "__fbr1s0" ;4,1
#pragma debug field 21 8 0 1 "__fbr1s1" ;5,1
#pragma debug field 21 8 0 1 "__fbr1s2" ;6,1
#pragma debug field 21 8 0 1 "__fbr1c" ;7,1
#pragma debug struct_end
#pragma debug union_begin 85 ""
#pragma debug field 2 84 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 85 1 ___fbrc "__fbrc" 1

; 
; Generated by holtek-gcc v3.19, Mon Jul 14 16:56:28 2025
; Rebuild 718
; end of file
