; Generated by holtek-gcc v3.19, Mon Jan 06 09:49:12 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
___scc equ [16]
___ircc equ [17]
public _Oscillators_Cfg
#pragma debug scope 2 1
#line 46 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Oscillators.c"
_Oscillators_Cfg .section 'code'
_Oscillators_Cfg proc
public _Oscillators_Cfg_2
    local _Oscillators_Cfg_2 db 2 dup(?)	; 2,0
#pragma debug struct_begin 42 "Oscillators_Cfg_t"
#pragma debug field 0 8 "haltMode"
#pragma debug field 0 8 "irc2"
#pragma debug struct_end
#pragma debug pointer 43 42 2
#pragma debug variable 43 2 _Oscillators_Cfg_2+0 "cfg"
#line 47 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Oscillators.c"
	mov a,_Oscillators_Cfg_2[0]
	mov rb,a
	mov a,_Oscillators_Cfg_2[1]
	mov rc,a
	mov a,rb
	mov mp,a
	mov a,rc
	mov sbp,a
	call _Crom2Prom
	mov [16],a
#line 48 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Oscillators.c"
	mov a,1
	add a,rb
	mov mp,a
	mov a,0
	adc a,rc
	mov sbp,a
	call _Crom2Prom
	mov [17],a
_L3:
#line 49 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Oscillators.c"
	snz [17].1
	jmp _L3
	ret
_Oscillators_Cfg endp
#line 49 "d:\d200\product\git\bh66f2455_evm_cgm\2.code\bh66f2455_driver\driver\Oscillators.c"
#pragma debug scope 1 1
#pragma debug struct_begin 44 "__scc_bits"
#pragma debug field 21 8 0 1 "__fsiden" ;0,1
#pragma debug field 21 8 0 1 "__fhiden" ;1,1
#pragma debug field 21 8 0 3 ;2,3
#pragma debug field 21 8 0 1 "__cks0" ;5,1
#pragma debug field 21 8 0 1 "__cks1" ;6,1
#pragma debug field 21 8 0 1 "__cks2" ;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 ___scc "__scc" 1
#pragma debug struct_begin 46 "__ircc_bits"
#pragma debug field 21 8 0 1 "__ircen" ;0,1
#pragma debug field 21 8 0 1 "__ircf" ;1,1
#pragma debug field 21 8 0 2 ;2,2
#pragma debug field 21 8 0 1 "__irc2" ;4,1
#pragma debug field 21 8 0 3 ;5,3
#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 ___ircc "__ircc" 1

; 
; Generated by holtek-gcc v3.19, Mon Jan 06 09:49:12 2025
; Rebuild 718
; end of file
