vidconsole.c (39441) | vidconsole.c (39896) |
---|---|
1/* 2 * Copyright (c) 1998 Michael Smith (msmith@freebsd.org) 3 * Copyright (c) 1997 Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp) 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * From Id: probe_keyboard.c,v 1.13 1997/06/09 05:10:55 bde Exp 28 * | 1/* 2 * Copyright (c) 1998 Michael Smith (msmith@freebsd.org) 3 * Copyright (c) 1997 Kazutaka YOKOTA (yokota@zodiac.mech.utsunomiya-u.ac.jp) 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 12 unchanged lines hidden (view full) --- 21 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 22 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * From Id: probe_keyboard.c,v 1.13 1997/06/09 05:10:55 bde Exp 28 * |
29 * $Id: vidconsole.c,v 1.1.1.1 1998/08/21 03:17:41 msmith Exp $ | 29 * $Id: vidconsole.c,v 1.2 1998/09/17 23:52:10 msmith Exp $ |
30 */ 31 32#include <stand.h> 33#include <bootstrap.h> 34#include <btxv86.h> 35#include "libi386.h" 36 37#if KEYBOARD_PROBE --- 54 unchanged lines hidden (view full) --- 92static int 93vidc_getchar(void) 94{ 95 if (vidc_ischar()) { 96 v86.ctl = 0; 97 v86.addr = 0x16; 98 v86.eax = 0x0; 99 v86int(); | 30 */ 31 32#include <stand.h> 33#include <bootstrap.h> 34#include <btxv86.h> 35#include "libi386.h" 36 37#if KEYBOARD_PROBE --- 54 unchanged lines hidden (view full) --- 92static int 93vidc_getchar(void) 94{ 95 if (vidc_ischar()) { 96 v86.ctl = 0; 97 v86.addr = 0x16; 98 v86.eax = 0x0; 99 v86int(); |
100 return(v86.eax); | 100 return(v86.eax & 0xff); |
101 } else { 102 return(-1); 103 } 104} 105 106static int 107vidc_ischar(void) 108{ --- 118 unchanged lines hidden --- | 101 } else { 102 return(-1); 103 } 104} 105 106static int 107vidc_ischar(void) 108{ --- 118 unchanged lines hidden --- |