浏览代码

avoid use of BP across video calls

Peter Ferrie 3 年之前
父节点
当前提交
7e8979fa7c
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 二进制
      bin/sectorlisp.bin
  2. 2 2
      sectorlisp.S

二进制
bin/sectorlisp.bin


+ 2 - 2
sectorlisp.S

@@ -60,7 +60,7 @@ GetToken:					# GetToken():al, dl is g_look
 	cmp	$' ',%al
 	jbe	2f
 	stosb
-	xchg	%ax,%bp
+	xchg	%ax,%si
 2:	call	GetChar				# exchanges dx and ax
 	cmp	$' ',%al
 	jbe	1b
@@ -69,7 +69,7 @@ GetToken:					# GetToken():al, dl is g_look
 	cmp	$')',%dl			# dl = g_look
 	ja	1b
 3:	movb	%bh,(%di)			# bh is zero
-	xchg	%bp,%ax
+	xchg	%si,%ax
 	ret
 
 .PrintList: