--- kernel/console.asm.old Sat Jun 9 00:20:58 2001 +++ kernel/console.asm Sun Jun 10 17:18:31 2001 @@ -166,7 +166,7 @@ jnz ConNdRd2 ; Jump if there's a char waiting mov ah,1 int 16h ; Get status, if zf=0 al=char - jz ConNdRd4 ; Jump if chrar available + jz ConNdRd4 ; Jump if no char available or ax,ax ; Zero ? jnz ConNdRd1 ; Jump if not zero int 16h ; get status, if zf=0 al=char @@ -178,7 +178,7 @@ mov al,CTL_P ConNdRd2: - lds bx,[_ReqPktPtr] ; Set the status + lds bx,[cs:_ReqPktPtr] ; Set the status mov [bx+0Dh],al ConNdRd3: @@ -285,7 +285,7 @@ mov al,CTL_P ConIS2: - lds bx,[_ReqPktPtr] ; Set the status + lds bx,[cs:_ReqPktPtr] ; Set the status mov [bx+0Dh],al ConCharReady: jmp _IOExit ; key ready (busy=0) --- kernel/ioctl.c.old Sun Jun 3 15:16:18 2001 +++ kernel/ioctl.c Mon Jun 4 21:41:48 2001 @@ -312,7 +312,7 @@ case 0x06: if (s->sft_flags & SFT_FDEVICE) { - r->AL = s->sft_flags & SFT_FEOF ? 0 : 0xFF; + r->AL = s->sft_flags & SFT_FEOF ? 0xFF : 0; } else r->AL = s->sft_posit >= s->sft_size ? 0xFF : 0;