# Copyright (c) 1979 Regents of the University of California
# char sccsid[] = "@(#)01int.s 4.1 10/10/80";
movl _display(r0),r6 #r6 has exit dp value
addl3 (r10),ap,r10 #establish return address
cmpl r6,(r9) #check for done
blss egoto #missed the requested frame
pushl (r9) #flush and close local files
movl (r9),sp #deallocate local vars
movl 16(sp),(r9) #restore old display entry
movl 20(sp),r9 #get old display pointer
movl 4(sp),_file #restore old I/O info
movl *(r9),sp #reset sp to top of stack
cmpl *(r9),sp #check stack integrity
cvtbl (r10)+,r11 #update line number
aoblss _stlim,_stcnt,L0104 #update statement count
subl3 r0,sp,r1 #r1 points to new top of stack
clrl tempsize(r1) #check for memory (fault => not available)
movl r1,sp #allocate the memory