1: / error	= sbrk(incr);
   2: 
   3: .globl  _sbrk, _brk
   4: .globl  _end, cerror
   5: 
   6: _sbrk:
   7:         mov     r5,-(sp)
   8:         mov     sp,r5
   9:         mov     4(r5),0f
  10:         beq     1f
  11:         add     nd,0f
  12:         sys     0; 9f
  13:         bec     1f
  14:         jmp     cerror
  15: 1:
  16:         mov     nd,r0
  17:         add     4(r5),nd
  18:         mov     (sp)+,r5
  19:         rts     pc
  20: 
  21: / error	= brk(addr)
  22: 
  23: _brk:
  24:         mov     r5,-(sp)
  25:         mov     sp,r5
  26:         mov     4(r5),0f
  27:         sys     0; 9f
  28:         bec     1f
  29:         jmp     cerror
  30: 1:
  31:         mov     4(r5),nd
  32:         clr     r0
  33:         mov     (sp)+,r5
  34:         rts     pc
  35: 
  36: .data
  37: 9:
  38:         sys     break; 0:..
  39: nd:     _end

Defined functions

_brk declared in line 3; defined in line 23; used 7 times
_sbrk declared in line 3; defined in line 6; used 74 times

Defined variables

nd defined in line 39; used 4 times
Last modified: 1982-12-11
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 687
Valid CSS Valid XHTML 1.0 Strict