Initialize register cache for robustness

This commit is contained in:
Hikaru Ikuta 2022-01-06 06:58:33 +09:00
parent 162969de42
commit 1136e5752e

View file

@ -55,6 +55,7 @@ begin: mov $0x8000,%sp # uses higher address as stack
main: mov %sp,%cx
mov $'\r',%al
call PutChar
mov %dx,%fs # Clear input lookahead cache
call Read
call EvalPrint
jmp main