"File: IR_reflective.c  Assembler  Version HGASM0202      Page 1


   1  0000              ; Generated by holtek-gcc v3.19, Mon Aug 30 16:52:34 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: IR_reflective.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              ___sadc0 equ [105]
  79  0000              ___pds0 equ [339]
  80  0000              ___intc1 equ [17]
  81  0000              ___intc0 equ [16]
  82  0000              public _setup
  83  0000              #pragma debug scope 2 1

   6  0000              #line 6 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
   6  0000              _setup .section 'code'
   6  0000              _setup proc
   7  0000              #line 7 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
   7  0000  0FAB        	mov a,171
   7  0001  00BE        	mov [62],a
   8  0002              #line 8 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
   8  0002  1F1C        	clr [28]
   9  0003              #line 9 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
   9  0003  0F38        	mov a,56
   9  0004  00E9        	mov [105],a
  10  0005              #line 10 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
  10  0005  0F03        	mov a,3
  10  0006  80D3 0001   	lmov [339],a
  11  0008              #line 11 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
  11  0008  3191        	set [17].3
  12  0009              #line 12 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
  12  0009  3010        	set [16].0
  13  000A              #line 13 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
  13  000A  33E9        	set [105].7
  13  000B  37E9        	clr [105].7
  13  000C  0003        	ret
  13  000D              _setup endp
  13  000D              #line 13 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
  13  000D              #pragma debug scope 1 1
  13  000D              public _Delay1ms
  13  000D              #pragma debug scope 3 1
  17  000D              #line 17 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
  17  0000              _Delay1ms .section 'code'
  17  0000              _Delay1ms proc
  17  0000              public _Delay1ms_2
  17  0000  0002[           local _Delay1ms_2 db 2 dup(?)	; 2,0
            00
            ]
  17  0002              #pragma debug variable 10 3 _Delay1ms_2+0 "delay"
"File: setup.h       Assembler  Version HGASM0202      Page 3

  19  0002              #line 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
  19  0000  1F00     E  	clr rb
  19  0001  1F00     E  	clr rc
  19  0002  2800     R  	jmp _L3
  19  0003              _L4:
  19  0003              #line 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	IF 2000>263690
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	ERRMESSAGE 'the value 2000of the argument exceeds the maxinum 263690'
  19  0003              	ENDIF
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	IF 2000<0
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	ERRMESSAGE 'the value 2000 of the argument exceeds the mininum 0'
  19  0003              	ENDIF
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	IF 2000==0
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	JMP $
  19  0003              	ENDIF
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	IF (2000>=1) AND (2000<( 4 + __PBP__ * 2))
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	NOP
  19  0003              	ENDIF
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	IF (2000>=2) AND (2000<( 4 + __PBP__ * 2))
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	NOP
  19  0003              	ENDIF
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	IF (2000>=3) AND (2000<( 4 + __PBP__ * 2))
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	NOP
  19  0003              	ENDIF
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	IF (2000>=4) AND (2000<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	NOP
  19  0003              	ENDIF
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	IF (2000>=5) AND (2000<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	NOP
  19  0003              	ENDIF
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	IF (2000>=6) AND (2000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	NOP
  19  0003              	ENDIF
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	IF (2000>=7) AND (2000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	NOP
  19  0003              	ENDIF
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	IF (2000>=8) AND (2000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
  19  0003              ;# 19 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  19  0003              	NOP
"File: setup.h       Assembler  Version HGASM0202      Page 4

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

  19  0017              #pragma debug scope 1 1
  19  0017              public _Delay10ms
  19  0017              #pragma debug scope 4 1
  23  0017              #line 23 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
  23  0000              _Delay10ms .section 'code'
  23  0000              _Delay10ms proc
  23  0000              public _Delay10ms_2
  23  0000  0002[           local _Delay10ms_2 db 2 dup(?)	; 2,0
            00
            ]
  23  0002              #pragma debug variable 10 4 _Delay10ms_2+0 "delay"
  25  0002              #line 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
  25  0000  1F00     E  	clr rb
  25  0001  1F00     E  	clr rc
  25  0002  2800     R  	jmp _L7
  25  0003              _L8:
  25  0003              #line 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF 20000>263690
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	ERRMESSAGE 'the value 20000of the argument exceeds the maxinum 263690'
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF 20000<0
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	ERRMESSAGE 'the value 20000 of the argument exceeds the mininum 0'
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF 20000==0
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	JMP $
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000>=1) AND (20000<( 4 + __PBP__ * 2))
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	NOP
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000>=2) AND (20000<( 4 + __PBP__ * 2))
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	NOP
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000>=3) AND (20000<( 4 + __PBP__ * 2))
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	NOP
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000>=4) AND (20000<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	NOP
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000>=5) AND (20000<( 4 + __PBP__ * 2)) AND ( __PBP__ > 0 )
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	NOP
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000>=6) AND (20000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
"File: setup.h       Assembler  Version HGASM0202      Page 6

  25  0003              	NOP
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000>=7) AND (20000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 1 )
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	NOP
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000>=8) AND (20000<( 4 + __PBP__ * 2))  AND ( __PBP__ > 2 )
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	NOP
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000==9)  AND ( __PBP__ > 2 )
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	NOP
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000< ( 8 + __PBP__ * 2)) AND (20000>( 3 + __PBP__ * 2))
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	fcall __DELAY3 + ( 7 + __PBP__ * 2) -20000
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000< ( 0404h + __PBP__ * 2)) AND (20000>( 7 + __PBP__ * 2))
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	MOV A,(20000-( 4 + __PBP__ * 2))/4
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	fcall __DELAYX3 + 3 -((20000-( 4 + __PBP__ * 2)) MOD 4) 
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000< ( 040bh + __PBP__ * 2)) AND (20000> ( 0403h + __PBP__ * 2))
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	MOV A,0 
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	fcall __DELAYX6 + ( 040ah + __PBP__ * 2) -20000
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000 >= ( 040bh + __PBP__ * 2)) AND ((((20000-( 9 + __PBP__ * 2))%0402h)/4+1)>256)
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	MOV A,(20000-( 9 + __PBP__ * 2))/0402h
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	MOV _builtin_holtek_delay_2,A
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	MOV A,0
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	fcall __DELAYY5 +5- (((20000-( 9 + __PBP__ * 2))%0402h)%6) 
  25  0003              	ENDIF
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003              	IF (20000 >= ( 040bh + __PBP__ * 2)) AND ((((20000-( 9 + __PBP__ * 2))%0402h)/4+1)<=256)
  25  0003              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0003  0F13        	MOV A,(20000-( 9 + __PBP__ * 2))/0402h
  25  0004              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0004  0080     E  	MOV _builtin_holtek_delay_2,A
  25  0005              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0005  0F7B        	MOV A,((20000-( 9 + __PBP__ * 2))%0402h)/4+1
  25  0006              ;# 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h" 1
  25  0006              	fcall __DELAYY3 +3-(((20000-( 9 + __PBP__ * 2))%0402h)%4) 
  25  000D              	ENDIF
  25  000D  1480     E  	inc rb
  25  000E  3D0A        	sz z
"File: setup.h       Assembler  Version HGASM0202      Page 7

  25  000F  1480     E  	inc rc
  25  0010              _L7:
  25  0010  0700     E  	mov a,rb
  25  0011  0200     R  	sub a,_Delay10ms_2[0]
  25  0012  0700     E  	mov a,rc
  25  0013  1200     R  	sbc a,_Delay10ms_2[1]
  25  0014  3B0A        	snz cz
  25  0015  2800     R  	jmp _L8
  25  0016  0003        	ret
  25  0017              _Delay10ms endp
  25  0017              #line 25 "c:\users\edenlai\desktop\esk310\ir_reflective\setup.h"
  25  0017              #pragma debug scope 1 1
  25  0017              public _main
  25  0017              #pragma debug scope 5 1

  15  0017              #line 15 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  15  0017              IFDEF WITH_DEFAULT_STARTUP
  15  0017              extern _main_initial0:near
  15  0017              extern _main_startup:near
  15  0017              ENDIF
  15  0017              
  15  0017              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\esk310\ir_reflective\IR_reflective.c"
  16  0000              	fcall _setup
  16  0007              _L10:
  16  0007  2800     R  	jmp _L10
  16  0008  2800     R  	jmp $
  16  0009              _main endp
  16  0009              
  16  0009              @dummy endp
  16  0009              
  16  0009              #line 16 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  16  0009              #pragma debug scope 1 1
  16  0009              ___sadoh equ [104]
  16  0009              ___sadol equ [103]
  16  0009              ___pc equ [27]
  16  0009              public _VR
  16  0009              #pragma debug scope 6 1
  21  0009              #line 21 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  21  0009              rombank 0 @VR_code
  21  0000              @VR_code .section at 28 'code'
  21  0000  0080     E  	mov r1,a
  21  0001  070B        	mov a,bp
  21  0002  1F0B        	clr bp
  21  0003  2800     R  	jmp _VR
  21  0004              ROMBANK 0 _VR
  21  0004              #pragma debug scope 1 1
  21  0004              @dummy28 endp
  21  0004              #pragma debug scope 7 1
  21  0000              _VR .section 'code'
  21  0000              _VR proc
"File: IR_reflective.c  Assembler  Version HGASM0202      Page 8

  21  0000  0080     E  	mov r2,a
  21  0001  070A        	mov a, status
  21  0002  0080     E  	mov r3,a
  23  0003              #line 23 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  23  0003  33E9        	set [105].7
  23  0004  37E9        	clr [105].7
  24  0005              #line 24 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  24  0005  0768        	mov a,[104]
  24  0006  0080     E  	mov rc,a
  24  0007  1F00     E  	clr rb
  24  0008  0767        	mov a,[103]
  24  0009  0380     E  	addm a,rb
  24  000A  3C0A        	sz c
  24  000B  1480     E  	inc rc
  25  000C              #line 25 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  25  000C  0F1B        	mov a,27
  25  000D  0200     E  	sub a,rb
  25  000E  0F02        	mov a,2
  25  000F  1200     E  	sbc a,rc
  25  0010  380A        	snz c
  25  0011  2800     R  	jmp _L12
  25  0012              #line 25 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  25  0012  0F3F        	mov a,63
  25  0013  009B        	mov [27],a
  25  0014              _L12:
  27  0014              #line 27 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  27  0014  0FE4        	mov a,228
  27  0015  0300     E  	add a,rb
  27  0016  0080     E  	mov rd,a
  27  0017  0FFD        	mov a,253
  27  0018  1300     E  	adc a,rc
  27  0019  0080     E  	mov re,a
  27  001A  0F7B        	mov a,123
  27  001B  0200     E  	sub a,rd
  27  001C  0F01        	mov a,1
  27  001D  1200     E  	sbc a,re
  27  001E  380A        	snz c
  27  001F  2800     R  	jmp _L13
  27  0020  0F06        	mov a,6
  27  0021  009B        	mov [27],a
  27  0022              _L13:
  29  0022              #line 29 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  29  0022  0F68        	mov a,104
  29  0023  0300     E  	add a,rb
  29  0024  0080     E  	mov rd,a
  29  0025  0FFC        	mov a,252
  29  0026  1300     E  	adc a,rc
  29  0027  0080     E  	mov re,a
  29  0028  0F7B        	mov a,123
  29  0029  0200     E  	sub a,rd
  29  002A  0F01        	mov a,1
  29  002B  1200     E  	sbc a,re
  29  002C  380A        	snz c
  29  002D  2800     R  	jmp _L14
  29  002E  0F5B        	mov a,91
  29  002F  009B        	mov [27],a
  29  0030              _L14:
  31  0030              #line 31 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  31  0030  0FEC        	mov a,236
  31  0031  0300     E  	add a,rb
"File: IR_reflective.c  Assembler  Version HGASM0202      Page 9

  31  0032  0080     E  	mov rd,a
  31  0033  0FFA        	mov a,250
  31  0034  1300     E  	adc a,rc
  31  0035  0080     E  	mov re,a
  31  0036  0F7B        	mov a,123
  31  0037  0200     E  	sub a,rd
  31  0038  0F01        	mov a,1
  31  0039  1200     E  	sbc a,re
  31  003A  380A        	snz c
  31  003B  2800     R  	jmp _L15
  31  003C  0F4F        	mov a,79
  31  003D  009B        	mov [27],a
  31  003E              _L15:
  33  003E              #line 33 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  33  003E  0F70        	mov a,112
  33  003F  0300     E  	add a,rb
  33  0040  0080     E  	mov rd,a
  33  0041  0FF9        	mov a,249
  33  0042  1300     E  	adc a,rc
  33  0043  0080     E  	mov re,a
  33  0044  0F7B        	mov a,123
  33  0045  0200     E  	sub a,rd
  33  0046  0F01        	mov a,1
  33  0047  1200     E  	sbc a,re
  33  0048  380A        	snz c
  33  0049  2800     R  	jmp _L16
  33  004A  0F66        	mov a,102
  33  004B  009B        	mov [27],a
  33  004C              _L16:
  35  004C              #line 35 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  35  004C  0FF4        	mov a,244
  35  004D  0300     E  	add a,rb
  35  004E  0080     E  	mov rd,a
  35  004F  0FF7        	mov a,247
  35  0050  1300     E  	adc a,rc
  35  0051  0080     E  	mov re,a
  35  0052  0F7B        	mov a,123
  35  0053  0200     E  	sub a,rd
  35  0054  0F01        	mov a,1
  35  0055  1200     E  	sbc a,re
  35  0056  380A        	snz c
  35  0057  2800     R  	jmp _L17
  35  0058  0F6D        	mov a,109
  35  0059  009B        	mov [27],a
  35  005A              _L17:
  37  005A              #line 37 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  37  005A  0F78        	mov a,120
  37  005B  0300     E  	add a,rb
  37  005C  0080     E  	mov rd,a
  37  005D  0FF6        	mov a,246
  37  005E  1300     E  	adc a,rc
  37  005F  0080     E  	mov re,a
  37  0060  0F7B        	mov a,123
  37  0061  0200     E  	sub a,rd
  37  0062  0F01        	mov a,1
  37  0063  1200     E  	sbc a,re
  37  0064  380A        	snz c
  37  0065  2800     R  	jmp _L18
  37  0066  0F7D        	mov a,125
  37  0067  009B        	mov [27],a
"File: IR_reflective.c  Assembler  Version HGASM0202      Page 10

  37  0068              _L18:
  39  0068              #line 39 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  39  0068  0FFC        	mov a,252
  39  0069  0300     E  	add a,rb
  39  006A  0080     E  	mov rd,a
  39  006B  0FF4        	mov a,244
  39  006C  1300     E  	adc a,rc
  39  006D  0080     E  	mov re,a
  39  006E  0F7B        	mov a,123
  39  006F  0200     E  	sub a,rd
  39  0070  0F01        	mov a,1
  39  0071  1200     E  	sbc a,re
  39  0072  380A        	snz c
  39  0073  2800     R  	jmp _L19
  39  0074  0F07        	mov a,7
  39  0075  009B        	mov [27],a
  39  0076              _L19:
  41  0076              #line 41 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  41  0076  0F80        	mov a,128
  41  0077  0300     E  	add a,rb
  41  0078  0080     E  	mov rd,a
  41  0079  0FF3        	mov a,243
  41  007A  1300     E  	adc a,rc
  41  007B  0080     E  	mov re,a
  41  007C  0F7B        	mov a,123
  41  007D  0200     E  	sub a,rd
  41  007E  0F01        	mov a,1
  41  007F  1200     E  	sbc a,re
  41  0080  380A        	snz c
  41  0081  2800     R  	jmp _L20
  41  0082  0F7F        	mov a,127
  41  0083  009B        	mov [27],a
  41  0084              _L20:
  43  0084              #line 43 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  43  0084  0F04        	mov a,4
  43  0085  0380     E  	addm a,rb
  43  0086  0FF2        	mov a,242
  43  0087  1380     E  	adcm a,rc
  43  0088  0FA3        	mov a,163
  43  0089  0200     E  	sub a,rb
  43  008A  0F01        	mov a,1
  43  008B  1200     E  	sbc a,rc
  43  008C  380A        	snz c
  43  008D  2800     R  	jmp _L11
  43  008E  0F67        	mov a,103
  43  008F  009B        	mov [27],a
  43  0090              _L11:
  43  0090  0700     E  	mov a,r2
  43  0091  008B        	mov bp,a
  43  0092  0700     E  	mov a,r3
  43  0093  008A        	mov status,a
  43  0094  0700     E  	mov a,r1
  43  0095  0004        	reti
  43  0096              _VR endp
  43  0096              
  43  0096              #line 43 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  43  0096              #pragma debug scope 1 1
  43  0096              public _SEGMENT_TAB
  43  0000              @crom	.section 'crom'

"File: setup.h       Assembler  Version HGASM0202      Page 11

   3  0000              #line 3 "c:\users\edenlai\desktop\esk310\ir_reflective\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"
   3  0000              	db 63
   3  0001              	db 6
   3  0001              	db 91
   3  0002              	db 79
   3  0002              	db 102
   3  0003              	db 109
   3  0003              	db 125
   3  0004              	db 7
   3  0004              	db 127
   3  0005              	db 103
   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 ___intc0 "__intc0" 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 ___intc1 "__intc1" 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 ___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 50 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 52 1 ___wdtc "__wdtc" 1
   3  0005              #pragma debug variable 8 1 ___sadol "__sadol" 1
   3  0005              #pragma debug variable 8 1 ___sadoh "__sadoh" 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 54 1 ___sadc0 "__sadc0" 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 56 1 ___pds0 "__pds0" 1
   3  0005              extern r1:byte
   3  0005              extern r2:byte
   3  0005              extern r3:byte

  15  0005              #line 15 "c:\users\edenlai\desktop\esk310\ir_reflective\IR_reflective.c"
  15  0000              @code .section at 0 'code'
  15  0000  1F0B        	clr bp
"File: IR_reflective.c  Assembler  Version HGASM0202      Page 12

  15  0001  2800     R  	jmp _main_startup1
  15  0002              
  15  0002              
  15  0002              ; 
  15  0002              ; Generated by holtek-gcc v3.19, Mon Aug 30 16:52:34 2021
  15  0002              ; Rebuild 718
  15  0002              ; end of file


        0 Errors, 0