"File: SEVEN SEGMENT.c  Assembler  Version HGASM0202      Page 1


   1  0000              ; Generated by holtek-gcc v3.19, Mon Aug 30 16:34:29 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: SEVEN SEGMENT.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              public _setup
  79  0000              #pragma debug scope 2 1

   6  0000              #line 6 "c:\users\edenlai\desktop\esk310\seven segment\setup.h"
   6  0000              _setup .section 'code'
   6  0000              _setup proc
   7  0000              #line 7 "c:\users\edenlai\desktop\esk310\seven segment\setup.h"
   7  0000  0FAB        	mov a,171
   7  0001  00BE        	mov [62],a
   8  0002              #line 8 "c:\users\edenlai\desktop\esk310\seven segment\setup.h"
   8  0002  1F1C        	clr [28]
   8  0003  0003        	ret
   8  0004              _setup endp
   8  0004              #line 8 "c:\users\edenlai\desktop\esk310\seven segment\setup.h"
   8  0004              #pragma debug scope 1 1
   8  0004              public _Delay1ms
   8  0004              #pragma debug scope 3 1
  12  0004              #line 12 "c:\users\edenlai\desktop\esk310\seven segment\setup.h"
  12  0000              _Delay1ms .section 'code'
  12  0000              _Delay1ms proc
  12  0000              public _Delay1ms_2
  12  0000  0002[           local _Delay1ms_2 db 2 dup(?)	; 2,0
            00
            ]
  12  0002              #pragma debug variable 10 3 _Delay1ms_2+0 "delay"
  14  0002              #line 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h"
  14  0000  1F00     E  	clr rb
  14  0001  1F00     E  	clr rc
  14  0002  2800     R  	jmp _L3
  14  0003              _L4:
  14  0003              #line 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h"
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF 2000>263690
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	ERRMESSAGE 'the value 2000of the argument exceeds the maxinum 263690'
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF 2000<0
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	ERRMESSAGE 'the value 2000 of the argument exceeds the mininum 0'
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
"File: setup.h       Assembler  Version HGASM0202      Page 3

  14  0003              	IF 2000==0
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	JMP $
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF (2000>=1) AND (2000<( 4 + __PBP__ * 2))
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	NOP
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF (2000>=2) AND (2000<( 4 + __PBP__ * 2))
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	NOP
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF (2000>=3) AND (2000<( 4 + __PBP__ * 2))
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	NOP
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF (2000>=4) AND (2000<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	NOP
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF (2000>=5) AND (2000<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	NOP
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF (2000>=6) AND (2000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	NOP
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF (2000>=7) AND (2000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	NOP
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF (2000>=8) AND (2000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	NOP
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF (2000==9)  AND ( __PBP__ > 2 )
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	NOP
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF (2000< ( 8 + __PBP__ * 2)) AND (2000>( 3 + __PBP__ * 2))
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	fcall __DELAY3 + ( 7 + __PBP__ * 2) -2000
  14  0003              	ENDIF
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	IF (2000< ( 0404h + __PBP__ * 2)) AND (2000>( 7 + __PBP__ * 2))
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	MOV A,(2000-( 4 + __PBP__ * 2))/4
  14  0003              ;# 14 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  14  0003              	fcall __DELAYX3 + 3 -((2000-( 4 + __PBP__ * 2)) MOD 4) 
"File: setup.h       Assembler  Version HGASM0202      Page 4

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

  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF 20000>263690
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	ERRMESSAGE 'the value 20000of the argument exceeds the maxinum 263690'
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF 20000<0
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	ERRMESSAGE 'the value 20000 of the argument exceeds the mininum 0'
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF 20000==0
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	JMP $
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000>=1) AND (20000<( 4 + __PBP__ * 2))
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	NOP
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000>=2) AND (20000<( 4 + __PBP__ * 2))
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	NOP
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000>=3) AND (20000<( 4 + __PBP__ * 2))
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	NOP
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000>=4) AND (20000<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	NOP
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000>=5) AND (20000<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	NOP
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000>=6) AND (20000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	NOP
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000>=7) AND (20000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	NOP
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000>=8) AND (20000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	NOP
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000==9)  AND ( __PBP__ > 2 )
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	NOP
  20  0003              	ENDIF
"File: setup.h       Assembler  Version HGASM0202      Page 6

  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000< ( 8 + __PBP__ * 2)) AND (20000>( 3 + __PBP__ * 2))
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	fcall __DELAY3 + ( 7 + __PBP__ * 2) -20000
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000< ( 0404h + __PBP__ * 2)) AND (20000>( 7 + __PBP__ * 2))
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	MOV A,(20000-( 4 + __PBP__ * 2))/4
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	fcall __DELAYX3 + 3 -((20000-( 4 + __PBP__ * 2)) MOD 4) 
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000< ( 040bh + __PBP__ * 2)) AND (20000> ( 0403h + __PBP__ * 2))
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	MOV A,0 
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -20000
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000 >= ( 040bh + __PBP__ * 2)) AND ((((20000-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	MOV A,(20000-( 9 + __PBP__ * 2))/0402h
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	MOV _builtin_holtek_delay_2,A
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	MOV A,0
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	fcall __DELAYY5 +5- (((20000-( 9 + __PBP__ * 2))%0402h)%6) 
  20  0003              	ENDIF
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003              	IF (20000 >= ( 040bh + __PBP__ * 2)) AND ((((20000-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
  20  0003              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0003  0F13        	MOV A,(20000-( 9 + __PBP__ * 2))/0402h
  20  0004              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0004  0080     E  	MOV _builtin_holtek_delay_2,A
  20  0005              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0005  0F7B        	MOV A,((20000-( 9 + __PBP__ * 2))%0402h)/4+1
  20  0006              ;# 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h" 1
  20  0006              	fcall __DELAYY3 +3-(((20000-( 9 + __PBP__ * 2))%0402h)%4) 
  20  000D              	ENDIF
  20  000D  1480     E  	inc rb
  20  000E  3D0A        	sz z
  20  000F  1480     E  	inc rc
  20  0010              _L7:
  20  0010  0700     E  	mov a,rb
  20  0011  0200     R  	sub a,_Delay10ms_2[0]
  20  0012  0700     E  	mov a,rc
  20  0013  1200     R  	sbc a,_Delay10ms_2[1]
  20  0014  3B0A        	snz cz
  20  0015  2800     R  	jmp _L8
  20  0016  0003        	ret
  20  0017              _Delay10ms endp
  20  0017              #line 20 "c:\users\edenlai\desktop\esk310\seven segment\setup.h"
  20  0017              #pragma debug scope 1 1
  20  0017              ___pc equ [27]
  20  0017              public _main
  20  0017              #pragma debug scope 5 1

  14  0017              #line 14 "c:\users\edenlai\desktop\esk310\seven segment\SEVEN SEGMENT.c"
"File: SEVEN SEGMENT.c  Assembler  Version HGASM0202      Page 7

  14  0017              IFDEF WITH_DEFAULT_STARTUP
  14  0017              extern _main_initial0:near
  14  0017              extern _main_startup:near
  14  0017              ENDIF
  14  0017              
  14  0017              ROMBANK 0 @start
  14  0000              @start .section com_l 'code'
  14  0000              _main_startup1:
  14  0000              @start .section com_e 'code'
  14  0000  0F00     R  	mov a,bank _main
  14  0001  008B        	mov bp,a
  14  0002  2800     R  	jmp _main
  14  0003              
  14  0000              _main .section 'code'
  14  0000              _main proc
  14  0000  00              local _main_2 db 1 dup(?)
  14  0001              #pragma debug variable 8 5 _main_2+0 "i"
  15  0001              #line 15 "c:\users\edenlai\desktop\esk310\seven segment\SEVEN SEGMENT.c"
  15  0000              	fcall _setup
  15  0007              _L12:
  19  0007              #line 19 "c:\users\edenlai\desktop\esk310\seven segment\SEVEN SEGMENT.c"
  19  0007  1F00     R  	clr _main_2[0]
  19  0008              _L10:
  21  0008              #line 21 "c:\users\edenlai\desktop\esk310\seven segment\SEVEN SEGMENT.c"
  21  0008  0F00     R  	mov a,low offset _SEGMENT_TAB
  21  0009  0300     R  	add a,_main_2[0]
  21  000A  0083        	mov mp,a
  21  000B  0F00     R  	mov a,high offset _SEGMENT_TAB
  21  000C  1F04        	clr sbp
  21  000D  1384        	adcm a,sbp
  21  000E              	fcall _Crom2Prom
  21  0015  009B        	mov [27],a
  22  0016              #line 22 "c:\users\edenlai\desktop\esk310\seven segment\SEVEN SEGMENT.c"
  22  0016  0F64        	mov a,100
  22  0017  0080     R  	mov _Delay10ms_2[0],a
  22  0018  1F00     R  	clr _Delay10ms_2[1]
  22  0019              	fcall _Delay10ms
  19  0020              #line 19 "c:\users\edenlai\desktop\esk310\seven segment\SEVEN SEGMENT.c"
  19  0020  1480     R  	inc _main_2[0]
  19  0021  0F09        	mov a,9
  19  0022  0200     R  	sub a,_main_2[0]
  19  0023  3C0A        	sz c
  19  0024  2800     R  	jmp _L10
  19  0025  2800     R  	jmp _L12
  19  0026  2800     R  	jmp $
  19  0027              _main endp
  19  0027              
  19  0027              @dummy endp
  19  0027              
  19  0027              #line 19 "c:\users\edenlai\desktop\esk310\seven segment\SEVEN SEGMENT.c"
  19  0027              #pragma debug scope 1 1
  19  0027              public _SEGMENT_TAB
  19  0000              @crom	.section 'crom'

   3  0000              #line 3 "c:\users\edenlai\desktop\esk310\seven segment\setup.h"
   3  0000              @crom	.section	'crom'
   3  0000              _SEGMENT_TAB:
   3  0000              #pragma debug array 42 8 10 1
   3  0000              #pragma debug array 42 8 10 1
   3  0000              #pragma debug variable 42 1 _SEGMENT_TAB "SEGMENT_TAB"
"File: setup.h       Assembler  Version HGASM0202      Page 8

   3  0000              	db 103
   3  0001              	db 127
   3  0001              	db 7
   3  0002              	db 125
   3  0002              	db 109
   3  0003              	db 102
   3  0003              	db 79
   3  0004              	db 91
   3  0004              	db 6
   3  0005              	db 63
   3  0005              #pragma debug struct_end
   3  0005              #pragma debug struct_end
   3  0005              #pragma debug union_end
   3  0005              #pragma debug union_end
   3  0005              #pragma debug variable 44 1 ___pc "__pc" 1
   3  0005              #pragma debug struct_end
   3  0005              #pragma debug struct_end
   3  0005              #pragma debug union_end
   3  0005              #pragma debug union_end
   3  0005              #pragma debug variable 46 1 ___pcc "__pcc" 1
   3  0005              #pragma debug struct_end
   3  0005              #pragma debug struct_end
   3  0005              #pragma debug union_end
   3  0005              #pragma debug union_end
   3  0005              #pragma debug variable 48 1 ___wdtc "__wdtc" 1

  14  0005              #line 14 "c:\users\edenlai\desktop\esk310\seven segment\SEVEN SEGMENT.c"
  14  0000              @code .section at 0 'code'
  14  0000  1F0B        	clr bp
  14  0001  2800     R  	jmp _main_startup1
  14  0002              
  14  0002              
  14  0002              ; 
  14  0002              ; Generated by holtek-gcc v3.19, Mon Aug 30 16:34:29 2021
  14  0002              ; Rebuild 718
  14  0002              ; end of file


        0 Errors, 0