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

📄 mycommio.asm

📁 这是符合国家一级汉字标准的汉字显示液晶模块程序
💻 ASM
📖 第 1 页 / 共 3 页
字号:
	br	$?L0040						;[INF] 2, 6
??eb00_ErrorRceptionCheck:
?L0041:
; line   584
$DGL	0,13
	mov	a,[hl+2]	; p_bufReception 		;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	mov	a,[hl+3]	; p_bufReception 		;[INF] 2, 6
	incw	ax						;[INF] 1, 4
	mov	[hl+3],a	; p_bufReception 		;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	mov	[hl+2],a	; p_bufReception 		;[INF] 2, 6
; line   586
$DGL	0,15
?L0043:
	mov	a,[hl+1]	; dataLength 			;[INF] 2, 6
	dec	a						;[INF] 2, 4
	xch	a,[hl+1]	; dataLength 			;[INF] 2, 8
	cmp	a,#00H	; 0 					;[INF] 2, 4
	bz	$?L0044						;[INF] 2, 6
; line   587
$DGL	0,16
??bb01_ErrorRceptionCheck:
; line   588
$DGL	0,17
	mov	a,[hl+2]	; p_bufReception 		;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	mov	a,[hl+3]	; p_bufReception 		;[INF] 2, 6
	movw	de,ax						;[INF] 1, 4
	incw	ax						;[INF] 1, 4
	mov	[hl+3],a	; p_bufReception 		;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	mov	[hl+2],a	; p_bufReception 		;[INF] 2, 6
	mov	a,[de]						;[INF] 1, 6
	add	a,[hl]	; chkSum 				;[INF] 1, 6
	mov	[hl],a	; chkSum 				;[INF] 1, 6
??eb01_ErrorRceptionCheck:
	br	$?L0043						;[INF] 2, 6
?L0044:
; line   591
$DGL	0,20
	mov	a,[hl+2]	; p_bufReception 		;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	mov	a,[hl+3]	; p_bufReception 		;[INF] 2, 6
	movw	de,ax						;[INF] 1, 4
	incw	ax						;[INF] 1, 4
	mov	[hl+3],a	; p_bufReception 		;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	mov	[hl+2],a	; p_bufReception 		;[INF] 2, 6
	mov	a,[de]						;[INF] 1, 6
	cmp	a,[hl]	; chkSum 				;[INF] 1, 6
	bz	$?L0045						;[INF] 2, 6
; line   592
$DGL	0,21
??bb02_ErrorRceptionCheck:
; line   593
$DGL	0,22
	movw	bc,#01H	; 1 					;[INF] 3, 6
	br	$?L0040						;[INF] 2, 6
??eb02_ErrorRceptionCheck:
?L0045:
; line   596
$DGL	0,25
	mov	a,[hl+2]	; p_bufReception 		;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	mov	a,[hl+3]	; p_bufReception 		;[INF] 2, 6
	movw	de,ax						;[INF] 1, 4
	mov	a,[de]						;[INF] 1, 6
	cmp	a,#016H	; 22 					;[INF] 2, 4
	bz	$?L0047						;[INF] 2, 6
; line   597
$DGL	0,26
??bb03_ErrorRceptionCheck:
; line   598
$DGL	0,27
	movw	bc,#01H	; 1 					;[INF] 3, 6
	br	$?L0040						;[INF] 2, 6
??eb03_ErrorRceptionCheck:
?L0047:
; line   601
$DGL	0,30
	movw	bc,#00H	; 0 					;[INF] 3, 6
?L0040:
; line   602
$DGL	0,31
??ef_ErrorRceptionCheck:
	pop	ax						;[INF] 1, 6
	pop	ax						;[INF] 1, 6
	pop	hl						;[INF] 1, 6
	ret							;[INF] 1, 6
??ee_ErrorRceptionCheck:
; line   635
_CommReceptionEnabled:
$DGL	1,132
??bf_CommReceptionEnabled:
; line   636
$DGL	0,2
	set1	ASIM00.6					;[INF] 3, 6
; line   638
$DGL	0,4
	clr1	MK0.5						;[INF] 3, 6
; line   640
$DGL	0,6
	clr1	ASIM00.7					;[INF] 3, 6
; line   642
$DGL	0,8
	set1	MK0.6						;[INF] 3, 6
; line   643
$DGL	0,9
??ef_CommReceptionEnabled:
	ret							;[INF] 1, 6
??ee_CommReceptionEnabled:
; line   663
_ByteLengthSelection:
$DGL	1,138
	push	hl						;[INF] 1, 4
	push	ax						;[INF] 1, 4
	movw	ax,#02H						;[INF] 3, 6
	callt	[_@cprep]					;[INF] 1, 8
??bf_ByteLengthSelection:
; line   666
$DGL	0,4
	mov	a,[hl+2]	; ctrlCode 			;[INF] 2, 6
	cmp	a,#08H	; 8 					;[INF] 2, 4
	bz	$?L0057						;[INF] 2, 6
	cmp	a,#06H	; 6 					;[INF] 2, 4
	bz	$?L0056						;[INF] 2, 6
	cmp	a,#05H	; 5 					;[INF] 2, 4
	bz	$?L0055						;[INF] 2, 6
	cmp	a,#04H	; 4 					;[INF] 2, 4
	bnz	$?L0053						;[INF] 2, 6
; line   667
$DGL	0,5
??bb00_ByteLengthSelection:
; line   668
$DGL	0,6
; line   669
$DGL	0,7
	mov	a,#02H	; 2 					;[INF] 3, 6
	mov	[hl+1],a	; byteLength 			;[INF] 2, 6
; line   671
$DGL	0,9
	br	$?L0053						;[INF] 2, 6
; line   673
$DGL	0,11
?L0055:
; line   674
$DGL	0,12
	mov	a,#05H	; 5 					;[INF] 3, 6
	mov	[hl+1],a	; byteLength 			;[INF] 2, 6
; line   676
$DGL	0,14
	br	$?L0053						;[INF] 2, 6
; line   679
$DGL	0,17
?L0056:
; line   680
$DGL	0,18
	mov	a,#06H	; 6 					;[INF] 3, 6
	mov	[hl+1],a	; byteLength 			;[INF] 2, 6
; line   682
$DGL	0,20
	br	$?L0053						;[INF] 2, 6
; line   686
$DGL	0,24
?L0057:
; line   687
$DGL	0,25
	mov	a,!_hanZiByteAmount				;[INF] 3, 8
	mov	[hl+1],a	; byteLength 			;[INF] 2, 6
; line   689
$DGL	0,27
; line   694
$DGL	0,32
; line   696
$DGL	0,34
??eb00_ByteLengthSelection:
; line   698
$DGL	0,36
?L0053:
; line   700
$DGL	0,38
	mov	a,[hl+1]	; byteLength 			;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	xor	a,a						;[INF] 2, 4
	movw	bc,ax						;[INF] 1, 4
; line   701
$DGL	0,39
??ef_ByteLengthSelection:
	pop	ax						;[INF] 1, 6
	pop	ax						;[INF] 1, 6
	pop	hl						;[INF] 1, 6
	ret							;[INF] 1, 6
??ee_ByteLengthSelection:
; line   721
_CheckSumTransmit:
$DGL	1,150
	push	hl						;[INF] 1, 4
	push	ax						;[INF] 1, 4
	movw	ax,#04H						;[INF] 3, 6
	callt	[_@cprep]					;[INF] 1, 8
??bf_CheckSumTransmit:
; line   722
$DGL	0,2
	xor	a,a						;[INF] 2, 4
	mov	[hl+3],a	; transSum 			;[INF] 2, 6
; line   724
$DGL	0,4
	movw	ax,#_g_bufTransmit				;[INF] 3, 6
	mov	[hl+2],a	; p_bufTrans 			;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	mov	[hl+1],a	; p_bufTrans 			;[INF] 2, 6
; line   726
$DGL	0,6
	mov	a,[hl+4]	; ctlCde 			;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	xor	a,a						;[INF] 2, 4
	call	!_ByteLengthSelection				;[INF] 3, 6
	mov	a,c						;[INF] 2, 4
	add	a,#03H	; 3 					;[INF] 2, 4
	mov	[hl],a	; transLen 				;[INF] 1, 6
; line   728
$DGL	0,8
?L0061:
	mov	a,[hl]	; transLen 				;[INF] 1, 6
	dec	a						;[INF] 2, 4
	xch	a,[hl]	; transLen 				;[INF] 1, 8
	cmp	a,#00H	; 0 					;[INF] 2, 4
	bz	$?L0062						;[INF] 2, 6
; line   729
$DGL	0,9
??bb00_CheckSumTransmit:
; line   730
$DGL	0,10
	mov	a,[hl+1]	; p_bufTrans 			;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	mov	a,[hl+2]	; p_bufTrans 			;[INF] 2, 6
	movw	de,ax						;[INF] 1, 4
	incw	ax						;[INF] 1, 4
	mov	[hl+2],a	; p_bufTrans 			;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	mov	[hl+1],a	; p_bufTrans 			;[INF] 2, 6
	mov	a,[de]						;[INF] 1, 6
	add	a,[hl+3]	; transSum 			;[INF] 2, 6
	mov	[hl+3],a	; transSum 			;[INF] 2, 6
??eb00_CheckSumTransmit:
	br	$?L0061						;[INF] 2, 6
?L0062:
; line   733
$DGL	0,13
	mov	a,[hl+3]	; transSum 			;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	xor	a,a						;[INF] 2, 4
	movw	bc,ax						;[INF] 1, 4
; line   734
$DGL	0,14
??ef_CheckSumTransmit:
	pop	ax						;[INF] 1, 6
	pop	ax						;[INF] 1, 6
	pop	ax						;[INF] 1, 6
	pop	hl						;[INF] 1, 6
	ret							;[INF] 1, 6
??ee_CheckSumTransmit:
; line   754
_Inter_TM0:
$DGL	1,164
	push	ax						;[INF] 1, 4
	push	bc						;[INF] 1, 4
	push	de						;[INF] 1, 4
	movw	ax,_@RTARG0					;[INF] 2, 6
	push	ax						;[INF] 1, 4
	movw	ax,_@RTARG2					;[INF] 2, 6
	push	ax						;[INF] 1, 4
	movw	ax,_@RTARG4					;[INF] 2, 6
	push	ax						;[INF] 1, 4
	movw	ax,_@RTARG6					;[INF] 2, 6
	push	ax						;[INF] 1, 4
??bf_Inter_TM0:
; line   755
$DGL	0,2
	bf	_g_btWait20ms,$?L0067				;[INF] 4,10
; line   756
$DGL	0,3
??bb00_Inter_TM0:
; line   757
$DGL	0,4
	inc	_s_g_transRec500msCnt				;[INF] 2, 4
; line   759
$DGL	0,6
	cmp	_s_g_transRec500msCnt,#0AH	; 10 		;[INF] 3, 6
	bc	$?L0067						;[INF] 2, 6
; line   760
$DGL	0,7
??bb01_Inter_TM0:
; line   761
$DGL	0,8
	clr1	_g_btWait20ms					;[INF] 3, 6
; line   763
$DGL	0,10
	set1	_g_btReceptionEnd				;[INF] 3, 6
??eb01_Inter_TM0:
?L0067:
??eb00_Inter_TM0:
; line   767
$DGL	0,14
	bf	_btReception500msOn,$?L0071			;[INF] 4,10
; line   768
$DGL	0,15
??bb02_Inter_TM0:
; line   769
$DGL	0,16
	inc	_s_g_transRec500msCnt				;[INF] 2, 4
; line   771
$DGL	0,18
	cmp	_s_g_transRec500msCnt,#0C8H	; 200 		;[INF] 3, 6
	bc	$?L0071						;[INF] 2, 6
; line   772
$DGL	0,19
??bb03_Inter_TM0:
; line   773
$DGL	0,20
	mov	_s_g_transRec500msCnt,#00H	; 0 		;[INF] 3, 6
; line   775
$DGL	0,22
	clr1	_btReception500msOn				;[INF] 3, 6
; line   777
$DGL	0,24
	call	!_CommReceptionEnabled				;[INF] 3, 6
??eb03_Inter_TM0:
?L0071:
??eb02_Inter_TM0:
; line   782
$DGL	0,29
??ef_Inter_TM0:
	pop	ax						;[INF] 1, 6
	movw	_@RTARG6,ax					;[INF] 2, 8
	pop	ax						;[INF] 1, 6
	movw	_@RTARG4,ax					;[INF] 2, 8
	pop	ax						;[INF] 1, 6
	movw	_@RTARG2,ax					;[INF] 2, 8
	pop	ax						;[INF] 1, 6
	movw	_@RTARG0,ax					;[INF] 2, 8
	pop	de						;[INF] 1, 6
	pop	bc						;[INF] 1, 6
	pop	ax						;[INF] 1, 6
	reti							;[INF] 1, 8
??ee_Inter_TM0:
; line   786
_ClearTransmitBuf:
$DGL	1,186
	push	hl						;[INF] 1, 4
	movw	ax,#02H						;[INF] 3, 6
	callt	[_@cprep]					;[INF] 1, 8
??bf_ClearTransmitBuf:
; line   789
$DGL	0,4
	xor	a,a						;[INF] 2, 4
	mov	[hl+1],a	; j 				;[INF] 2, 6
?L0075:
	mov	a,[hl+1]	; j 				;[INF] 2, 6
	cmp	a,#032H	; 50 					;[INF] 2, 4
	bnc	$?L0076						;[INF] 2, 6
; line   790
$DGL	0,5
??bb00_ClearTransmitBuf:
; line   791
$DGL	0,6
	xch	a,x						;[INF] 1, 4
	xor	a,a						;[INF] 2, 4
	addw	ax,#_g_bufTransmit				;[INF] 3, 6
	movw	de,ax						;[INF] 1, 4
	xor	a,a						;[INF] 2, 4
	mov	[de],a						;[INF] 1, 6
??eb00_ClearTransmitBuf:
; line   792
$DGL	0,7
	mov	a,[hl+1]	; j 				;[INF] 2, 6
	inc	a						;[INF] 2, 4
	xch	a,[hl+1]	; j 				;[INF] 2, 8
	br	$?L0075						;[INF] 2, 6
?L0076:
; line   793
$DGL	0,8
??ef_ClearTransmitBuf:
	pop	ax						;[INF] 1, 6
	pop	hl						;[INF] 1, 6
	ret							;[INF] 1, 6
??ee_ClearTransmitBuf:
; line   797
_ClearReceptionBuf:
$DGL	1,197
	push	hl						;[INF] 1, 4
	movw	ax,#02H						;[INF] 3, 6
	callt	[_@cprep]					;[INF] 1, 8
??bf_ClearReceptionBuf:
; line   800
$DGL	0,4
	xor	a,a						;[INF] 2, 4
	mov	[hl+1],a	; i 				;[INF] 2, 6
?L0080:
	mov	a,[hl+1]	; i 				;[INF] 2, 6
	inc	a						;[INF] 2, 4
	xch	a,[hl+1]	; i 				;[INF] 2, 8
	cmp	a,#00H	; 0 					;[INF] 2, 4
	bz	$?L0081						;[INF] 2, 6
; line   801
$DGL	0,5
??bb00_ClearReceptionBuf:
; line   802
$DGL	0,6
	mov	a,[hl+1]	; i 				;[INF] 2, 6
	xch	a,x						;[INF] 1, 4
	xor	a,a						;[INF] 2, 4
	addw	ax,#_g_bufReception				;[INF] 3, 6
	movw	de,ax						;[INF] 1, 4
	xor	a,a						;[INF] 2, 4
	mov	[de],a						;[INF] 1, 6
??eb00_ClearReceptionBuf:
; line   803
$DGL	0,7
	mov	a,[hl+1]	; i 				;[INF] 2, 6
	cmp	a,#032H	; 50 					;[INF] 2, 4
	mov	a,#01H	; 1 					;[INF] 3, 6
	bc	$?L0080						;[INF] 2, 6
	dec	a						;[INF] 2, 4
	br	$?L0080						;[INF] 2, 6
?L0081:
; line   804
$DGL	0,8
??ef_ClearReceptionBuf:
	pop	ax						;[INF] 1, 6
	pop	hl						;[INF] 1, 6
	ret							;[INF] 1, 6
??ee_ClearReceptionBuf:

@@VECT0E	CSEG	AT    000EH
_@vect0e:
	DW	_Inter_SR
_@vect10:
	DW	_Inter_ST

@@VECT16	CSEG	AT    0016H
_@vect16:
	DW	_Inter_TM0
	END


; *** Code Information ***
;
; $FILE E:\InProgSum\MyCommIO.c
;
; $FUNC InitializeCom(181)
;	void=(void)
;	CODE SIZE= 65 bytes, CLOCK_SIZE= 142 clocks, STACK_SIZE= 2 bytes
;
; $CALL ClearTransmitBuf(223)
;	void=(void)
;
; $CALL ClearReceptionBuf(226)
;	void=(void)
;
; $FUNC SetDataTransmitBuffer(249)
;	void=(unsigned char ctlCode:x)
;	CODE SIZE= 227 bytes, CLOCK_SIZE= 732 clocks, STACK_SIZE= 10 bytes
;
; $CALL ClearTransmitBuf(257)
;	void=(void)
;
; $CALL ByteLengthSelection(267)
;	bc=(int:ax)
;
; $CALL CheckSumTransmit(276)
;	bc=(int:ax)
;
; $CALL ByteLengthSelection(291)
;	bc=(int:ax)
;
; $CALL CheckSumTransmit(293)
;	bc=(int:ax)
;
; $FUNC Inter_ST(336)
;	void=(void)
;	CODE SIZE= 77 bytes, CLOCK_SIZE= 250 clocks, STACK_SIZE= 16 bytes
;
; $CALL ByteLengthSelection(368)
;	bc=(int:ax)
;
; $CALL CommReceptionEnabled(372)
;	void=(void)
;
; $FUNC GetDataFromReception(415)
;	void=(void)
;	CODE SIZE= 78 bytes, CLOCK_SIZE= 220 clocks, STACK_SIZE= 4 bytes
;
; $CALL ErrorRceptionCheck(416)
;	bc=(void)
;
; $FUNC Inter_SR(471)
;	void=(void)
;	CODE SIZE= 169 bytes, CLOCK_SIZE= 494 clocks, STACK_SIZE= 20 bytes
;
; $CALL ClearReceptionBuf(506)
;	void=(void)
;
; $FUNC ErrorRceptionCheck(572)
;	bc=(void)
;	CODE SIZE= 121 bytes, CLOCK_SIZE= 402 clocks, STACK_SIZE= 8 bytes
;
; $FUNC CommReceptionEnabled(635)
;	void=(void)
;	CODE SIZE= 13 bytes, CLOCK_SIZE= 30 clocks, STACK_SIZE= 0 bytes
;
; $FUNC ByteLengthSelection(663)
;	bc=(unsigned char ctrlCode:x)
;	CODE SIZE= 60 bytes, CLOCK_SIZE= 178 clocks, STACK_SIZE= 8 bytes
;
; $FUNC CheckSumTransmit(721)
;	bc=(unsigned char ctlCde:x)
;	CODE SIZE= 69 bytes, CLOCK_SIZE= 228 clocks, STACK_SIZE= 10 bytes
;
; $CALL ByteLengthSelection(726)
;	bc=(int:ax)
;
; $FUNC Inter_TM0(754)
;	void=(void)
;	CODE SIZE= 68 bytes, CLOCK_SIZE= 216 clocks, STACK_SIZE= 16 bytes
;
; $CALL CommReceptionEnabled(777)
;	void=(void)
;
; $FUNC ClearTransmitBuf(786)
;	void=(void)
;	CODE SIZE= 36 bytes, CLOCK_SIZE= 114 clocks, STACK_SIZE= 6 bytes
;
; $FUNC ClearReceptionBuf(797)
;	void=(void)
;	CODE SIZE= 47 bytes, CLOCK_SIZE= 140 clocks, STACK_SIZE= 6 bytes

; Target chip : uPD78F9418
; Device file : V1.02 

⌨️ 快捷键说明

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