⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intprg.a30

📁 瑞萨(Renesas)M16C系列芯片上实现接受摇控板控制的程序
💻 A30
📖 第 1 页 / 共 5 页
字号:
	.glb	__timer_a3
	.rvector	24, __timer_a3
__timer_a3:
	pushm	R0,R1,R2,R3,A0,A1,FB
	popm	R0,R1,R2,R3,A0,A1,FB
	reit
E30:
M30:
	._efunc	M30
	._inspect	'F', 'd', "_timer_a3", "__timer_a3", 'G', 211, 0, 020000h, 0
	._inspect	'F', 't', "_timer_a3", 'G', 345
	._inspect	'F', 'e', "_timer_a3", "__timer_a3", 'G', 0, 0


;## #	FUNCTION _timer_a4
;## #	ARG Size(0)	Auto Size(0)	Context Size(18)

	._type	346,'v'
	._type	347,'v'
	._type	348,'x',346,1
	._type	348,'m','',18,347
	._func	'_timer_a4','G',0,348,__timer_a4,0
	._inspect	'F', 's', "_timer_a4", "__timer_a4", 'G', 18
	.align
	._line	215
	.glb	__timer_a4
	.rvector	25, __timer_a4
__timer_a4:
	pushm	R0,R1,R2,R3,A0,A1,FB
	popm	R0,R1,R2,R3,A0,A1,FB
	reit
E31:
M31:
	._efunc	M31
	._inspect	'F', 'd', "_timer_a4", "__timer_a4", 'G', 215, 0, 020000h, 0
	._inspect	'F', 't', "_timer_a4", 'G', 348
	._inspect	'F', 'e', "_timer_a4", "__timer_a4", 'G', 0, 0


;## #	FUNCTION _timer_b0
;## #	ARG Size(0)	Auto Size(0)	Context Size(18)

	._type	349,'v'
	._type	350,'v'
	._type	351,'x',349,1
	._type	351,'m','',18,350
	._func	'_timer_b0','G',0,351,__timer_b0,0
	._inspect	'F', 's', "_timer_b0", "__timer_b0", 'G', 18
	.align
	._line	219
	.glb	__timer_b0
	.rvector	26, __timer_b0
__timer_b0:
	pushm	R0,R1,R2,R3,A0,A1,FB
	popm	R0,R1,R2,R3,A0,A1,FB
	reit
E32:
M32:
	._efunc	M32
	._inspect	'F', 'd', "_timer_b0", "__timer_b0", 'G', 219, 0, 020000h, 0
	._inspect	'F', 't', "_timer_b0", 'G', 351
	._inspect	'F', 'e', "_timer_b0", "__timer_b0", 'G', 0, 0


;## #	FUNCTION _timer_b1
;## #	ARG Size(0)	Auto Size(0)	Context Size(18)

	._type	352,'v'
	._type	353,'v'
	._type	354,'x',352,1
	._type	354,'m','',18,353
	._func	'_timer_b1','G',0,354,__timer_b1,0
	._inspect	'F', 's', "_timer_b1", "__timer_b1", 'G', 18
	.align
	._line	223
	.glb	__timer_b1
	.rvector	27, __timer_b1
__timer_b1:
	pushm	R0,R1,R2,R3,A0,A1,FB
	popm	R0,R1,R2,R3,A0,A1,FB
	reit
E33:
M33:
	._efunc	M33
	._inspect	'F', 'd', "_timer_b1", "__timer_b1", 'G', 223, 0, 020000h, 0
	._inspect	'F', 't', "_timer_b1", 'G', 354
	._inspect	'F', 'e', "_timer_b1", "__timer_b1", 'G', 0, 0


;## #	FUNCTION _timer_b2
;## #	ARG Size(0)	Auto Size(0)	Context Size(18)

	._type	355,'v'
	._type	356,'v'
	._type	357,'x',355,1
	._type	357,'m','',18,356
	._func	'_timer_b2','G',0,357,__timer_b2,0
	._inspect	'F', 's', "_timer_b2", "__timer_b2", 'G', 18
	.align
	._line	227
	.glb	__timer_b2
	.rvector	28, __timer_b2
__timer_b2:
	pushm	R0,R1,R2,R3,A0,A1,FB
	popm	R0,R1,R2,R3,A0,A1,FB
	reit
E34:
M34:
	._efunc	M34
	._inspect	'F', 'd', "_timer_b2", "__timer_b2", 'G', 227, 0, 020000h, 0
	._inspect	'F', 't', "_timer_b2", 'G', 357
	._inspect	'F', 'e', "_timer_b2", "__timer_b2", 'G', 0, 0


;## #	FUNCTION _int0
;## #	ARG Size(0)	Auto Size(0)	Context Size(18)

	._type	358,'v'
	._type	359,'v'
	._type	360,'x',358,1
	._type	360,'m','',18,359
	._func	'_int0','G',0,360,__int0,0
	._inspect	'F', 's', "_int0", "__int0", 'G', 18
	.align
	._line	231
	.glb	__int0
	.rvector	29, __int0
__int0:
	pushm	R0,R1,R2,R3,A0,A1,FB
	._block
	._line	232
;#### ASM START
fclr i
;#### ASM END
	._line	234
	btst	02H,_p8_addr
	jnz	L203
	._line	235
	._block
	._line	237
	mov.w	#0000H,_width_pre
	._line	238
L13:
	btst	02H,_p8_addr
	jnz	L15
	._line	239
	._block
	._line	240
	._inspect	'S', 'c', "delay_100us_asm", "_delay_100us_asm", 'G', 0, 240
	jsr	_delay_100us_asm
	._line	241
	add.w	#0001H,_width_pre
	._eblock
	._line	242
	jmp	L13
L15:
	._line	243
	cmp.w	#0050H,_width_pre
	jltu	L225
	cmp.w	#005fH,_width_pre
	jleu	L23
L225:
	._line	244
	._block
	._line	245
	bclr	3,_int0ic_addr
	._line	246
;#### ASM START
fset i
;#### ASM END
	._line	247
	popm	R0,R1,R2,R3,A0,A1,FB
	reit
	._eblock
L23:
	._line	249
	mov.w	#0000H,_width_pre
	._line	250
L51:
	btst	02H,_p8_addr
	jz	L53
	._line	251
	._block
	._line	252
	._inspect	'S', 'c', "delay_100us_asm", "_delay_100us_asm", 'G', 0, 252
	jsr	_delay_100us_asm
	._line	253
	add.w	#0001H,_width_pre
	._eblock
	._line	254
	jmp	L51
L53:
	._line	255
	cmp.w	#0028H,_width_pre
	jltu	L237
	cmp.w	#0032H,_width_pre
	jleu	L61
L237:
	._line	256
	._block
	._line	257
	bclr	3,_int0ic_addr
	._line	258
;#### ASM START
fset i
;#### ASM END
	._line	259
	popm	R0,R1,R2,R3,A0,A1,FB
	reit
	._eblock
L61:
	._line	262
	mov.w	#0000H,_width_pre
	._line	263
L261:
L89:
	cmp.w	#0020H,_width_pre
	jgeu	L91
	._line	264
	._block
	._line	265
	add.w	#0001H,_width_pre
	._line	266
	bclr	2,_pd8_addr
	._line	267
L99:
	btst	02H,_p8_addr
	jz	L99
	._line	268
	mov.b	#00H,_width
	._line	269
L109:
	btst	02H,_p8_addr
	jz	L111
	._line	270
	._block
	._line	271
	._inspect	'S', 'c', "delay_100us_asm", "_delay_100us_asm", 'G', 0, 271
	jsr	_delay_100us_asm
	._line	272
	inc.b	_width
	._eblock
	._line	273
	jmp	L109
L111:
	._line	275
	shl.b	#01H,_IR_data
	._line	276
	mov.b	_width,R0L
	mov.b	#00H,R0H
	cmp.w	#0008H,R0
	jle	L119
	._line	277
	mov.b	_IR_data,A0
	or.b	#01H,A0
	mov.b	A0,_IR_data
L119:
	._line	279
	cmp.w	#0008H,_width_pre
	jne	L129
	._line	280
	mov.b	_IR_data,_IR_DATA
L129:
	._line	281
	cmp.w	#0010H,_width_pre
	jne	L139
	._line	282
	mov.b	_IR_data,_IR_DATA+1
L139:
	._line	283
	cmp.w	#0018H,_width_pre
	jne	L149
	._line	284
	mov.b	_IR_data,_IR_DATA+2
L149:
	._line	285
	cmp.w	#0020H,_width_pre
	jne	L89
	._line	286
	mov.b	_IR_data,_IR_DATA+3
	jmp	L261
	._eblock
	._line	287
L91:
	._line	289
	mov.b	_IR_DATA+3,R0L
	not.b	R0L
	cmp.b	R0L,_IR_DATA+2
	jeq	L169
	._line	290
	._block
	._line	291
	bclr	3,_int0ic_addr
	._line	292
;#### ASM START
fset i
;#### ASM END
	._line	293
	popm	R0,R1,R2,R3,A0,A1,FB
	reit
	._eblock
L169:
	._line	295
	mov.b	#01H,_IR_OK
	._line	297
	mov.b	_IR_OK,R0L
	mov.b	#00H,R0H
	cmp.w	#0001H,R0
	jne	L259
	._line	298
	._block
	._line	300
	mov.b	#00H,_IR_OK
	._line	302
	mov.b	_IR_DATA+2,R0L
	cmp.b	#0e8H,R0L
	jeq	L181
	cmp.b	#48H,R0L
	jeq	L183
	cmp.b	#0a8H,R0L
	jeq	L185
	cmp.b	#98H,R0L
	jeq	L187
	cmp.b	#18H,R0L
	jeq	L189
	jmp	L191
	._line	303
	._block
	._line	304
L181:
	._inspect	'S', 'c', "PIN_2_0_light", "_PIN_2_0_light", 'G', 0, 304
	jsr	_PIN_2_0_light
	jmp	L263
	._line	305
L183:
	._inspect	'S', 'c', "PIN_2_1_light", "_PIN_2_1_light", 'G', 0, 305
	jsr	_PIN_2_1_light
	jmp	L263
	._line	306
L185:
	._inspect	'S', 'c', "PIN_2_2_light", "_PIN_2_2_light", 'G', 0, 306
	jsr	_PIN_2_2_light
	jmp	L263
	._line	307
L187:
	._inspect	'S', 'c', "PIN_2_3_light", "_PIN_2_3_light", 'G', 0, 307
	jsr	_PIN_2_3_light
	jmp	L263
	._line	308
L189:
	._inspect	'S', 'c', "PIN_2_4_light", "_PIN_2_4_light", 'G', 0, 308
	jsr	_PIN_2_4_light
	jmp	L263
	._line	309
L191:
	._inspect	'S', 'c', "PIN_2_5_light", "_PIN_2_5_light", 'G', 0, 309
	jsr	_PIN_2_5_light
	._eblock
	._eblock
	._eblock
L263:
L259:
L203:
	._line	316
	bclr	3,_int0ic_addr
	._line	317
;#### ASM START
fset i
;#### ASM END
	._eblock
	._line	318
	popm	R0,R1,R2,R3,A0,A1,FB
	reit
E35:
M35:
	._efunc	M35
	._inspect	'F', 'd', "_int0", "__int0", 'G', 231, 0, 020000h, 0
	._inspect	'F', 't', "_int0", 'G', 360
	._inspect	'V', 'r', "p8_addr", 'G', 234, 1, 1, 0, 04h
	._inspect	'V', 'r', "width_pre", 'S', 237, 2, 0, 0, 00h
	._inspect	'V', 'r', "p8_addr", 'G', 238, 1, 1, 0, 04h
	._inspect	'F', 'r', "delay_100us_asm", "_delay_100us_asm", 'G', 240, 0, 00h, 0
	._inspect	'V', 'r', "width_pre", 'S', 241, 2, 0, 0, 00h
	._inspect	'V', 'r', "width_pre", 'S', 243, 2, 0, 0, 00h
	._inspect	'V', 'r', "width_pre", 'S', 243, 2, 0, 0, 00h
	._inspect	'V', 'r', "int0ic_addr", 'G', 245, 1, 1, 0, 08h
	._inspect	'V', 'r', "width_pre", 'S', 249, 2, 0, 0, 00h
	._inspect	'V', 'r', "p8_addr", 'G', 250, 1, 1, 0, 04h
	._inspect	'F', 'r', "delay_100us_asm", "_delay_100us_asm", 'G', 252, 0, 00h, 0
	._inspect	'V', 'r', "width_pre", 'S', 253, 2, 0, 0, 00h
	._inspect	'V', 'r', "width_pre", 'S', 255, 2, 0, 0, 00h
	._inspect	'V', 'r', "width_pre", 'S', 255, 2, 0, 0, 00h
	._inspect	'V', 'r', "int0ic_addr", 'G', 257, 1, 1, 0, 08h
	._inspect	'V', 'r', "width_pre", 'S', 262, 2, 0, 0, 00h
	._inspect	'V', 'r', "width_pre", 'S', 263, 2, 0, 0, 00h
	._inspect	'V', 'r', "width_pre", 'S', 265, 2, 0, 0, 00h
	._inspect	'V', 'r', "pd8_addr", 'G', 266, 1, 1, 0, 04h
	._inspect	'V', 'r', "p8_addr", 'G', 267, 1, 1, 0, 04h
	._inspect	'V', 'r', "width", 'G', 268, 1, 0, 0, 00h
	._inspect	'V', 'r', "p8_addr", 'G', 269, 1, 1, 0, 04h
	._inspect	'F', 'r', "delay_100us_asm", "_delay_100us_asm", 'G', 271, 0, 00h, 0
	._inspect	'V', 'r', "width", 'G', 272, 1, 0, 0, 00h
	._inspect	'V', 'r', "IR_data", 'G', 275, 1, 0, 0, 00h
	._inspect	'V', 'r', "IR_data", 'G', 275, 1, 0, 0, 00h
	._inspect	'V', 'r', "width", 'G', 276, 1, 0, 0, 00h
	._inspect	'V', 'r', "IR_data", 'G', 277, 1, 0, 0, 00h
	._inspect	'V', 'r', "IR_data", 'G', 277, 1, 0, 0, 00h
	._inspect	'V', 'r', "width_pre", 'S', 279, 2, 0, 0, 00h
	._inspect	'V', 'r', "IR_DATA", 'G', 280, 4, 0, 0, 00h
	._inspect	'V', 'r', "IR_data", 'G', 280, 1, 0, 0, 00h
	._inspect	'V', 'r', "width_pre", 'S', 281, 2, 0, 0, 00h
	._inspect	'V', 'r', "IR_DATA", 'G', 282, 4, 0, 0, 00h
	._inspect	'V', 'r', "IR_data", 'G', 282, 1, 0, 0, 00h
	._inspect	'V', 'r', "width_pre", 'S', 283, 2, 0, 0, 00h
	._inspect	'V', 'r', "IR_DATA", 'G', 284, 4, 0, 0, 00h
	._inspect	'V', 'r', "IR_data", 'G', 284, 1, 0, 0, 00h
	._inspect	'V', 'r', "width_pre", 'S', 285, 2, 0, 0, 00h
	._inspect	'V', 'r', "IR_DATA", 'G', 286, 4, 0, 0, 00h
	._inspect	'V', 'r', "IR_data", 'G', 286, 1, 0, 0, 00h
	._inspect	'V', 'r', "IR_DATA", 'G', 289, 4, 0, 0, 00h
	._inspect	'V', 'r', "IR_DATA", 'G', 289, 4, 0, 0, 00h
	._inspect	'V', 'r', "int0ic_addr", 'G', 291, 1, 1, 0, 08h
	._inspect	'V', 'r', "IR_OK", 'G', 295, 1, 0, 0, 00h
	._inspect	'V', 'r', "IR_OK", 'G', 297, 1, 0, 0, 00h
	._inspect	'V', 'r', "IR_OK", 'G', 300, 1, 0, 0, 00h
	._inspect	'V', 'r', "IR_DATA", 'G', 302, 4, 0, 0, 00h

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -