⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 getwd.s

📁 Version 6 Unix 核心源代码 Version 6 Unix 核心源代码
💻 S
字号:
.globl	getword.globl	putword.globl lookword.globl alterword.globl alterchar.globl	putchar.globl	lookchar.globl	w, r, a, l//	routine to put a word onto the string/	mov	...,r1/	mov	...,r0/	jsr	pc,putwordputword:	jsr	pc,putchar	swab	r0	jsr	pc,putchar	swab	r0	rts	pc///	routine to look at a word from the string/	mov	...,r1/	jsr	pc,lookword/	mov	r0,...lookword:	jsr	pc,lookchar	bes	1f	movb	r0,nchar	inc	r(r1)	jsr	pc,lookchar	bes	1f	movb	r0,nchar+1	dec	r(r1)	mov	nchar,r01:	rts	pc///	routine to get a word from the strng/getword:	jsr	pc,lookword	bes	1f	add	$2,r(r1)1:	rts	pc///	routine to alter a word in the string/alterword:	jsr	pc,alterchar	swab	r0	jsr	pc,alterchar	swab	r0 	rts	pcnchar:	.=.+2

⌨️ 快捷键说明

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