corrected brk and sbrk somewhat
authorceriel <none@none>
Wed, 27 Apr 1988 18:02:59 +0000 (18:02 +0000)
committerceriel <none@none>
Wed, 27 Apr 1988 18:02:59 +0000 (18:02 +0000)
lang/cem/libcc/mon/brk.e
lang/cem/libcc/mon/sbrk.e

index 548cc30..c6a8c3d 100644 (file)
 
  exp $brk
  pro $brk,0
- lal 0
- loi EM_PSIZE
  lpi $ctch
  sig
  lae .1
  sti EM_PSIZE
  loc 0
  ste .2
+ lal 0
+ loi EM_PSIZE
  str 2          ; The - possibly - occurring trap is caught
  lae .1
  loi EM_PSIZE
index 9777c9f..5d54e1b 100644 (file)
@@ -38,7 +38,7 @@
  ste .2
  lol 0
  ads EM_WSIZE  ; this is the new heap pointer, but watch out for overflow!
- dup EM_WSIZE
+ dup EM_PSIZE
  lor 2
  cmp           ; compare with old heap pointer
  zlt *1