Fix READ buffer bug

This commit is contained in:
Hikaru Ikuta 2022-01-06 06:48:37 +09:00
parent 46ba9fee4f
commit 162969de42

View file

@ -117,7 +117,7 @@ EvalPrint:
ret
Read: push %dx
call GetChar
mov %fs,%dx # Get cached character
call GetToken
call GetObject
pop %dx
@ -152,6 +152,7 @@ Intern: push %cx # Intern(cx,di): ax
GetChar:xor %ax,%ax # GetCharal:dl
int $0x16 # get keystroke
mov %ax,%fs # Used for READ
PutChar:mov $0x0e,%ah # prints CP-437
int $0x10 # vidya service
cmp $'\r',%al # don't clobber