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

📄 guighl.ps

📁 一款SmartPhone的驱动代码
💻 PS
📖 第 1 页 / 共 5 页
字号:
	.def	h,	val	36,	scl	9,	type	0x4,	endef
	.def	buf,	val	40,	scl	9,	type	0x11,	endef
	.def	BufLen,	val	44,	scl	9,	type	0x4,	endef
	.def	h,	val	0,	scl	4,	type	0x4,	endef

	.loc	158
	.def	begin,	scl	100,	type	0x0,	endef
	.def	pData,	val	1,	scl	4,	type	0x12,	endef
	.def	srcwidth,	val	4,	scl	1,	type	0x4,	endef
	.def	pTempAddr,	val	8,	scl	1,	type	0x12,	endef

	.loc	164
	xld.w	%r11,[%r3+68]
	xld.w	[%sp+8],%r11

	.loc	165
	xld.w	%r1,[%sp+40]

	.loc	169
	cmp	%r0,0x0
	xjreq	__L37
	xsll	%r13,1
	xld.w	[%sp+12],%r13
__L38:

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

	.loc	172
	xld.w	%r10,[%r3+24]
	mlt.w	%r2,%r10
	xld.w	%r12,[%sp+8]
	ld.w	%r11,%alr
	add	%r12,%r11
	xld.w	%r11,[%sp+12]
	add	%r12,%r11
	ld.w	%r13,%r1
	xld.w	%r14,[%sp]
	xsll	%r14,1
	xcall	memcpy

	.loc	173
	xld.w	%r11,[%sp+4]
	add	%r1,%r11

	.loc	174
	xsub	%r0,%r0,1

	.loc	175
	xadd	%r2,%r2,1

	.loc	176
	.def	bend,	scl	110,	type	0x0,	endef
	cmp	%r0,0x0
	xjrne	__L38
__L37:

	.loc	183
	.def	bend,	scl	110,	type	0x0,	endef
	xadd	%sp,%sp,16
	popn	%r3
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	GetBox,	val	GetBox,	scl	3,	type	0x21,	endef

	.loc	186
	.def	ent,	scl	101,	type	0x0,	endef
GetBox:
;	.frame	%sp,36,$31		# vars= 16, regs= 5/0, args= 0, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	xsub	%sp,%sp,16
	ld.w	%r3,%r12
	ld.w	%r2,%r14
	xld.w	[%sp],%r15
	xld.w	%r0,[%sp+36]
	xld.w	%r11,[%sp+44]
	xld.w	[%sp+4],%r11
	.def	pGC,	val	3,	scl	17,	tag	T_GAL_GraphicContext,	size	164,	type	0x18,	endef
	.def	x,	val	13,	scl	17,	type	0x4,	endef
	.def	y,	val	2,	scl	17,	type	0x4,	endef
	.def	w,	val	0,	scl	9,	type	0x4,	endef
	.def	h,	val	36,	scl	9,	type	0x4,	endef
	.def	buf,	val	40,	scl	9,	type	0x11,	endef
	.def	BufLen,	val	44,	scl	9,	type	0x4,	endef
	.def	h,	val	0,	scl	4,	type	0x4,	endef

	.loc	187
	.def	begin,	scl	100,	type	0x0,	endef
	.def	pData,	val	1,	scl	4,	type	0x12,	endef
	.def	dstwidth,	val	4,	scl	1,	type	0x4,	endef
	.def	pTempAddr,	val	8,	scl	1,	type	0x12,	endef

	.loc	192
	xld.w	%r11,[%r3+68]
	xld.w	[%sp+8],%r11

	.loc	193
	xld.w	%r1,[%sp+40]

	.loc	195
	cmp	%r0,0x0
	xjreq	__L43
	xsll	%r13,1
	xld.w	[%sp+12],%r13
__L44:

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

	.loc	198
	xld.w	%r10,[%r3+24]
	mlt.w	%r2,%r10
	xld.w	%r13,[%sp+8]
	ld.w	%r11,%alr
	add	%r13,%r11
	ld.w	%r12,%r1
	xld.w	%r11,[%sp+12]
	add	%r13,%r11
	xld.w	%r14,[%sp]
	xsll	%r14,1
	xcall	memcpy

	.loc	199
	xld.w	%r11,[%sp+4]
	add	%r1,%r11

	.loc	200
	xsub	%r0,%r0,1

	.loc	201
	xadd	%r2,%r2,1

	.loc	202
	.def	bend,	scl	110,	type	0x0,	endef
	cmp	%r0,0x0
	xjrne	__L44
__L43:

	.loc	203
	.def	bend,	scl	110,	type	0x0,	endef
	xadd	%sp,%sp,16
	popn	%r3
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	PutBoxMask,	val	PutBoxMask,	scl	3,	type	0x21,	endef

	.loc	215
	.def	ent,	scl	101,	type	0x0,	endef
PutBoxMask:
;	.frame	%sp,28,$31		# vars= 8, regs= 5/0, args= 0, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	xsub	%sp,%sp,8
	ld.w	%r0,%r12
	xld.w	[%sp],%r13
	ld.w	%r3,%r15
	xld.w	%r12,[%sp+28]
	xld.w	%r1,[%sp+40]
	.def	pGC,	val	0,	scl	17,	tag	T_GAL_GraphicContext,	size	164,	type	0x18,	endef
	.def	x,	val	0,	scl	9,	type	0x4,	endef
	.def	y,	val	14,	scl	17,	type	0x4,	endef
	.def	w,	val	3,	scl	17,	type	0x4,	endef
	.def	h,	val	28,	scl	9,	type	0x4,	endef
	.def	buf,	val	32,	scl	9,	type	0x11,	endef
	.def	BufLen,	val	36,	scl	9,	type	0x4,	endef
	.def	cxx,	val	40,	scl	9,	type	0xe,	endef
	.def	h,	val	12,	scl	4,	type	0x4,	endef
	.def	cxx,	val	1,	scl	4,	type	0xe,	endef

	.loc	216
	.def	begin,	scl	100,	type	0x0,	endef
	.def	width,	val	5,	scl	4,	type	0x4,	endef
	.def	dx,	val	7,	scl	4,	type	0x4,	endef
	.def	dstpixel,	val	4,	scl	4,	type	0xd,	endef
	.def	pData,	val	13,	scl	4,	type	0x1c,	endef
	.def	pTemp,	val	6,	scl	4,	type	0x1d,	endef
	.def	srcwidth,	val	4,	scl	1,	type	0x4,	endef
	.def	pTempAddr,	val	15,	scl	4,	type	0x12,	endef

	.loc	220
	xld.w	%r2,[%sp+36]
	xld.w	[%sp+4],%r2

	.loc	224
	xld.w	%r15,[%r0+68]

	.loc	225
	xld.w	%r13,[%sp+32]

	.loc	229
	cmp	%r12,0x0
	xjreq	__L48
__L49:

	.loc	231
	ld.w	%r5,%r3

	.loc	232
	xld.w	%r7,[%sp]

	.loc	233
	ld.w	%r6,%r13

	.loc	234
	cmp	%r5,0x0
	xjreq	__L51
__L52:

	.loc	236
	xld.uh	%r4,[%r6]
	xadd	%r6,%r6,2

	.loc	238
	ld.uh	%r10,%r4
	cmp	%r10,%r1
	xjreq	__L53

	.loc	239
	xld.w	%r10,[%r0+24]
	mlt.w	%r14,%r10
	ld.w	%r10,%r7
	xsll	%r10,1
	ld.w	%r11,%r15
	ld.w	%r2,%alr
	add	%r11,%r2
	add	%r10,%r11
	xld.h	[%r10],%r4
__L53:

	.loc	240
	xsub	%r5,%r5,1

	.loc	241
	xadd	%r7,%r7,1

	.loc	242
	cmp	%r5,0x0
	xjrne	__L52
__L51:

	.loc	243
	xld.w	%r2,[%sp+4]
	add	%r13,%r2

	.loc	244
	xsub	%r12,%r12,1

	.loc	245
	xadd	%r14,%r14,1

	.loc	246
	cmp	%r12,0x0
	xjrne	__L49
__L48:

	.loc	252
	.def	bend,	scl	110,	type	0x0,	endef
	xadd	%sp,%sp,8
	popn	%r3
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	CopyBox,	val	CopyBox,	scl	3,	type	0x21,	endef

	.loc	255
	.def	ent,	scl	101,	type	0x0,	endef
CopyBox:
;	.frame	%sp,44,$31		# vars= 12, regs= 5/0, args= 12, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	xsub	%sp,%sp,24
	xld.w	[%sp+12],%r12
	xld.w	[%sp+16],%r13
	xld.w	[%sp+20],%r14
	ld.w	%r2,%r15
	xld.w	%r3,[%sp+44]
	.def	pGC,	val	12,	scl	9,	tag	T_GAL_GraphicContext,	size	164,	type	0x18,	endef
	.def	x1,	val	16,	scl	9,	type	0x4,	endef
	.def	y1,	val	20,	scl	9,	type	0x4,	endef
	.def	w,	val	2,	scl	17,	type	0x4,	endef
	.def	h,	val	44,	scl	9,	type	0x4,	endef
	.def	x2,	val	48,	scl	9,	type	0x4,	endef
	.def	y2,	val	52,	scl	9,	type	0x4,	endef
	.def	h,	val	3,	scl	4,	type	0x4,	endef

	.loc	256
	.def	begin,	scl	100,	type	0x0,	endef
	.def	size,	val	-1,	scl	4,	type	0x4,	endef
	.def	p,	val	1,	scl	4,	type	0x11,	endef

	.loc	259
	mlt.w	%r2,%r3

	.loc	260
	ld.w	%r12,%alr
	xsll	%r12,1
	xcall	malloc
	ld.w	%r1,%r10

	.loc	261
	cmp	%r1,0x0
	xjreq	__L57

	.loc	264
	xld.w	[%sp],%r3
	xld.w	[%sp+4],%r1
	ld.w	%r0,%r2
	xsll	%r0,1
	xld.w	[%sp+8],%r0
	xld.w	%r12,[%sp+12]
	xld.w	%r13,[%sp+16]
	xld.w	%r14,[%sp+20]
	ld.w	%r15,%r2
	xcall	GetBox

	.loc	265
	xld.w	[%sp],%r3
	xld.w	[%sp+4],%r1
	xld.w	[%sp+8],%r0
	xld.w	%r12,[%sp+12]
	xld.w	%r13,[%sp+48]
	xld.w	%r14,[%sp+52]
	ld.w	%r15,%r2
	xcall	PutBox

	.loc	267
	ld.w	%r12,%r1
	xcall	free

	.loc	268
	.def	bend,	scl	110,	type	0x0,	endef
__L57:
	xadd	%sp,%sp,24
	popn	%r3
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	Blit,	val	Blit,	scl	3,	type	0x21,	endef

	.loc	280
	.def	ent,	scl	101,	type	0x0,	endef
Blit:
;	.frame	%sp,44,$31		# vars= 12, regs= 5/0, args= 12, extra= 0
;	.mask	0x800f0000,-4
;	.fmask	0x00000000,0
	pushn	%r3
	xsub	%sp,%sp,24
	xld.w	[%sp+12],%r12
	xld.w	[%sp+16],%r13
	xld.w	[%sp+20],%r14
	ld.w	%r2,%r15
	xld.w	%r3,[%sp+44]
	.def	DstpGC,	val	12,	scl	9,	tag	T_GAL_GraphicContext,	size	164,	type	0x18,	endef
	.def	DstX,	val	16,	scl	9,	type	0x4,	endef
	.def	DstY,	val	20,	scl	9,	type	0x4,	endef
	.def	w,	val	2,	scl	17,	type	0x4,	endef
	.def	h,	val	44,	scl	9,	type	0x4,	endef
	.def	SrcpGC,	val	48,	scl	9,	tag	T_GAL_GraphicContext,	size	164,	type	0x18,	endef
	.def	SrcX,	val	52,	scl	9,	type	0x4,	endef
	.def	SrcY,	val	56,	scl	9,	type	0x4,	endef
	.def	h,	val	3,	scl	4,	type	0x4,	endef

	.loc	281
	.def	begin,	scl	100,	type	0x0,	endef
	.def	size,	val	-1,	scl	4,	type	0x4,	endef
	.def	p,	val	1,	scl	4,	type	0x11,	endef

	.loc	284
	mlt.w	%r2,%r3

	.loc	285
	ld.w	%r12,%alr
	xsll	%r12,1
	xcall	malloc
	ld.w	%r1,%r10

	.loc	286
	cmp	%r1,0x0
	xjreq	__L59

	.loc	289
	xld.w	[%sp],%r3
	xld.w	[%sp+4],%r1

⌨️ 快捷键说明

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