소스 검색

Broader register initialization coverage (#21)

Hikaru Ikuta 3 년 전
부모
커밋
194181a709
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. BIN
      bin/sectorlisp.bin
  2. 2 2
      sectorlisp.S

BIN
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