compat.s

来自「<B>Digital的Unix操作系统VAX 4.2源码</B>」· S 代码 · 共 42 行

S
42
字号
.data 0	.asciz "	compat.s	4.1	82/05/12	".text	.globl _regs	.globl _psl	.globl _pc	.globl _compat_compat:	.word 0x0000# fixup stack by doing rets from compat and the function# which called it but modifying frame pc's to stay here	moval l0,16(fp)	# fix first return address	retl0:	moval l1,16(fp)	# fix first return address	retl1:	moval l2,16(fp)	# fix next return address	retl2:	movl _psl,4(sp)	movl _pc,(sp)# copy back saved register values	movw _regs,r0	movw _regs+02,r1	movw _regs+04,r2	movw _regs+06,r3	movw _regs+010,r4	movw _regs+012,r5	movw _regs+014,r6# go to compatability mode with rei assuming correct psl is setup	rei	.globl _getregs_getregs:	.word 0# copy registers into known locations for examination or modification	movw r0,_regs	movw r1,_regs+02	movw r2,_regs+04	movw r3,_regs+06	movw r4,_regs+010	movw r5,_regs+012	movw r6,_regs+014	ret

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?