瀏覽代碼

Broader register initialization coverage (#21)

Hikaru Ikuta 3 年之前
父節點
當前提交
194181a709
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 二進制
      bin/sectorlisp.bin
  2. 2 2
      sectorlisp.S

二進制
bin/sectorlisp.bin


+ 2 - 2
sectorlisp.S

@@ -51,13 +51,13 @@ begin:	mov	$0x8000,%sp			# uses higher address as stack
 	pop	%ss				# errata exists but don't care
 	mov	$2,%bx
 main:	mov	%sp,%cx
+	mov	$'\r',%al
+	call	PutChar				# Call first to initialize %dx
 	call	GetToken
 	call	GetObject
 	call	Eval
 	xchg	%ax,%si
 	call	PrintObject
-	mov	$'\r',%al
-	call	PutChar
 	jmp	main
 
 GetToken:					# GetToken():al, dl is g_look