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

📄 guighl.ps

📁 一款SmartPhone的驱动代码
💻 PS
📖 第 1 页 / 共 5 页
字号:
	ld.w	%r0,%r2
	xsll	%r0,1
	xld.w	[%sp+8],%r0
	xld.w	%r12,[%sp+48]
	xld.w	%r13,[%sp+52]
	xld.w	%r14,[%sp+56]
	ld.w	%r15,%r2
	xcall	GetBox

	.loc	290
	xld.w	[%sp],%r3
	xld.w	[%sp+4],%r1
	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	PutBox

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

	.loc	293
	.def	bend,	scl	110,	type	0x0,	endef
__L59:
	xadd	%sp,%sp,24
	popn	%r3
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	MapColor,	val	MapColor,	scl	3,	type	0x2e,	endef

	.loc	297
	.def	ent,	scl	101,	type	0x0,	endef
MapColor:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	.def	pGC,	val	12,	scl	17,	tag	T_GAL_GraphicContext,	size	164,	type	0x18,	endef
	.def	color,	val	13,	scl	17,	tag	__T2,	size	4,	type	0x18,	endef

	.loc	298
	.def	begin,	scl	100,	type	0x0,	endef
	.def	v,	val	11,	scl	4,	type	0xe,	endef

	.loc	300
	xld.w	%r10,[%r12+20]
	xsub	%r10,%r10,1
	xcmp	%r10,31
	xjrugt	__L62
	xsll	%r10,2
	xld.w	%r10,[%r10+__L83]
	jp	%r10
	.code
	.align	2
__L83:
	.word	__L63
	.word	__L65
	.word	__L62
	.word	__L71
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L78
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L79
	.word	__L80
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L82
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L62
	.word	__L82
	.code
__L63:

	.loc	303
	ld.w	%r11,0x0

	.loc	304
	xld.ub	%r10,[%r13+2]
	xcmp	%r10,128
	xjrule	__L76
	xld.ub	%r10,[%r13+1]
	xcmp	%r10,128
	xjrule	__L76
	xld.ub	%r10,[%r13]
	xcmp	%r10,128
	xjrule	__L76

	.loc	305
	xld.w	%r11,0x00000001		; 1

	.loc	306
	xjp	__L76
__L65:

	.loc	309
	ld.w	%r11,0x0

	.loc	310
	xld.ub	%r10,[%r13+2]
	xcmp	%r10,63
	xjrule	__L66

	.loc	311
	xld.w	%r11,0x00000001		; 1
__L66:

	.loc	312
	xld.ub	%r10,[%r13+1]
	xcmp	%r10,63
	xjrule	__L67

	.loc	313
	xadd	%r11,%r11,2
__L67:

	.loc	314
	xld.ub	%r10,[%r13]
	xcmp	%r10,63
	xjrule	__L68

	.loc	315
	xadd	%r11,%r11,4
__L68:

	.loc	316
	xld.ub	%r10,[%r13+2]
	xcmp	%r10,191
	xjrugt	__L70
	xld.ub	%r10,[%r13+1]
	xcmp	%r10,191
	xjrugt	__L70
	xld.ub	%r10,[%r13]
	xcmp	%r10,191
	xjrule	__L69
__L70:

	.loc	317
	xadd	%r11,%r11,8
__L69:

	.loc	319
	ld.w	%r10,%r11
	xsrl	%r10,2
	xjp	__L85
__L71:

	.loc	323
	ld.w	%r11,0x0

	.loc	324
	xld.ub	%r10,[%r13+2]
	xcmp	%r10,192
	xjrne	__L72
	xld.ub	%r10,[%r13+1]
	xcmp	%r10,192
	xjrne	__L72
	xld.ub	%r10,[%r13]
	xcmp	%r10,192
	xjrne	__L72

	.loc	327
	xld.w	%r10,0x00000008		; 8
	xjp	__L85
__L72:

	.loc	329
	xld.ub	%r10,[%r13+2]
	xcmp	%r10,63
	xjrule	__L73

	.loc	330
	xadd	%r11,%r11,1
__L73:

	.loc	331
	xld.ub	%r10,[%r13+1]
	xcmp	%r10,63
	xjrule	__L74

	.loc	332
	xadd	%r11,%r11,2
__L74:

	.loc	333
	xld.ub	%r10,[%r13]
	xcmp	%r10,63
	xjrule	__L75

	.loc	334
	xadd	%r11,%r11,4
__L75:

	.loc	335
	xld.ub	%r10,[%r13+2]
	xcmp	%r10,191
	xjrugt	__L77
	xld.ub	%r10,[%r13+1]
	xcmp	%r10,191
	xjrugt	__L77
	xld.ub	%r10,[%r13]
	xcmp	%r10,191
	xjrule	__L76
__L77:

	.loc	336
	xadd	%r11,%r11,8
__L76:

	.loc	337
	ld.w	%r10,%r11
	xjp	__L85
__L78:

	.loc	340
	xld.ub	%r10,[%r13]
	xand	%r10,%r10,0x000000e0
	xld.ub	%r11,[%r13+1]
	xand	%r11,%r11,0x000000e0
	xsrl	%r11,3
	or	%r10,%r11
	xld.ub	%r11,[%r13+2]
	xsrl	%r11,6
	or	%r10,%r11
	xjp	__L85
__L79:

	.loc	343
	xld.ub	%r10,[%r13]
	xand	%r10,%r10,0x000000f8
	xsll	%r10,7
	xld.ub	%r11,[%r13+1]
	xand	%r11,%r11,0x000000f8
	xsll	%r11,2
	xjp	__L86
__L80:

	.loc	349
	xld.ub	%r10,[%r13]
	xand	%r10,%r10,0x000000f8
	xsll	%r10,8
	xld.ub	%r11,[%r13+1]
	xand	%r11,%r11,0x000000fc
	xsll	%r11,3
__L86:
	or	%r10,%r11
	xld.ub	%r11,[%r13+2]
	xsrl	%r11,3
	or	%r10,%r11
	xjp	__L85
__L82:

	.loc	354
	xld.ub	%r10,[%r13]
	xsll	%r10,16
	xld.ub	%r11,[%r13+1]
	xsll	%r11,8
	or	%r10,%r11
	xld.ub	%r11,[%r13+2]
	or	%r10,%r11
	xjp	__L85
__L62:

	.loc	356
	xld.w	%r10,-1			; 0xffffffff
__L85:

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

	.loc	360
	.def	ent,	scl	101,	type	0x0,	endef
fnGUI_MemToScreen:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	.def	x1,	val	12,	scl	17,	type	0x4,	endef
	.def	y1,	val	13,	scl	17,	type	0x4,	endef
	.def	x2,	val	14,	scl	17,	type	0x4,	endef
	.def	y2,	val	15,	scl	17,	type	0x4,	endef

	.loc	362
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.align	1
	.def	fnGUI_GetLCDProperty,	val	fnGUI_GetLCDProperty,	scl	2,	type	0x24,	endef
	.global	fnGUI_GetLCDProperty

	.loc	365
	.def	ent,	scl	101,	type	0x0,	endef
fnGUI_GetLCDProperty:
;	.frame	%sp,4,$31		# vars= 0, regs= 1/0, args= 0, extra= 0
;	.mask	0x80000000,-4
;	.fmask	0x00000000,0
	.def	which,	val	12,	scl	17,	type	0x4,	endef

	.loc	366
	xcmp	%r12,1
	xjreq	__L91
	xjrgt	__L95
	cmp	%r12,0x0
	xjreq	__L90
	xjp	__L93
__L95:
	xcmp	%r12,2
	xjreq	__L92
	xjp	__L93
__L90:

	.loc	368
	xld.w	%r10,0x000000b0		; 176
	xjp	__L96
__L91:

	.loc	370
	xld.w	%r10,0x000000f0		; 240
	xjp	__L96
__L92:

	.loc	372
	xld.w	%r10,0x00000010		; 16
	xjp	__L96
__L93:

	.loc	374
	xld.w	%r10,-1			; 0xffffffff
__L96:

	.loc	376
	ret
	.def	end,	scl	111,	type	0x0,	endef
	.global	tGAL_ScrDev
	.data
	.align	2
tGAL_ScrDev:
	.word	176
	.word	240
	.word	16
	.word	1
	.word	InitScrDev
	.word	SetPalette
	.word	GetPalette
	.word	DrawPixel
	.word	ReadPixel
	.word	DrawHLine
	.word	PutHLine
	.word	GetHLine
	.word	DrawVLine
	.word	PutVLine
	.word	GetVLine
	.word	Blit
	.word	PutBox
	.word	GetBox
	.word	PutBoxMask
	.word	CopyBox
	.word	MapColor
	.code
	.def	tpGAL_ScrDev,	val	tpGAL_ScrDev,	scl	2,	tag	T_GAL_ScreenDevice,	size	84,	type	0x18,	endef

	.comm	tpGAL_ScrDev 4
	.def	tGAL_ScrDev,	val	tGAL_ScrDev,	scl	2,	tag	T_GAL_ScreenDevice,	size	84,	type	0x8,	endef


	.endfile

⌨️ 快捷键说明

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