Deleted Added
full compact
vidconsole.c (84276) vidconsole.c (84277)
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 * $FreeBSD: head/sys/boot/i386/libi386/vidconsole.c 84276 2001-10-01 11:42:25Z yokota $
29 * $FreeBSD: head/sys/boot/i386/libi386/vidconsole.c 84277 2001-10-01 11:48:02Z yokota $
30 */
31
32#include <stand.h>
33#include <bootstrap.h>
34#include <btxv86.h>
35#include <machine/psl.h>
36#include "libi386.h"
37

--- 265 unchanged lines hidden (view full) ---

303}
304
305/* Clear display from current position to end of screen */
306void
307CD(void)
308{
309
310 get_pos();
30 */
31
32#include <stand.h>
33#include <bootstrap.h>
34#include <btxv86.h>
35#include <machine/psl.h>
36#include "libi386.h"
37

--- 265 unchanged lines hidden (view full) ---

303}
304
305/* Clear display from current position to end of screen */
306void
307CD(void)
308{
309
310 get_pos();
311 if (curx > 0) {
312 v86.ctl = 0;
313 v86.addr = 0x10;
314 v86.eax = 0x0600;
315 v86.ebx = (bg_c << 4) + fg_c;
316 v86.ecx = (cury << 8) + curx;
317 v86.edx = (cury << 8) + 79;
318 v86int();
319 if (++cury > 24) {
320 end_term();
321 return;
322 }
323 }
311 v86.ctl = 0;
312 v86.addr = 0x10;
313 v86.eax = 0x0600;
314 v86.ebx = (bg_c << 4) + fg_c;
324 v86.ctl = 0;
325 v86.addr = 0x10;
326 v86.eax = 0x0600;
327 v86.ebx = (bg_c << 4) + fg_c;
315 v86.ecx = v86.edx;
316 v86.edx = 0x184f;
328 v86.ecx = (cury << 8) + 0;
329 v86.edx = (24 << 8) + 79;
317 v86int();
330 v86int();
318 curx = 0;
319 curs_move(curx, cury);
320 end_term();
321}
322
323/* Absolute cursor move to args[0] rows and args[1] columns
324 * (the coordinates are 1-based).
325 */
326void
327CM(void)

--- 328 unchanged lines hidden ---
331 end_term();
332}
333
334/* Absolute cursor move to args[0] rows and args[1] columns
335 * (the coordinates are 1-based).
336 */
337void
338CM(void)

--- 328 unchanged lines hidden ---