; Generated by holtek-gcc v3.19, Mon Jan 18 15:31:19 2021
; 
; 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 = 33
;       
;       
; 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 [33]

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
___eea equ [65]
___mp1l equ [3]
___mp1h equ [4]
___iar1 equ [2]
___eed equ [66]
public _fun_EEprom_Read
#pragma debug scope 2 1
#line 22 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
_fun_EEprom_Read .section 'code'
_fun_EEprom_Read proc
    local _fun_EEprom_Read_2 db 1 dup(?)	; 0,1
	mov ra,a
	mov _fun_EEprom_Read_2[0],a
#pragma debug variable 8 2 _fun_EEprom_Read_2+0 "lu8v_addr"
#line 24 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,ra
	mov [65],a
#line 38 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,64
	mov [3],a
#line 39 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,1
	mov [4],a
#line 40 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	set [2].1
#line 41 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	set [2].0
_L3:
#line 42 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	sz [2].0
	jmp _L3
#line 43 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,[66]
	mov ra,a
#line 44 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	clr [2].1
#line 49 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,ra
	ret
_fun_EEprom_Read endp
#line 49 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
#pragma debug scope 1 1
public _fun_EEprom_Write
#pragma debug scope 3 1
#line 58 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
_fun_EEprom_Write .section 'code'
_fun_EEprom_Write proc
public _fun_EEprom_Write_2
    local _fun_EEprom_Write_2 db 2 dup(?)	; 1,1
	mov ra,a
	mov _fun_EEprom_Write_2[1],a
#pragma debug variable 8 3 _fun_EEprom_Write_2+1 "lu8v_addr"
#pragma debug variable 8 3 _fun_EEprom_Write_2+0 "lu8v_data"
#line 60 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,ra
	mov [65],a
#line 61 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,_fun_EEprom_Write_2[0]
	mov [66],a
#line 77 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,64
	mov [3],a
#line 78 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,1
	mov [4],a
#line 79 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	set [2].3
#line 80 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	set [2].2
_L7:
#line 81 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	sz [2].2
	jmp _L7
#line 82 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	clr [2].3
	ret
_fun_EEprom_Write endp
#line 82 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
#pragma debug scope 1 1
public _fun_EEPROM_Init
#pragma debug scope 4 1
#line 95 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
_fun_EEPROM_Init .section 'code'
_fun_EEPROM_Init proc
#line 102 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,0
	call _fun_EEprom_Read
	mov ra,a
	mov a,ra
	sub a,85
	snz z
	jmp _L9
#line 104 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,1
	call _fun_EEprom_Read
	mov ra,a
	mov a,ra
	mov _gu16v_Correction_K1[0],a
#line 105 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,2
	call _fun_EEprom_Read
	mov ra,a
	mov a,ra
	mov _gu16v_Correction_K1[1],a
#line 107 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,3
	call _fun_EEprom_Read
	mov ra,a
	mov a,ra
	mov _gu16v_Correction_K2[0],a
#line 108 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,4
	call _fun_EEprom_Read
	mov ra,a
	mov a,ra
	mov _gu16v_Correction_K2[1],a
	jmp _L8
_L9:
#line 112 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,-120
	mov _gu16v_Correction_K1[0],a
	mov a,19
	mov _gu16v_Correction_K1[1],a
#line 113 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
	mov a,16
	mov _gu16v_Correction_K2[0],a
	mov a,39
	mov _gu16v_Correction_K2[1],a
_L8:
	ret
_fun_EEPROM_Init endp
#line 113 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\EEPROM.c"
#pragma debug scope 1 1
#pragma debug variable 8 1 ___mp1l "__mp1l" 1
#pragma debug variable 8 1 ___mp1h "__mp1h" 1
#pragma debug struct_begin 42 "__eea_bits"
#pragma debug field 21 8 0 1 "__eea0" ;0,1
#pragma debug field 21 8 0 1 "__eea1" ;1,1
#pragma debug field 21 8 0 1 "__eea2" ;2,1
#pragma debug field 21 8 0 1 "__eea3" ;3,1
#pragma debug field 21 8 0 1 "__eea4" ;4,1
#pragma debug field 21 8 0 1 "__eea5" ;5,1
#pragma debug field 21 8 0 1 "__eea6" ;6,1
#pragma debug field 21 8 0 1 ;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 ___eea "__eea" 1
#pragma debug struct_begin 44 "__eed_bits"
#pragma debug field 21 8 0 1 "__eed0" ;0,1
#pragma debug field 21 8 0 1 "__eed1" ;1,1
#pragma debug field 21 8 0 1 "__eed2" ;2,1
#pragma debug field 21 8 0 1 "__eed3" ;3,1
#pragma debug field 21 8 0 1 "__eed4" ;4,1
#pragma debug field 21 8 0 1 "__eed5" ;5,1
#pragma debug field 21 8 0 1 "__eed6" ;6,1
#pragma debug field 21 8 0 1 "__eed7" ;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 ___eed "__eed" 1
#pragma debug variable 8 1 ___iar1 "__iar1" 1

; output external variables
extern _gu16v_Correction_K2:byte
extern _gu16v_Correction_K1:byte

; 
; Generated by holtek-gcc v3.19, Mon Jan 18 15:31:20 2021
; Rebuild 718
; end of file
