Skip to content

Commit

Permalink
Step harib17a:
Browse files Browse the repository at this point in the history
page 396
  • Loading branch information
M366 committed Aug 14, 2020
1 parent f6d94d5 commit 51f67fd
Show file tree
Hide file tree
Showing 3 changed files with 241 additions and 198 deletions.
14 changes: 13 additions & 1 deletion harib/bootpack.h
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,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 @@ -282,4 +293,5 @@ 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 51f67fd

Please sign in to comment.