; Generated by holtek-gcc v3.19, Tue Aug 20 18:26:44 2019
; 
; 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]
mduwr0 equ [59h]
mduwr1 equ [5ah]
mduwr2 equ [5bh]
mduwr3 equ [5ch]
mduwr4 equ [5dh]
mduwr5 equ [5eh]
mduwrctrl equ [5fh]

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_ADCInit
#pragma debug scope 2 1
#line 28 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
_fun_ADCInit .section 'code'
_fun_ADCInit proc
	ret
_fun_ADCInit endp
#line 28 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
#pragma debug scope 1 1
___adcr0 equ [102]
___intc0 equ [32]
___adcr1 equ [103]
public _fun_ADCStart
#pragma debug scope 3 1
#line 39 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
_fun_ADCStart .section 'code'
_fun_ADCStart proc
#line 40 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	clr _ADCSourceData[4]
	clr _ADCSourceData[5]
#line 41 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	clr _ADCSourceData[6].0
#line 42 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	clr [102].5
#line 43 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	clr [102].6
#line 44 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	clr [32].6
	set [32].3
#line 45 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	clr [102].7
	set [102].7
	clr [102].7
	clr [103].2
	clr [103].1
	ret
_fun_ADCStart endp
#line 45 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
#pragma debug scope 1 1
public _fun_ADCStop
#pragma debug scope 4 1
#line 52 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
_fun_ADCStop .section 'code'
_fun_ADCStop proc
#line 53 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	set [32].6
	clr [32].3
#line 54 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	set [102].5
#line 55 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	set [102].6
	ret
_fun_ADCStop endp
#line 55 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
#pragma debug scope 1 1
___adrl equ [108]
___adrm equ [109]
___adrh equ [110]
public _ADC_ISR
#pragma debug scope 5 1
#line 59 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
@ADC_ISR_code .section at 12 'code'
ifdef INTERRUPT_DELAY
	nop
endif
	mov r1,a
	mov a,status
ifndef INTERRUPT_DELAY
	mov r2,a
endif
	jmp _ADC_ISR
#pragma debug scope 1 1
@dummy12 proc
	call _ADC_ISR
@dummy12 endp
#pragma debug scope 6 1
_ADC_ISR .section 'code'
_ADC_ISR proc
ifdef INTERRUPT_DELAY
	mov r2,a
endif
#line 60 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	snz [103].1
	jmp _L4
#line 62 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	inc _ADCSourceData[4]
	sz z
	inc _ADCSourceData[5]
#line 64 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	mov a,3
	sub a,_ADCSourceData[4]
	mov a,0
	sbc a,_ADCSourceData[5]
	sz c
	jmp _L6
#line 67 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	set [103].2
#line 68 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	clr _ADCSourceData[0]
#line 69 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	mov a,[108]
	mov _ADCSourceData[1],a
#line 70 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	mov a,[109]
	mov _ADCSourceData[2],a
#line 71 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	mov a,[110]
	mov _ADCSourceData[3],a
#line 72 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	clr [103].2
#line 73 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	set _ADCSourceData[6].0
_L6:
#line 75 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
	clr [103].1
_L4:
	mov a,r2
	mov status,a
	mov a,r1
	reti
_ADC_ISR endp

#line 75 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
#pragma debug scope 1 1
#line 21 "E:\VSProjects\DeltaSigmaADCTool\MCUTestTool\bin\Debug\res\ADC_Development_Kit\source\DeltaSigmaADC.c"
public _ADCSourceData
@HCCINIT0_ADCSourceData .section 'data'
_ADCSourceData	db 7 dup(0)
#pragma debug struct_begin 42 ""
#pragma debug field 0 8 "ByteRes"
#pragma debug field 0 8 "ByteLow"
#pragma debug field 0 8 "ByteMid"
#pragma debug field 0 8 "ByteHigh"
#pragma debug struct_end
#pragma debug union_begin 43 ""
#pragma debug field 2 42 "byte"
#pragma debug field 0 13 "ADCData"
#pragma debug union_end
#pragma debug struct_begin 44 ""
#pragma debug field 21 8 0 1 "IsReady" ;0,1
#pragma debug struct_end
#pragma debug union_begin 45 ""
#pragma debug field 2 44 "b"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug struct_begin 46 ""
#pragma debug field 3 43 "data"
#pragma debug field 0 12 "SamplingCnt"
#pragma debug field 3 45 "flag"
#pragma debug struct_end
#pragma debug variable 46 1 _ADCSourceData "ADCSourceData"

@HCCINIT .section 'data'
#pragma debug struct_begin 47 "__intc0_bits"
#pragma debug field 21 8 0 1 "__emi" ;0,1
#pragma debug field 21 8 0 1 "__int0e" ;1,1
#pragma debug field 21 8 0 1 "__int1e" ;2,1
#pragma debug field 21 8 0 1 "__ade" ;3,1
#pragma debug field 21 8 0 1 "__int0f" ;4,1
#pragma debug field 21 8 0 1 "__int1f" ;5,1
#pragma debug field 21 8 0 1 "__adf" ;6,1
#pragma debug field 21 8 0 1 ;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 ___intc0 "__intc0" 1
#pragma debug struct_begin 49 "__adcr0_bits"
#pragma debug field 21 8 0 1 "__vrefs" ;0,1
#pragma debug field 21 8 0 1 ;1,1
#pragma debug field 21 8 0 1 "__ador0" ;2,1
#pragma debug field 21 8 0 1 "__ador1" ;3,1
#pragma debug field 21 8 0 1 "__ador2" ;4,1
#pragma debug field 21 8 0 1 "__adoff" ;5,1
#pragma debug field 21 8 0 1 "__adslp" ;6,1
#pragma debug field 21 8 0 1 "__adrst" ;7,1
#pragma debug struct_end
#pragma debug union_begin 50 ""
#pragma debug field 2 49 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 50 1 ___adcr0 "__adcr0" 1
#pragma debug struct_begin 51 "__adcr1_bits"
#pragma debug field 21 8 0 1 ;0,1
#pragma debug field 21 8 0 1 "__eoc" ;1,1
#pragma debug field 21 8 0 1 "__adcdl" ;2,1
#pragma debug field 21 8 0 1 "__vrbufp" ;3,1
#pragma debug field 21 8 0 1 "__vrbufn" ;4,1
#pragma debug field 21 8 0 1 "__flms0" ;5,1
#pragma debug field 21 8 0 1 "__flms1" ;6,1
#pragma debug field 21 8 0 1 "__flms2" ;7,1
#pragma debug struct_end
#pragma debug union_begin 52 ""
#pragma debug field 2 51 "bits"
#pragma debug field 0 8 "byte"
#pragma debug union_end
#pragma debug variable 52 1 ___adcr1 "__adcr1" 1
#pragma debug variable 8 1 ___adrl "__adrl" 1
#pragma debug variable 8 1 ___adrm "__adrm" 1
#pragma debug variable 8 1 ___adrh "__adrh" 1
extern r1:byte
extern r2:byte

; 
; Generated by holtek-gcc v3.19, Tue Aug 20 18:26:44 2019
; Rebuild 718
; end of file
