Fix residual use of DX:AX in the KEYMAP command
authorH. Peter Anvin <hpa@zytor.com>
Sun, 13 Jul 2008 23:08:44 +0000 (16:08 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Sun, 13 Jul 2008 23:08:44 +0000 (16:08 -0700)
The KEYMAP command still expected length in DX:AX, and so got broken.

core/conio.inc

index ddd8ccf..47154cd 100644 (file)
 ;;
 
 ;
-; loadkeys:    Load a LILO-style keymap; SI and DX:AX set by searchdir
+; loadkeys:    Load a LILO-style keymap; SI and EAX set by searchdir
 ;
                section .text
 
 loadkeys:
-               and dx,dx                       ; Should be 256 bytes exactly
-               jne loadkeys_ret
-               cmp ax,256
-               jne loadkeys_ret
-
+               cmp eax,256                     ; Should be 256 bytes exactly
                mov bx,trackbuf
                mov cx,1                        ; 1 cluster should be >= 256 bytes
                call getfssec