19 _lseek (file
, ptr
, dir
)
35 register int n
asm ("r3");
37 asm ("clr.w r1;mov.w %0,r0; mov.w #6,r3; trapa #15": :"g" (n
) : "r3","r1","r0");
43 _write (file
, ptr
, len
)
51 for (todo
= 0; todo
< len
; todo
++)
75 extern char end
; /* Defined by the linker */
76 static char *heap_end
;
83 prev_heap_end
= heap_end
;
84 if (heap_end
+ incr
> stack_ptr
)
86 _write (1, "Heap and stack collision\n", 25);
90 return (caddr_t
) prev_heap_end
;
110 stat
->st_mode
= S_IFCHR
;
128 asm (" mov.w #33,r3; trapa #15");