File:  [Research Unix] / researchv10dc / cmd / pascal / libpc / SETRACE.s
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:21:33 2018 UTC (8 years, 3 months ago) by root
Branches: belllabs, MAIN
CVS tags: researchv10, HEAD
researchv10 Dan Cross

# Copyright (c) 1979 Regents of the University of California
#
# sccsid[] = "@(#)SETRACE.s 1.2 3/18/81";
#
# set trace bit in return frame of calling routine
# this will cause core dump at point of return
# unless running a debugger, in which case a breakpoint
# will occur at the error point
#
	.set	PSW,4
	.set	FP,12

	.globl	_SETRACE
_SETRACE:
	.word	0
	movl	FP(fp),r0	#r0 has ptr to callers frame
	bisl2	$0x10,PSW(r0)	#set trace bit
	ret

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.