- Timestamp:
- 07/10/2017 02:17:49 PM (7 years ago)
- Branches:
- master
- Children:
- 06f6615
- Parents:
- 39a696b
- Location:
- rom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
rom/booter.c
r39a696b rb28a12e 8 8 #define PRINTIT 1 /* define non-zero to get printf output from booter */ 9 9 10 #include "all.h" 11 12 extern int16_t flread(int8_t *buff, int32_t len, FILE *fp); 13 extern int32_t getl(FILE *stream); 14 15 #if PRINTIT 16 extern struct fcb *SnapFCB(struct fcb *fcp); 17 extern int16_t ClusMap(struct fcb *fcp); 18 19 extern int16_t waitcr2(void); 20 #endif 10 #include "rom.h" 21 11 22 12 static FILE *B_file; /* boot file pointer */ -
rom/romp.c
r39a696b rb28a12e 24 24 #define ONEMEG 1 /* 1 if 1024K, 0 if 512K RAM space (Buchla 700) */ 25 25 26 #include " all.h"26 #include "rom.h" 27 27 28 28 /* … … 99 99 /* 100 100 ============================================================================ 101 external functions and forward references102 ============================================================================103 */104 105 extern uint16_t setipl(uint16_t arg);106 107 extern void rjumpto(void *addr);108 extern void halt(void);109 extern void sjumpto(void *addr, void *stack);110 extern void trap15(void);111 extern void xtrap15(void);112 113 #if ON_B700114 extern void hdvini(void);115 extern int16_t booter(int8_t *fn, int32_t textadr);116 extern void vsndpal(int16_t pp[16][3]);117 #endif118 119 /* external variables */120 121 extern int16_t wzcrsh, *crshpc, *crshsp, *crshus, crshst[16];122 123 #if ON_B700124 extern int16_t B_log_s;125 extern int16_t B_dbg_s;126 extern int8_t *B_buf_a;127 extern int16_t _bpbin;128 extern int16_t dfltpal[16][3];129 #endif130 131 extern uint16_t crshsr;132 extern int32_t crshrg[16];133 extern int8_t crshvc[4];134 135 /* forward references */136 137 int16_t cp_dump(void);138 int16_t cp_fill(void);139 int16_t cp_copy(void);140 int16_t cp_null(void);141 int16_t cp_ilev(void);142 int16_t cp_ldmp(void);143 int16_t cp_go(void);144 int16_t cp_read(void);145 int16_t cp_mset(void);146 int16_t cp_rset(void);147 int16_t cp_wset(void);148 int16_t cp_mtst(void);149 int16_t cp_wdmp(void);150 int16_t cp_wfil(void);151 int16_t cp_vrst(void);152 int16_t cp_monc(void);153 int16_t cp_mons(void);154 int16_t cp_monl(void);155 int16_t cp_chek(void);156 157 #if ON_B700158 int16_t cx_dini(void);159 int16_t cx_mlod(void);160 int16_t cp_boot(void);161 int16_t cx_boot(void);162 int16_t cx_adsp(void);163 #endif164 165 int16_t cx_dump(void);166 int16_t cx_fill(void);167 int16_t cx_copy(void);168 int16_t cx_rset(void);169 int16_t cx_load(void);170 int16_t cx_go(void);171 int16_t cx_read(void);172 int16_t cx_help(void);173 void cx_exit(void);174 int16_t cx_writ(void);175 int16_t cx_regs(void);176 int16_t cx_mset(void);177 int16_t cx_bpb(void);178 int16_t cx_wset(void);179 int16_t cx_wdmp(void);180 int16_t cx_wfil(void);181 void cx_rest(void);182 int16_t cx_vrst(void);183 int16_t cx_vreg(void);184 int16_t cx_mon(void);185 int16_t cx_next(void);186 int16_t cx_ilev(void);187 int16_t do_srec(int8_t *line);188 int16_t cx_crsh(void);189 int16_t cx_mtst(void);190 void cx_zap(void);191 int16_t cx_ldmp(void);192 int16_t cx_omap(void);193 int16_t cx_chek(void);194 195 extern int16_t setjmp(struct JMP_BUF *env);196 extern void longjmp(struct JMP_BUF *env, int16_t val);197 extern void tsetup(void);198 199 extern int8_t hs_mtst[];200 201 /*202 203 */204 205 /*206 ============================================================================207 101 error message string definitions 208 102 ============================================================================
Note:
See TracChangeset
for help on using the changeset viewer.