OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [i386/] [pc386/] [console/] [videoAsm.S] - Blame information for rev 30

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 30 unneback
/*
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: videoAsm.S,v 1.2 2001-09-27 11:59:48 chris Exp $
21
 */
22
 
23
        .file "videoAsm.s"
24
 
25
#include 
26
 
27
        .text
28
        .align 4
29
        .globl  wr_cursor       /* Move cursor position */
30
 
31
/*
32
 *      void wr_cursor(newPosition, ioBaseAddr)
33
 */
34
 
35
wr_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
51
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.