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

📄 drv_touch.ps

📁 一款SmartPhone的驱动代码
💻 PS
📖 第 1 页 / 共 3 页
字号:

	.loc	85
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	enable_tp_int,	val	enable_tp_int,	scl	2,	type	0x21,	endef
	.global	enable_tp_int

	.loc	88
	.def	ent,	scl	101,	type	0x0,	endef
enable_tp_int:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0

	.loc	89
	xld.w	%r11,0x00040280		; 262784
	xbset	[%r11],0x2

	.loc	91
	xld.w	%r11,0x00040270		; 262768
	xbset	[%r11],0x2

	.loc	92
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	int_TP,	val	int_TP,	scl	2,	type	0x21,	endef
	.global	int_TP

	.loc	104
	.def	ent,	scl	101,	type	0x0,	endef
int_TP:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0

	.loc	105
	.def	begin,	scl	100,	type	0x0,	endef
; APP
	pushn %r15
; NO_APP

	.loc	108
	xld.w	%r11,0x00040270		; 262768
	xbclr	[%r11],0x2

	.loc	111
	xld.w	%r11,0x00040280		; 262784
	xbset	[%r11],0x2

	.loc	113
	xld.w	%r12,0x00000001		; 1
	ld.w	%r13,%r12
	xcall	iset_flg

	.loc	115
; APP
	popn %r15
; NO_APP

	.loc	116
; APP
	reti
; NO_APP

	.loc	117
	.def	bend,	scl	110,	type	0x0,	endef
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	get_adjust_point,	val	get_adjust_point,	scl	2,	type	0x21,	endef
	.global	get_adjust_point

	.loc	126
	.def	ent,	scl	101,	type	0x0,	endef
get_adjust_point:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0

	.loc	127
	.def	begin,	scl	100,	type	0x0,	endef
	xld.w	%r11,0x00040287		; 262791
	xbset	[%r11],0x0

	.loc	129
	ld.w	%r7,0x0
	xld.w	[times],%r7

	.loc	131
	xld.w	%r5,0x00000063		; 99
	xld.w	%r14,0x000402d1		; 262865
	xld.w	%r6,0x000000fb		; 251
	xld.w	%r13,0x000402d5		; 262869
	xld.w	%r4,0x00040244		; 262724
	xld.w	%r15,0x00040287		; 262791
__L7:

	.loc	133
	.def	begin,	scl	100,	type	0x0,	endef
	.def	i,	val	10,	scl	4,	type	0x4,	endef

	.loc	134
	ld.w	%r10,0x0
__L11:

	.loc	135
; APP
	nop
; NO_APP

	.loc	134
	xadd	%r10,%r10,1
	cmp	%r10,%r5
	xjrle	__L11

	.loc	136
	.def	bend,	scl	110,	type	0x0,	endef

	.loc	140
	;.set	volatile
	xld.ub	%r10,[%r14]
	;.set	novolatile
	and	%r10,%r6
	;.set	volatile
	xld.b	[%r14],%r10
	;.set	novolatile

	.loc	141
	xbclr	[%r13],0x6

	.loc	142
	xbset	[%r14],0x3

	.loc	143
	xbset	[%r13],0x5

	.loc	145
	xld.w	%r11,0x00040243		; 262723
	xld.w	%r10,0x00000009		; 9
	;.set	volatile
	xld.b	[%r11],%r10
	;.set	novolatile

	.loc	146
	xbset	[%r4],0x1

	.loc	150
	xbtst	[%r15],0x0
	xjrne	__L14
	xld.w	%r11,0x00040287		; 262791
__L13:
	xbtst	[%r11],0x0
	xjreq	__L13
__L14:

	.loc	154
	xbset	[%r15],0x0

	.loc	155
	xld.w	%r11,[times]
	ld.w	%r12,%r11
	xsll	%r12,1
	xld.w	%r10,0x00040240		; 262720
	;.set	volatile
	xld.uh	%r10,[%r10]
	;.set	novolatile
	xld.h	[%r12+x_add],%r10

	.loc	156
	xadd	%r11,%r11,1
	xld.w	[times],%r11

	.loc	158
	xcmp	%r11,5
	xjrle	__L7

	.loc	159
	ld.w	%r7,0x0
	xld.w	[times],%r7

	.loc	160
	xld.w	%r5,0x00000063		; 99
	xld.w	%r14,0x000402d1		; 262865
	xld.w	%r6,0x000000f7		; 247
	xld.w	%r13,0x000402d5		; 262869
	xld.w	%r4,0x00040244		; 262724
	xld.w	%r15,0x00040287		; 262791
__L20:

	.loc	164
	.def	begin,	scl	100,	type	0x0,	endef
	.def	i,	val	10,	scl	4,	type	0x4,	endef

	.loc	165
	ld.w	%r10,0x0
__L24:

	.loc	166
; APP
	nop
; NO_APP

	.loc	165
	xadd	%r10,%r10,1
	cmp	%r10,%r5
	xjrle	__L24

	.loc	167
	.def	bend,	scl	110,	type	0x0,	endef

	.loc	170
	;.set	volatile
	xld.ub	%r10,[%r14]
	;.set	novolatile
	and	%r10,%r6
	;.set	volatile
	xld.b	[%r14],%r10
	;.set	novolatile

	.loc	171
	xbclr	[%r13],0x5

	.loc	172
	xbset	[%r14],0x2

	.loc	173
	xbset	[%r13],0x6

	.loc	178
	xld.w	%r10,0x00040243		; 262723
	ld.w	%r7,0x0
	;.set	volatile
	xld.b	[%r10],%r7
	;.set	novolatile

	.loc	179
	xbset	[%r4],0x1

	.loc	181
	xbtst	[%r15],0x0
	xjrne	__L27
	xld.w	%r11,0x00040287		; 262791
__L26:
	xbtst	[%r11],0x0
	xjreq	__L26
__L27:

	.loc	185
	xbset	[%r15],0x0

	.loc	186
	xld.w	%r11,[times]
	ld.w	%r12,%r11
	xsll	%r12,1
	xld.w	%r10,0x00040240		; 262720
	;.set	volatile
	xld.uh	%r10,[%r10]
	;.set	novolatile
	xld.h	[%r12+y_add],%r10

	.loc	187
	xadd	%r11,%r11,1
	xld.w	[times],%r11

	.loc	188
	xcmp	%r11,5
	xjrle	__L20

	.loc	190
	xld.w	%r12,x_add
	xcall	get_avrg
	xld.h	[x_avrg],%r10

	.loc	191
	xld.w	%r12,y_add
	xcall	get_avrg
	xld.h	[y_avrg],%r10

	.loc	194
	xld.w	%r11,0x000402d1		; 262865
	xbclr	[%r11],0x3

	.loc	195
	;.set	volatile
	xld.ub	%r10,[%r11]
	;.set	novolatile
	xoor	%r10,%r10,0x000000f4
	;.set	volatile
	xld.b	[%r11],%r10
	;.set	novolatile

	.loc	196
	xld.w	%r11,0x000402d5		; 262869
	;.set	volatile
	xld.ub	%r10,[%r11]
	;.set	novolatile
	xoor	%r10,%r10,0x00000060
	;.set	volatile
	xld.b	[%r11],%r10
	;.set	novolatile

	.loc	199
	.def	bend,	scl	110,	type	0x0,	endef
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	fnIHL_GetPenPoint,	val	fnIHL_GetPenPoint,	scl	2,	type	0x21,	endef
	.global	fnIHL_GetPenPoint

	.loc	216
	.def	ent,	scl	101,	type	0x0,	endef
fnIHL_GetPenPoint:
;	.frame	%sp,12,$31		# vars= 0, regs= 3/0, args= 0, extra= 0
;	.mask	0x80030000,-4
;	.fmask	0x00000000,0
	pushn	%r1
	ld.w	%r1,%r12
	ld.w	%r0,%r13
	.def	xposition,	val	1,	scl	17,	type	0x1d,	endef
	.def	yposition,	val	0,	scl	17,	type	0x1d,	endef

	.loc	217
	.def	begin,	scl	100,	type	0x0,	endef

	.loc	219
	xcall	get_adjust_point

	.loc	222
	xld.uh	%r10,[x_avrg]

	.loc	223
	xsrl	%r10,2
	xld.ub	%r10,[%r10+x_tp_map]
	xld.h	[%r0],%r10

	.loc	224
	xld.uh	%r10,[y_avrg]

	.loc	225
	xsrl	%r10,1
	xld.ub	%r10,[%r10+y_tp_map]
	xld.h	[%r1],%r10

	.loc	226
	.def	bend,	scl	110,	type	0x0,	endef
	popn	%r1
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.def	times,	val	times,	scl	2,	type	0x4,	endef

	.comm	times 4


	.endfile

⌨️ 快捷键说明

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