"File: EEPROM.c      Assembler  Version HGASM0202      Page 1


   1  0000              ; Generated by holtek-gcc v3.19, Thu Sep 02 18:05:32 2021
   2  0000              ; 
   3  0000              ; Configuration:
   4  0000              ;       with long instruction
   5  0000              ;       Multi-ROM, Multi-RAM
   6  0000              ;       bits_per_rom_unit:16
   7  0000              ;       with mp1
   8  0000              ;       with tbhp, address(0x9)
   9  0000              ;          Use tabrd-const
  10  0000              ;       
  11  0000              ; SFR address of long-instruction arch:
  12  0000              ;    mp0 = -1,1,0
  13  0000              ;    mp1 = 4,3,2
  14  0000              ;    mp2 = 14,13,12
  15  0000              ;    tbp = 9,7,8
  16  0000              ;    acc = 5
  17  0000              ;    pcl = 6
  18  0000              ;    status = 10
  19  0000              ;    bp = 11
  20  0000              ;    intc = 16
  21  0000              ;       
  22  0000              ;       
  23  0000              ; use 'tabrdc' instead of 'tabrd'
  24  0000              ;       
  25  0000              
  26  0000              #pragma translator "holtek-gcc 4.6.4" "3.19" "build 20130711"
  27  0000              ; Rebuild 718
  28  0000              
  29  0000              ir equ [2]
  30  0000              mp equ [3]
  31  0000              sbp equ [4]
  32  0000              acc equ [5]
  33  0000              bp equ [11]
  34  0000              tblp equ [7]
  35  0000              tbhp equ [9]
  36  0000              status equ [10]
  37  0000              c equ [10].0
  38  0000              ac equ [10].1
  39  0000              z equ [10].2
  40  0000              ov equ [10].3
  41  0000              cz equ [10].6
  42  0000              sc equ [10].7
  43  0000              intc equ [16]
  44  0000              mduwr0 equ [59h]
  45  0000              mduwr1 equ [5ah]
  46  0000              mduwr2 equ [5bh]
  47  0000              mduwr3 equ [5ch]
  48  0000              mduwr4 equ [5dh]
  49  0000              mduwr5 equ [5eh]
  50  0000              mduwrctrl equ [5fh]
  51  0000              
  52  0000              extern ra:byte
  53  0000              extern rb:byte
  54  0000              extern rc:byte
  55  0000              extern rd:byte
  56  0000              extern re:byte
  57  0000              extern rf:byte
  58  0000              extern rg:byte
  59  0000              extern rh:byte
"File: EEPROM.ASM    Assembler  Version HGASM0202      Page 2

  60  0000              extern _Crom2Prom:near
  61  0000              extern _Crom2PromNext:near
  62  0000              
  63  0000              RAMBANK 0 @BITDATASEC, @BITDATASEC1
  64  0000              @HCCINIT	.section 'data'
  65  0000              @HCCINIT0	.section 'data'
  66  0000              @BITDATASEC	 .section 'data'
  67  0000              @BITDATASEC1	 .section 'data'
  68  0000              
  69  0000              #pragma debug scope 1 1
  70  0000              	extern __DELAY3:near
  71  0000              	extern __DELAYX3:near
  72  0000              	extern __DELAYX6:near
  73  0000              	extern __DELAYY5:near
  74  0000              	extern __DELAYY3:near
  75  0000              	extern _builtin_holtek_delay_2:byte
  76  0000              ___wdtc equ [62]
  77  0000              ___pcc equ [28]
  78  0000              ___pc equ [27]
  79  0000              public _setup
  80  0000              #pragma debug scope 2 1

  17  0000              #line 17 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  17  0000              _setup .section 'code'
  17  0000              _setup proc
  18  0000              #line 18 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  18  0000  0FAB        	mov a,171
  18  0001  00BE        	mov [62],a
  19  0002              #line 19 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  19  0002  1F1C        	clr [28]
  20  0003              #line 20 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  20  0003  1F9B        	set [27]
  20  0004  0003        	ret
  20  0005              _setup endp
  20  0005              #line 20 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  20  0005              #pragma debug scope 1 1
  20  0005              ___pf equ [36]
  20  0005              ___pfc equ [37]
  20  0005              ___pfpu equ [38]
  20  0005              public _Scan
  20  0005              #pragma debug scope 3 1
  24  0005              #line 24 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  24  0000              _Scan .section 'code'
  24  0000              _Scan proc
  26  0000              #line 26 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  26  0000  0FFE        	mov a,254
  26  0001  00A4        	mov [36],a
  27  0002              #line 27 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  27  0002  0FF0        	mov a,240
  27  0003  00A5        	mov [37],a
  28  0004              #line 28 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  28  0004  0FF0        	mov a,240
  28  0005  00A6        	mov [38],a
  25  0006              #line 25 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  25  0006  1F00     E  	clr ra
  25  0007              _L7:
  31  0007              #line 31 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  31  0007  3BA4        	snz [36].7
  31  0008  2800     R  	jmp _L3
  33  0009              #line 33 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
"File: setup.H       Assembler  Version HGASM0202      Page 3

  33  0009  3F24        	sz [36].6
  33  000A  2800     R  	jmp _L4
  32  000B              #line 32 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  32  000B  1480     E  	inc ra
  32  000C  2800     R  	jmp _L3
  32  000D              _L4:
  35  000D              #line 35 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  35  000D  3EA4        	sz [36].5
  35  000E  2800     R  	jmp _L5
  34  000F              #line 34 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  34  000F  0F02        	mov a,2
  34  0010  0380     E  	addm a,ra
  34  0011  2800     R  	jmp _L3
  34  0012              _L5:
  37  0012              #line 37 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  37  0012  3E24        	sz [36].4
  37  0013  2800     R  	jmp _L6
  36  0014              #line 36 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  36  0014  0F03        	mov a,3
  36  0015  0380     E  	addm a,ra
  36  0016  2800     R  	jmp _L3
  36  0017              _L6:
  38  0017              #line 38 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  38  0017  0F04        	mov a,4
  38  0018  0380     E  	addm a,ra
  39  0019              #line 39 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  39  0019  0724        	mov a,[36]
  39  001A  03A4        	addm a,[36]
  29  001B              #line 29 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  29  001B  0700     E  	mov a,ra
  29  001C  0A10        	sub a,16
  29  001D  390A        	snz z
  29  001E  2800     R  	jmp _L7
  29  001F              _L3:
  42  001F              #line 42 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  42  001F  0700     E  	mov a,ra
  42  0020  0003        	ret
  42  0021              _Scan endp
  42  0021              #line 42 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  42  0021              #pragma debug scope 1 1
  42  0021              public _Delay1ms
  42  0021              #pragma debug scope 4 1
  45  0021              #line 45 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  45  0000              _Delay1ms .section 'code'
  45  0000              _Delay1ms proc
  45  0000              public _Delay1ms_2
  45  0000  0002[           local _Delay1ms_2 db 2 dup(?)	; 2,0
            00
            ]
  45  0002              #pragma debug variable 10 4 _Delay1ms_2+0 "delay"
  47  0002              #line 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  47  0000  1F00     E  	clr rb
  47  0001  1F00     E  	clr rc
  47  0002  2800     R  	jmp _L13
  47  0003              _L14:
  47  0003              #line 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF 2000>263690
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	ERRMESSAGE 'the value 2000of the argument exceeds the maxinum 263690'
"File: setup.H       Assembler  Version HGASM0202      Page 4

  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF 2000<0
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	ERRMESSAGE 'the value 2000 of the argument exceeds the mininum 0'
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF 2000==0
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	JMP $
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000>=1) AND (2000<( 4 + __PBP__ * 2))
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	NOP
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000>=2) AND (2000<( 4 + __PBP__ * 2))
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	NOP
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000>=3) AND (2000<( 4 + __PBP__ * 2))
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	NOP
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000>=4) AND (2000<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	NOP
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000>=5) AND (2000<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	NOP
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000>=6) AND (2000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	NOP
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000>=7) AND (2000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	NOP
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000>=8) AND (2000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	NOP
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000==9)  AND ( __PBP__ > 2 )
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	NOP
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000< ( 8 + __PBP__ * 2)) AND (2000>( 3 + __PBP__ * 2))
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	fcall __DELAY3 + ( 7 + __PBP__ * 2) -2000
"File: setup.H       Assembler  Version HGASM0202      Page 5

  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000< ( 0404h + __PBP__ * 2)) AND (2000>( 7 + __PBP__ * 2))
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	MOV A,(2000-( 4 + __PBP__ * 2))/4
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	fcall __DELAYX3 + 3 -((2000-( 4 + __PBP__ * 2)) MOD 4) 
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000< ( 040bh + __PBP__ * 2)) AND (2000> ( 0403h + __PBP__ * 2))
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	MOV A,0 
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -2000
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000 >= ( 040bh + __PBP__ * 2)) AND ((((2000-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	MOV A,(2000-( 9 + __PBP__ * 2))/0402h
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	MOV _builtin_holtek_delay_2,A
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	MOV A,0
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	fcall __DELAYY5 +5- (((2000-( 9 + __PBP__ * 2))%0402h)%6) 
  47  0003              	ENDIF
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003              	IF (2000 >= ( 040bh + __PBP__ * 2)) AND ((((2000-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
  47  0003              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0003  0F01        	MOV A,(2000-( 9 + __PBP__ * 2))/0402h
  47  0004              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0004  0080     E  	MOV _builtin_holtek_delay_2,A
  47  0005              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0005  0FF0        	MOV A,((2000-( 9 + __PBP__ * 2))%0402h)/4+1
  47  0006              ;# 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  47  0006              	fcall __DELAYY3 +3-(((2000-( 9 + __PBP__ * 2))%0402h)%4) 
  47  000D              	ENDIF
  47  000D  1480     E  	inc rb
  47  000E  3D0A        	sz z
  47  000F  1480     E  	inc rc
  47  0010              _L13:
  47  0010  0700     E  	mov a,rb
  47  0011  0200     R  	sub a,_Delay1ms_2[0]
  47  0012  0700     E  	mov a,rc
  47  0013  1200     R  	sbc a,_Delay1ms_2[1]
  47  0014  3B0A        	snz cz
  47  0015  2800     R  	jmp _L14
  47  0016  0003        	ret
  47  0017              _Delay1ms endp
  47  0017              #line 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  47  0017              #pragma debug scope 1 1
  47  0017              public _Delay10ms
  47  0017              #pragma debug scope 5 1
  51  0017              #line 51 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  51  0000              _Delay10ms .section 'code'
  51  0000              _Delay10ms proc
  51  0000              public _Delay10ms_2
  51  0000  0002[           local _Delay10ms_2 db 2 dup(?)	; 2,0
            00
            ]
"File: setup.H       Assembler  Version HGASM0202      Page 6

  51  0002              #pragma debug variable 10 5 _Delay10ms_2+0 "delay"
  53  0002              #line 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  53  0000  1F00     E  	clr rb
  53  0001  1F00     E  	clr rc
  53  0002  2800     R  	jmp _L16
  53  0003              _L17:
  53  0003              #line 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF 20000>263690
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	ERRMESSAGE 'the value 20000of the argument exceeds the maxinum 263690'
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF 20000<0
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	ERRMESSAGE 'the value 20000 of the argument exceeds the mininum 0'
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF 20000==0
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	JMP $
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000>=1) AND (20000<( 4 + __PBP__ * 2))
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	NOP
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000>=2) AND (20000<( 4 + __PBP__ * 2))
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	NOP
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000>=3) AND (20000<( 4 + __PBP__ * 2))
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	NOP
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000>=4) AND (20000<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	NOP
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000>=5) AND (20000<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	NOP
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000>=6) AND (20000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	NOP
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000>=7) AND (20000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	NOP
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000>=8) AND (20000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
"File: setup.H       Assembler  Version HGASM0202      Page 7

  53  0003              	NOP
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000==9)  AND ( __PBP__ > 2 )
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	NOP
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000< ( 8 + __PBP__ * 2)) AND (20000>( 3 + __PBP__ * 2))
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	fcall __DELAY3 + ( 7 + __PBP__ * 2) -20000
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000< ( 0404h + __PBP__ * 2)) AND (20000>( 7 + __PBP__ * 2))
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	MOV A,(20000-( 4 + __PBP__ * 2))/4
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	fcall __DELAYX3 + 3 -((20000-( 4 + __PBP__ * 2)) MOD 4) 
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000< ( 040bh + __PBP__ * 2)) AND (20000> ( 0403h + __PBP__ * 2))
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	MOV A,0 
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -20000
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000 >= ( 040bh + __PBP__ * 2)) AND ((((20000-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	MOV A,(20000-( 9 + __PBP__ * 2))/0402h
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	MOV _builtin_holtek_delay_2,A
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	MOV A,0
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	fcall __DELAYY5 +5- (((20000-( 9 + __PBP__ * 2))%0402h)%6) 
  53  0003              	ENDIF
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003              	IF (20000 >= ( 040bh + __PBP__ * 2)) AND ((((20000-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
  53  0003              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0003  0F13        	MOV A,(20000-( 9 + __PBP__ * 2))/0402h
  53  0004              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0004  0080     E  	MOV _builtin_holtek_delay_2,A
  53  0005              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0005  0F7B        	MOV A,((20000-( 9 + __PBP__ * 2))%0402h)/4+1
  53  0006              ;# 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H" 1
  53  0006              	fcall __DELAYY3 +3-(((20000-( 9 + __PBP__ * 2))%0402h)%4) 
  53  000D              	ENDIF
  53  000D  1480     E  	inc rb
  53  000E  3D0A        	sz z
  53  000F  1480     E  	inc rc
  53  0010              _L16:
  53  0010  0700     E  	mov a,rb
  53  0011  0200     R  	sub a,_Delay10ms_2[0]
  53  0012  0700     E  	mov a,rc
  53  0013  1200     R  	sbc a,_Delay10ms_2[1]
  53  0014  3B0A        	snz cz
  53  0015  2800     R  	jmp _L17
  53  0016  0003        	ret
  53  0017              _Delay10ms endp
"File: setup.H       Assembler  Version HGASM0202      Page 8

  53  0017              #line 53 "c:\users\edenlai\desktop\esk-310\7_eeprom\setup.H"
  53  0017              #pragma debug scope 1 1
  53  0017              ___mp1h equ [4]
  53  0017              ___mp1l equ [3]
  53  0017              ___iar1 equ [2]
  53  0017              ___eed equ [67]
  53  0017              public _Read4Byte
  53  0017              #pragma debug scope 6 1

  34  0017              #line 34 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  34  0000              _Read4Byte .section 'code'
  34  0000              _Read4Byte proc
  34  0000  00              local _Read4Byte_2 db 1 dup(?)	; 0,1
  34  0000  0080     R  	mov _Read4Byte_2[0],a
  34  0001              #pragma debug variable 8 6 _Read4Byte_2+0 "data"
  35  0001              #line 35 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  35  0001  0F01        	mov a,1
  35  0002  0084        	mov [4],a
  35  0003  0F40        	mov a,64
  35  0004  0083        	mov [3],a
  36  0005              #line 36 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  36  0005  0F02        	mov a,2
  36  0006  0082        	mov [2],a
  36  0007  3002        	set [2].0
  36  0008              _L20:
  37  0008              #line 37 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  37  0008  3C02        	sz [2].0
  37  0009  2800     R  	jmp _L20
  38  000A              #line 38 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  38  000A  1F02        	clr [2]
  39  000B              #line 39 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  39  000B  0743        	mov a,[67]
  39  000C  0080     R  	mov _Read4Byte_2[0],a
  40  000D              #line 40 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  40  000D  0700     R  	mov a,_Read4Byte_2[0]
  40  000E  0080     R  	mov _led[0],a
  40  000F  0003        	ret
  40  0010              _Read4Byte endp
  40  0010              #line 40 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  40  0010              #pragma debug scope 1 1
  40  0010              public _Write4Byte
  40  0010              #pragma debug scope 7 1
  44  0010              #line 44 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  44  0000              _Write4Byte .section 'code'
  44  0000              _Write4Byte proc
  44  0000  00              local _Write4Byte_2 db 1 dup(?)	; 0,1
  44  0000  0080     R  	mov _Write4Byte_2[0],a
  44  0001              #pragma debug variable 8 7 _Write4Byte_2+0 "data"
  45  0001              #line 45 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  45  0001  0700     R  	mov a,_Write4Byte_2[0]
  45  0002  00C3        	mov [67],a
  46  0003              #line 46 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  46  0003  0F01        	mov a,1
  46  0004  0084        	mov [4],a
  46  0005  0F40        	mov a,64
  46  0006  0083        	mov [3],a
  47  0007              #line 47 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  47  0007  0F08        	mov a,8
  47  0008  0082        	mov [2],a
  47  0009  3102        	set [2].2
"File: EEPROM.c      Assembler  Version HGASM0202      Page 9

  47  000A              _L23:
  48  000A              #line 48 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  48  000A  3D02        	sz [2].2
  48  000B  2800     R  	jmp _L23
  49  000C              #line 49 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  49  000C  1F02        	clr [2]
  49  000D  0003        	ret
  49  000E              _Write4Byte endp
  49  000E              #line 49 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  49  000E              #pragma debug scope 1 1
  49  000E              public _main
  49  000E              #pragma debug scope 8 1
  15  000E              #line 15 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  15  000E              IFDEF WITH_DEFAULT_STARTUP
  15  000E              extern _main_initial0:near
  15  000E              extern _main_startup:near
  15  000E              ENDIF
  15  000E              
  15  000E              ROMBANK 0 @start
  15  0000              @start .section com_l 'code'
  15  0000              _main_startup1:
  15  0000              @start .section com_e 'code'
  15  0000  0F00     R  	mov a,bank _main
  15  0001  008B        	mov bp,a
  15  0002  2800     R  	jmp _main
  15  0003              
  15  0000              _main .section 'code'
  15  0000              _main proc
  16  0000              #line 16 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  16  0000              	fcall _setup
  16  0007              _L27:
  19  0007              #line 19 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  19  0007              	fcall _Scan
  19  000E  0080     E  	mov ra,a
  19  000F  0700     E  	mov a,ra
  19  0010  0080     R  	mov _KEY[0],a
  20  0011              #line 20 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  20  0011  1080     E  	sz ra
  20  0012  2800     R  	jmp _L25
  22  0013              #line 22 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  22  0013  1F00     R  	clr _led[0]
  23  0014              #line 23 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  23  0014  0F00        	mov a,0
  23  0015              	fcall _Write4Byte
  23  001C              _L25:
  25  001C              #line 25 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  25  001C  1700     R  	sdza _KEY[0]
  25  001D  2800     R  	jmp _L27
  27  001E              #line 27 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  27  001E  0700     R  	mov a,_led[0]
  27  001F              	fcall _Read4Byte
  28  0026              #line 28 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  28  0026  0700     R  	mov a,_led[0]
  28  0027  009B        	mov [27],a
  28  0028  2800     R  	jmp _L27
  28  0029  2800     R  	jmp $
  28  002A              _main endp
  28  002A              
  28  002A              @dummy endp
  28  002A              
"File: EEPROM.c      Assembler  Version HGASM0202      Page 10

  28  002A              #line 28 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  28  002A              #pragma debug scope 1 1
  13  002A              #line 13 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  13  002A              public _led
  13  0000              @HCCINIT0_led .section 'data'
  13  0000              _led	db 0
  13  0001              #pragma debug variable 8 1 _led "led"
  13  0001              
  13  0000              @HCCINIT .section 'data'
  13  0000              #line 13 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  13  0000              public _KEY
  13  0000              @HCCINIT0_KEY .section 'data'
  13  0000              _KEY	db 0
  13  0001              #pragma debug variable 8 1 _KEY "KEY"
  13  0001              
  13  0000              @HCCINIT .section 'data'
  13  0000              #pragma debug variable 8 1 ___mp1l "__mp1l" 1
  13  0000              #pragma debug variable 8 1 ___mp1h "__mp1h" 1
  13  0000              #pragma debug struct_end
  13  0000              #pragma debug struct_end
  13  0000              #pragma debug union_end
  13  0000              #pragma debug union_end
  13  0000              #pragma debug variable 43 1 ___pc "__pc" 1
  13  0000              #pragma debug struct_end
  13  0000              #pragma debug struct_end
  13  0000              #pragma debug union_end
  13  0000              #pragma debug union_end
  13  0000              #pragma debug variable 45 1 ___pcc "__pcc" 1
  13  0000              #pragma debug struct_end
  13  0000              #pragma debug struct_end
  13  0000              #pragma debug union_end
  13  0000              #pragma debug union_end
  13  0000              #pragma debug variable 47 1 ___pf "__pf" 1
  13  0000              #pragma debug struct_end
  13  0000              #pragma debug struct_end
  13  0000              #pragma debug union_end
  13  0000              #pragma debug union_end
  13  0000              #pragma debug variable 49 1 ___pfc "__pfc" 1
  13  0000              #pragma debug struct_end
  13  0000              #pragma debug struct_end
  13  0000              #pragma debug union_end
  13  0000              #pragma debug union_end
  13  0000              #pragma debug variable 51 1 ___pfpu "__pfpu" 1
  13  0000              #pragma debug struct_end
  13  0000              #pragma debug struct_end
  13  0000              #pragma debug union_end
  13  0000              #pragma debug union_end
  13  0000              #pragma debug variable 53 1 ___wdtc "__wdtc" 1
  13  0000              #pragma debug variable 8 1 ___eed "__eed" 1
  13  0000              #pragma debug variable 8 1 ___iar1 "__iar1" 1
  15  0000              #line 15 "c:\users\edenlai\desktop\esk-310\7_eeprom\EEPROM.c"
  15  0000              @code .section at 0 'code'
  15  0000  1F0B        	clr bp
  15  0001  2800     R  	jmp _main_startup1
  15  0002              
  15  0002              
  15  0002              ; 
  15  0002              ; Generated by holtek-gcc v3.19, Thu Sep 02 18:05:32 2021
  15  0002              ; Rebuild 718
  15  0002              ; end of file
"File: EEPROM.c      Assembler  Version HGASM0202      Page 11



        0 Errors, 0