- Timestamp:
- 07/14/2017 09:11:47 PM (7 years ago)
- Branches:
- master
- Children:
- aa021e2
- Parents:
- 4810254
- Location:
- rom
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
rom/romp.c
r4810254 r7ecfb7b 3267 3267 */ 3268 3268 3269 void rompbp( int32_t d0, int32_t d1, int32_t d2, int32_t d3, int32_t d4, int32_t d5, int32_t d6, int32_t d7, int8_t *a0, int8_t *a1, int8_t *a2, int8_t *a3, int8_t *a4, int8_t *a5, int8_t *a6, int8_t *a7, uint16_t sr0, uint16_t sr, int8_t *pc)3269 void rompbp(uint32_t d0, ...) 3270 3270 { 3271 3271 register int16_t i; 3272 3272 3273 3273 regptr = (struct regs *)&d0; /* make registers accessable */ 3274 pc -= 2L;/* adjust pc */3274 regptr->reg_pc -= 2L; /* adjust pc */ 3275 3275 3276 3276 if (-1 EQ setipl(iplev)) /* enable interrupts */ … … 3287 3287 regptr->a_reg[7] = ISTACK; /* setup initial stack */ 3288 3288 3289 sr = INITSR;/* setup sr */3290 pc += 2L; /* adjust pc past TRAP 15 */3289 regptr->reg_sr = INITSR; /* setup sr */ 3290 regptr->reg_pc += 2L; /* adjust pc past TRAP 15 */ 3291 3291 3292 3292 } else { /* breakpoint */ … … 3296 3296 showrs(regptr); /* show registers */ 3297 3297 3298 if (bphit() EQ FALSE) /* fixup breakpoints */3299 pc += 2L; /* and maybe the pc */3298 if (bphit() EQ FALSE) /* fixup breakpoints */ 3299 regptr->reg_pc += 2L; /* and maybe the pc */ 3300 3300 3301 3301 } … … 3569 3569 GLCcrc(0, 0); 3570 3570 3571 (int8_t *)BIOS(B_SETV, 47, trap15); /* set ROMP trap vec */3571 BIOS(B_SETV, 47, trap15); /* set ROMP trap vec */ 3572 3572 3573 3573 for (i = 0; i < 128; i++) { … … 3592 3592 progid(); /* identify the program */ 3593 3593 3594 (int8_t *)BIOS(B_SETV, 47, trap15); /* set ROMP trap vec */3594 BIOS(B_SETV, 47, trap15); /* set ROMP trap vec */ 3595 3595 writeln(cmdunit, "\r\n\n"); 3596 3596 -
rom/romp.x
r4810254 r7ecfb7b 164 164 extern void puthn(uint32_t num, int16_t cw, int16_t unit); 165 165 extern void putn(uint32_t num, int16_t cw, int16_t unit); 166 extern void rompbp( int32_t d0, int32_t d1, int32_t d2, int32_t d3, int32_t d4, int32_t d5, int32_t d6, int32_t d7, int8_t *a0, int8_t *a1, int8_t *a2, int8_t *a3, int8_t *a4, int8_t *a5, int8_t *a6, int8_t *a7, uint16_t sr0, uint16_t sr, int8_t *pc);166 extern void rompbp(uint32_t d0, ...); 167 167 extern int16_t setp(void *var, void *deflt); 168 168 extern int16_t setvar(int32_t *var, int32_t deflt);
Note:
See TracChangeset
for help on using the changeset viewer.