一看就知道悲剧发生在哪了:
NAME TEXT2
?PR?_send?TEXT2 SEGMENT CODE
?DT?_send?TEXT2 SEGMENT DATA
?PR?main?TEXT2 SEGMENT CODE
?DT?main?TEXT2 SEGMENT DATA
?C_INITSEG SEGMENT CODE
?DT?TEXT2 SEGMENT DATA
EXTRN CODE (?C_STARTUP)
PUBLIC sendData
PUBLIC main
PUBLIC _send
RSEG ?DT?_send?TEXT2
?_send?BYTE:
sendData?040: DS 1
RSEG ?DT?main?TEXT2
?main?BYTE:
i?141: DS 1
RSEG ?DT?TEXT2
sendData: DS 9
RSEG ?C_INITSEG
DB 009H
DB sendData
DB 031H
DB 032H
DB 033H
DB 034H
DB 035H
DB 061H
DB 06EH
DB 062H
DB 066H
;
; unsigned char sendData[]={'1','2','3','4','5','a','n','b','f'};//¶¨ÒåÒª·¢Ë͵ÄÊý¾Ý
;
; void send(unsigned char sendData) //·¢ËÍÊý¾Ý³ÌÐò
RSEG ?PR?_send?TEXT2
_send:
; SOURCE LINE # 10
MOV sendData?040,R7
; {
; SOURCE LINE # 11
; SBUF=sendData;
; SOURCE LINE # 12
MOV SBUF,sendData?040
?C0001:
; while(TI==0);
; SOURCE LINE # 14
JNB TI,?C0001
?C0002:
; TI=0;
; SOURCE LINE # 15
CLR TI
; } ; SOURCE LINE # 16
?C0003:
RET
; END OF _send
; void main( )
RSEG ?PR?main?TEXT2
main:
USING 0
; {
; char i;
; i=0;
MOV i?141,#00H
?C0006:
; do{ //
; send(sendData);
; SOURCE LINE # 24
MOV R3,#00H
MOV R2,#HIGH (sendData)
MOV R1,#LOW (sendData)
MOV R7,AR1
LCALL _send
; i++;
; SOURCE LINE # 25
INC i?141
; }while(sendData[i-1]!='f') ;
; SOURCE LINE # 26
?C0004:
MOV R7,i?141
MOV A,#LOW (sendData+0FFFFH)
ADD A,R7
MOV R0,A
MOV A,@R0
MOV R7,A
MOV A,R7
CJNE A,#066H,?C0006
?C0005:
;
;
; }
; SOURCE LINE # 29
?C0007:
RET
; END OF main
END
compiling Text2.C...
TEXT2.C(24): warning C214: 'Argument': conversion: pointer to non-pointer
Text2.C - 0 Error(s), 1 Warning(s).
要想让别人关照自己的自尊,首先自己先要有所成就才行。 |