📄 fat_test.lst
字号:
C51 COMPILER V7.00 FAT_TEST 01/06/2004 00:16:36 PAGE 1
C51 COMPILER V7.00, COMPILATION OF MODULE FAT_TEST
OBJECT MODULE PLACED IN FAT_TEST.OBJ
COMPILER INVOKED BY: F:\Keil\C51\BIN\C51.EXE FAT_TEST.C LARGE BROWSE INTVECTOR(0X8000) DEBUG OBJECTEXTEND TABS(2)
stmt level source
1 /*
2 Copyright (C) 2003 Bart Bilos <boombox666@yahoo.com>.
3
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 as published by the Free Software Foundation; either version 2
7 of the License, or (at your option) any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software Foundation,
16 Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17
18 */
19 #include <Dallas\REG320.H>
20 #include <stdio.h> /* prototype declarations for I/O functions */
21 #include <string.h> /* memory operations */
22 #include "IDE_LIB.h" /* IDE working variables */
23 #include "fat32.h"
24 #include "util.h"
25 #include "timertick.h"
26
27
28
29
30
31
32 void displaydata();
33
34 void init(void){
35 1 inittimer();
36 1 ide_hard_reset();
37 1 ide_init();
38 1 init_fat32();
39 1 initfiles();
40 1 }
41
42 //unsigned int seekfilestart(char * filename
43
44 /*------------------------------------------------\
45 Test program to see if the fat32 is functioning
46 ------------------------------------------------*/
47 void main (void) {
48 1 int handle1,handle2;
49 1 char bufA[100],bufB[100];
50 1 init();
51 1 // displaydata();
52 1 printf("FAT32 TEST PROGRAM \n");
53 1 handle1 = fopen("MSDOS SYS");
54 1 handle2 = fopen("IO SYS");
55 1 fread(handle1,bufA,4);
C51 COMPILER V7.00 FAT_TEST 01/06/2004 00:16:36 PAGE 2
56 1 fread(handle2,bufB,4);
57 1 fread(handle1,bufA,5);
58 1 fread(handle2,bufB,5);
59 1 fclose(handle1);
60 1 fclose(handle2);
61 1 delay(100);
62 1 }
63
64 /*
65 void displaydata() {
66 traverse_dir(traverse_dir(rootdir()));
67 }
68 */
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 176 ----
CONSTANT SIZE = 45 ----
XDATA SIZE = ---- 204
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -