Changeset 7258c6a in buchla-68k for rom/booter.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
rom/booter.c
r0292fbb r7258c6a 15 15 #include "biosdefs.h" 16 16 17 extern FILE *fopenb( char *name, char*mode);18 extern int fclose(FILE *ptr);19 extern int fread(char *buffer, unsigned size, int number, FILE *stream);20 extern int flread(char *buff, longlen, FILE *fp);21 extern longgetl(FILE *stream);17 extern FILE *fopenb(int8_t *name, int8_t *mode); 18 extern int16_t fclose(FILE *ptr); 19 extern int16_t fread(int8_t *buffer, uint16_t size, int16_t number, FILE *stream); 20 extern int16_t flread(int8_t *buff, int32_t len, FILE *fp); 21 extern int32_t getl(FILE *stream); 22 22 23 23 #if PRINTIT 24 24 extern struct fcb *SnapFCB(struct fcb *fcp); 25 extern int ClusMap(struct fcb *fcp);25 extern int16_t ClusMap(struct fcb *fcp); 26 26 #endif 27 27 … … 30 30 struct EXFILE B_fhdr; /* executable file header */ 31 31 32 longB_txt_o, /* test origin from file header */32 int32_t B_txt_o, /* test origin from file header */ 33 33 B_dat_o, /* data origin from file header */ 34 34 B_bss_o, /* bss origin from file header */ … … 40 40 B_chk; /* checksum */ 41 41 42 char*B_buf_a; /* boot load address */42 int8_t *B_buf_a; /* boot load address */ 43 43 44 short B_log_s; /* boot log switch */45 short B_dbg_s; /* boot debug switch */44 int16_t B_log_s; /* boot log switch */ 45 int16_t B_dbg_s; /* boot debug switch */ 46 46 47 47 /* … … 56 56 */ 57 57 58 short booter(char *fn, longtextadr)58 int16_t booter(int8_t *fn, int32_t textadr) 59 59 { 60 register longi, bgnbss, endbss;61 register char*cp;60 register int32_t i, bgnbss, endbss; 61 register int8_t *cp; 62 62 #if PRINTIT 63 63 register struct fcb *fcp;
Note:
See TracChangeset
for help on using the changeset viewer.