Skip to content

Commit

Permalink
程序整理
Browse files Browse the repository at this point in the history
  • Loading branch information
yourtion committed May 3, 2016
1 parent 5f79306 commit afac998
Show file tree
Hide file tree
Showing 3 changed files with 245 additions and 205 deletions.
14 changes: 13 additions & 1 deletion 20_day/bootpack.h
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,19 @@ void make_textbox8(struct SHEET *sht, int x0, int y0, int sx, int sy, int c);
void make_wtitle8(unsigned char *buf, int xsize, char *title, char act);

/* console.c */
struct CONSOLE {
struct SHEET *sht;
int cur_x, cur_y, cur_c;
};
void console_task(struct SHEET *sheet, unsigned int memtotal);
int cons_newline(int cursor_y, struct SHEET *sheet);
void cons_putchar(struct CONSOLE *cons, int chr, char move);
void cons_newline(struct CONSOLE *cons);
void cons_runcmd(char *cmdline, struct CONSOLE *cons, int *fat, unsigned int memtotal);
void cmd_mem(struct CONSOLE *cons, unsigned int memtotal);
void cmd_cls(struct CONSOLE *cons);
void cmd_dir(struct CONSOLE *cons);
void cmd_type(struct CONSOLE *cons, int *fat, char *cmdline);
void cmd_hlt(struct CONSOLE *cons, int *fat);

/* file.c */
struct FILEINFO {
Expand All @@ -240,3 +251,4 @@ struct FILEINFO {
};
void file_readfat(int *fat, unsigned char *img);
void file_loadfile(int clustno, int size, char *buf, int *fat, char *img);
struct FILEINFO *file_search(char *name, struct FILEINFO *finfo, int max);
Loading

0 comments on commit afac998

Please sign in to comment.