Chyba pekladace
Radek Benedikt
benedikt
Středa Březen 17 11:36:10 CET 2004
> Ale, chtel bych to zkusit i v jinem prekladaci. Mate nekdo Keil nebo
> Franklin 5.x ? Muzete to zkusit ?
*********** Tady je Keil ***************
C51 COMPILER V5.02, TEST =
23/07/98 21:39:49 PAGE 1 =20
DOS C51 COMPILER V5.02, COMPILATION OF MODULE TEST
NO OBJECT MODULE REQUESTED
COMPILER INVOKED BY: C:\C51\BIN\C51.EXE TEST.C COMPACT CODE =
OPTIMIZE(SIZE)=20
stmt level source
1 #define byte unsigned char
2 #define word unsigned int
3 #define FN_G_WRITE_BLOCK 1
4 =20
5 byte bpFnBuffer[10];
6 =20
7 bit bbDispBlockWrite(byte *bp, word wLen)
8 {
9 1 *(byte *)(bpFnBuffer+0)=3DFN_G_WRITE_BLOCK;
10 1 *(byte **)(bpFnBuffer+1)=3Dbp;
11 1 *(word *)(bpFnBuffer+4)=3DwLen;
12 1 }
*** WARNING 173 IN LINE 12 OF TEST.C: missing return-expression
=0CC51 COMPILER V5.02, TEST =
23/07/98 21:39:49 PAGE 2 =20
ASSEMBLY LISTING OF GENERATED OBJECT CODE
; FUNCTION _bbDispBlockWrite (BEGIN)
;---- Variable 'bp' assigned to Register 'R1/R2/R3' ----
;---- Variable 'wLen' assigned to Register 'R4/R5' ----
; SOURCE LINE # 7
; SOURCE LINE # 8
; SOURCE LINE # 9
0000 7800 R MOV R0,#LOW bpFnBuffer
0002 7401 MOV A,#01H
0004 F2 MOVX @R0,A
; SOURCE LINE # 10
0005 08 INC R0
0006 120000 E LCALL ?C?PSTPDATA
; SOURCE LINE # 11
0009 AF05 MOV R7,AR5
000B 7800 R MOV R0,#LOW bpFnBuffer+04H
000D EC MOV A,R4
000E F2 MOVX @R0,A
000F 08 INC R0
0010 EF MOV A,R7
0011 F2 MOVX @R0,A
; SOURCE LINE # 12
0012 22 RET =20
; FUNCTION _bbDispBlockWrite (END)
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE =3D 19 ----
CONSTANT SIZE =3D ---- ----
XDATA SIZE =3D ---- ----
PDATA SIZE =3D 10 ----
DATA SIZE =3D ---- ----
IDATA SIZE =3D ---- ----
BIT SIZE =3D ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 1 WARNING(S), 0 ERROR(S)
bye, Radek (benedikt@login.cz)
Další informace o konferenci Hw-list