; Generated by holtek-gcc v3.19, Mon Jan 18 15:31:22 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
public _fun_BeepSet
#pragma debug scope 2 1
#line 25 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
_fun_BeepSet .section 'code'
_fun_BeepSet proc
    local _fun_BeepSet_2 db 1 dup(?)	; 0,1
#pragma debug variable 8 2 _fun_BeepSet_2+0 "lu8v_beep_mode"
#line 29 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	sz _SDK_BEEP[3].0
	jmp _L2
#line 30 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov _SDK_BEEP[2],a
	jmp _L1
_L2:
#line 32 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	clr _SDK_BEEP[2]
_L1:
	ret
_fun_BeepSet endp
#line 32 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
#pragma debug scope 1 1
___ctm0c0 equ [80]
public _fun_BeepScan
#pragma debug scope 3 1
#line 43 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
_fun_BeepScan .section 'code'
_fun_BeepScan proc
    local _fun_BeepScan_2 db 1 dup(?)	; 0,1
#line 50 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,_SDK_BEEP[2]
	sub a,0
	sz z
	jmp _L7
	sub a,(1)-(0)
	sz z
	jmp _L8
#line 50 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,_SDK_BEEP[2]
	sub a,2
	sz z
	jmp _L9
	sub a,(3)-(2)
	sz z
	jmp _L10
	mov a,_SDK_BEEP[2]
	sub a,4
	snz z
	jmp _L5
	jmp _L32
_L7:
#line 53 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	clr [80].3
#line 54 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	clr _SDK_BEEP[0]
#line 56 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	jmp _L5
_L8:
#line 58 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	inca _SDK_BEEP[0]
	mov ra,a
	mov a,ra
	mov _SDK_BEEP[0],a
#line 59 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,14
	sub a,ra
	snz c
	jmp _L28
	jmp _L31
_L9:
#line 72 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	inca _SDK_BEEP[0]
	mov _fun_BeepScan_2[0],a
	mov a,_fun_BeepScan_2[0]
	mov _SDK_BEEP[0],a
#line 73 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,14
	sub a,_fun_BeepScan_2[0]
	sz c
	jmp _L31
#line 77 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,29
	sub a,_fun_BeepScan_2[0]
	sz c
	jmp _L30
#line 81 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,44
	sub a,_fun_BeepScan_2[0]
	snz c
	jmp _L28
	jmp _L31
_L10:
#line 92 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	inca _SDK_BEEP[0]
	mov _fun_BeepScan_2[0],a
	mov a,_fun_BeepScan_2[0]
	mov _SDK_BEEP[0],a
#line 93 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,14
	sub a,_fun_BeepScan_2[0]
	sz c
	jmp _L31
#line 97 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,29
	sub a,_fun_BeepScan_2[0]
	sz c
	jmp _L30
#line 101 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,44
	sub a,_fun_BeepScan_2[0]
	sz c
	jmp _L31
#line 105 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,59
	sub a,_fun_BeepScan_2[0]
	sz c
	jmp _L30
#line 109 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,74
	sub a,_fun_BeepScan_2[0]
	snz c
	jmp _L28
	jmp _L31
_L32:
#line 120 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	inca _SDK_BEEP[0]
	mov _fun_BeepScan_2[0],a
	mov a,_fun_BeepScan_2[0]
	mov _SDK_BEEP[0],a
#line 122 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,4
	sub a,_fun_BeepScan_2[0]
	sz c
	jmp _L31
#line 126 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,9
	sub a,_fun_BeepScan_2[0]
	sz c
	jmp _L30
#line 130 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,14
	sub a,_fun_BeepScan_2[0]
	snz c
	jmp _L23
_L31:
#line 132 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	set [80].3
	jmp _L5
_L23:
#line 134 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,39
	sub a,_fun_BeepScan_2[0]
	snz c
	jmp _L24
_L30:
#line 136 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	clr [80].3
	jmp _L5
_L24:
#line 138 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,79
	sub a,_fun_BeepScan_2[0]
	snz c
	jmp _L5
#line 140 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	clr _SDK_BEEP[0]
#line 141 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	inca _SDK_BEEP[1]
	mov ra,a
	mov a,ra
	mov _SDK_BEEP[1],a
#line 142 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,10
	sub a,ra
	sz c
	jmp _L5
#line 144 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	clr _SDK_BEEP[1]
_L28:
#line 145 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	clr [80].3
#line 146 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	clr _SDK_BEEP[2]
_L5:
	ret
_fun_BeepScan endp
#line 146 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
#pragma debug scope 1 1
___intc2 equ [35]
public _fun_Beep_Test
#pragma debug scope 4 1
#line 164 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
_fun_Beep_Test .section 'code'
_fun_Beep_Test proc
#line 165 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	mov a,4
	call _fun_BeepSet
_L35:
#line 168 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
;# 168 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c" 1
	clr wdt
#line 169 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	snz [35].5
	jmp _L35
#line 171 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	clr [35].5
#line 172 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
	call _fun_BeepScan
	jmp _L35
	ret
_fun_Beep_Test endp
#line 172 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
#pragma debug scope 1 1
#line 15 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\Beep.c"
public _SDK_BEEP
@HCCINIT0_SDK_BEEP .section 'data'
_SDK_BEEP	db 4 dup(0)
#pragma debug struct_begin 42 "__8_bits"
#pragma debug field 21 8 0 1 "b0" ;0,1
#pragma debug field 21 8 0 1 "b1" ;1,1
#pragma debug field 21 8 0 1 "b2" ;2,1
#pragma debug field 21 8 0 1 "b3" ;3,1
#pragma debug field 21 8 0 1 "b4" ;4,1
#pragma debug field 21 8 0 1 "b5" ;5,1
#pragma debug field 21 8 0 1 "b6" ;6,1
#pragma debug field 21 8 0 1 "b7" ;7,1
#pragma debug struct_end
#pragma debug union_begin 43 "__8_type"
#pragma debug field 2 42 "bits"
#pragma debug field 0 8 "U8"
#pragma debug field 0 8 "S8"
#pragma debug union_end
#pragma debug struct_begin 44 ""
#pragma debug field 0 8 "Time"
#pragma debug field 0 8 "Count"
#pragma debug field 0 8 "Mode"
#pragma debug field 3 43 "Status"
#pragma debug struct_end
#pragma debug variable 44 1 _SDK_BEEP "SDK_BEEP"

@HCCINIT .section 'data'
#pragma debug struct_begin 45 "__intc2_bits"
#pragma debug field 21 8 0 1 "__spie" ;0,1
#pragma debug field 21 8 0 1 "__tb0e" ;1,1
#pragma debug field 21 8 0 1 "__tb1e" ;2,1
#pragma debug field 21 8 0 1 ;3,1
#pragma debug field 21 8 0 1 "__spif" ;4,1
#pragma debug field 21 8 0 1 "__tb0f" ;5,1
#pragma debug field 21 8 0 1 "__tb1f" ;6,1
#pragma debug field 21 8 0 1 ;7,1
#pragma debug struct_end
#pragma debug union_begin 46 ""
#pragma debug field 2 45 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 46 1 ___intc2 "__intc2" 1
#pragma debug struct_begin 47 "__ctm0c0_bits"
#pragma debug field 21 8 0 1 "__ct0rp0" ;0,1
#pragma debug field 21 8 0 1 "__ct0rp1" ;1,1
#pragma debug field 21 8 0 1 "__ct0rp2" ;2,1
#pragma debug field 21 8 0 1 "__ct0on" ;3,1
#pragma debug field 21 8 0 1 "__ct0ck0" ;4,1
#pragma debug field 21 8 0 1 "__ct0ck1" ;5,1
#pragma debug field 21 8 0 1 "__ct0ck2" ;6,1
#pragma debug field 21 8 0 1 "__ct0pau" ;7,1
#pragma debug struct_end
#pragma debug union_begin 48 ""
#pragma debug field 2 47 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 48 1 ___ctm0c0 "__ctm0c0" 1

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