; 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_Key_init
#pragma debug scope 2 1
#line 42 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
_fun_Key_init .section 'code'
_fun_Key_init proc
	ret
_fun_Key_init endp
#line 42 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
#pragma debug scope 1 1
___pa equ [20]
___pb equ [36]
public _fun_Key_Scan
#pragma debug scope 3 1
#line 53 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
_fun_Key_Scan .section 'code'
_fun_Key_Scan proc
    local _fun_Key_Scan_2 db 1 dup(?)	; 0,1
#line 55 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	clr _SDK_KEY[0]
#line 56 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	sz [20].1
	jmp _L3
#line 56 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	mov a,1
	mov _SDK_KEY[0],a
_L3:
	sz [20].3
	jmp _L4
	set _SDK_KEY[0].1
_L4:
	sz [36].0
	jmp _L5
	set _SDK_KEY[0].2
_L5:
#line 57 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	mov a,_SDK_KEY[0]
	mov ra,a
	mov a,ra
	sub a,_SDK_KEY[2]
	sz z
	jmp _L6
#line 59 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	clr _SDK_KEY[3]
#line 60 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	mov a,ra
	mov _SDK_KEY[2],a
#line 61 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	clr _SDK_KEY[1]
	jmp _L16
_L6:
#line 67 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	inca _SDK_KEY[3]
	mov rb,a
#line 68 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	mov a,4
	sub a,rb
	snz c
	jmp _L8
#line 67 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	mov a,rb
	mov _SDK_KEY[3],a
	jmp _L9
_L8:
#line 70 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	mov a,5
	mov _SDK_KEY[3],a
#line 71 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	mov a,ra
	mov _SDK_KEY[4],a
#line 72 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	cpla _SDK_KEY[6]
	mov rb,a
	mov a,rb
	and a,ra
	mov _SDK_KEY[1],a
#line 74 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	mov a,ra
	mov _SDK_KEY[6],a
_L9:
#line 100 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	mov a,199
	sub a,_SDK_KEY[9]
	sz c
	jmp _L10
#line 97 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	mov a,201
	mov _SDK_KEY[9],a
	jmp _L11
_L10:
#line 117 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	mov a,_SDK_KEY[1]
	mov _fun_Key_Scan_2[0],a
	snz _fun_Key_Scan_2[0].0
	jmp _L12
#line 119 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	set _SDK_KEY[8].0
_L12:
#line 121 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	snz _fun_Key_Scan_2[0].1
	jmp _L13
#line 123 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	set _SDK_KEY[8].1
_L13:
#line 125 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	snz _fun_Key_Scan_2[0].2
	jmp _L11
#line 127 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	set _SDK_KEY[8].2
_L11:
#line 136 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	snz _SDK_KEY[1]
	jmp _L14
#line 138 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	clr _SDK_TM[2]
_L14:
#line 140 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	snz _SDK_KEY[4]
	jmp _L15
#line 142 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	inc _SDK_KEY[9]
	jmp _L16
_L15:
#line 146 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	clr _SDK_KEY[9]
_L16:
#line 148 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
	clr _SDK_KEY[5]
	ret
_fun_Key_Scan endp
#line 148 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
#pragma debug scope 1 1
#line 18 "\\dgdc1\y680\y680 對外資料\0 開發板資料\bmhb6003-bh67f2752\sw\sw_bh67f2752_temp_lib_stp9cf55h_20200319\USER\KeyScan.c"
public _SDK_KEY
@HCCINIT0_SDK_KEY .section 'data'
_SDK_KEY	db 10 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 3 43 "KeyCurrent"
#pragma debug field 3 43 "KeyDown"
#pragma debug field 0 8 "KeyOld"
#pragma debug field 0 8 "KeyNoChangedTime"
#pragma debug field 3 43 "KeyPress"
#pragma debug field 3 43 "KeyUp"
#pragma debug field 0 8 "KeyLast"
#pragma debug field 0 8 "KeyCanChange"
#pragma debug field 3 43 "KeyStatus"
#pragma debug field 0 8 "KeyPressTime"
#pragma debug struct_end
#pragma debug variable 44 1 _SDK_KEY "SDK_KEY"

@HCCINIT .section 'data'
#pragma debug struct_begin 45 "__pa_bits"
#pragma debug field 21 8 0 1 "__pa0" ;0,1
#pragma debug field 21 8 0 1 "__pa1" ;1,1
#pragma debug field 21 8 0 1 "__pa2" ;2,1
#pragma debug field 21 8 0 1 "__pa3" ;3,1
#pragma debug field 21 8 0 1 "__pa4" ;4,1
#pragma debug field 21 8 0 1 "__pa5" ;5,1
#pragma debug field 21 8 0 1 "__pa6" ;6,1
#pragma debug field 21 8 0 1 "__pa7" ;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 ___pa "__pa" 1
#pragma debug struct_begin 47 "__pb_bits"
#pragma debug field 21 8 0 1 "__pb0" ;0,1
#pragma debug field 21 8 0 1 "__pb1" ;1,1
#pragma debug field 21 8 0 1 "__pb2" ;2,1
#pragma debug field 21 8 0 1 "__pb3" ;3,1
#pragma debug field 21 8 0 1 "__pb4" ;4,1
#pragma debug field 21 8 0 1 "__pb5" ;5,1
#pragma debug field 21 8 0 1 "__pb6" ;6,1
#pragma debug field 21 8 0 1 "__pb7" ;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 ___pb "__pb" 1

; output external variables
extern _SDK_TM:byte

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