source: rtems/c/src/lib/libbsp/i386/pc386/console/videoAsm.S @ debbc9e

4.104.115
Last change on this file since debbc9e was 6128a4a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 04/21/04 at 10:43:04

Remove stray white spaces.

  • Property mode set to 100644
File size: 1.5 KB
Line 
1/*
2 * videoAsm.S  - This file contains code for displaying cursor on the console
3 *
4 * Copyright (C) 1998  valette@crf.canon.fr
5 *
6 * This code is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
10 *
11 * This code is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 * Library General Public License for more details.
15 *
16 * You should have received a copy of the GNU Library General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
19 *
20 * $Id$
21 */
22
23        .file "videoAsm.s"
24
25#include <crt.h>
26
27        .text
28        .align 4
29        .globl  wr_cursor       /* Move cursor position */
30
31/*
32 *      void wr_cursor(newPosition, ioBaseAddr)
33 */
34
35wr_cursor:      pushl   %ecx
36                movl    8(%esp), %ecx           /* Get new cursor position */
37                movb    $CC_CURSHIGH, %al       /* Cursor high location */
38                movl    12(%esp), %edx          /* Get IO base address */
39                outb    (%dx)
40                incw    %dx                     /* Program Data register */
41                movb    %ch, %al
42                outb    (%dx)                   /* Update high location cursor */
43                decw    %dx                     /* Program Index Register */
44                movb    $CC_CURSLOW, %al        /* Cursor low location */
45                outb    (%dx)
46                incw    %dx                     /* Program Data Register */
47                movb    %cl, %al
48                outb    (%dx)                   /* Update low location cursor */
49                popl    %ecx
50                ret
Note: See TracBrowser for help on using the repository browser.