Subversion Repositories HelenOS-historic

Rev

Rev 583 | Rev 586 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 583 Rev 584
Line 71... Line 71...
71
__s32 ski_getchar(void)
71
__s32 ski_getchar(void)
72
{
72
{
73
    __u64 ch;
73
    __u64 ch;
74
   
74
   
75
    __asm__ (
75
    __asm__ (
76
        "mov r15=%0\n"
76
        "mov r15=%1\n"
77
        "break 0x80000;;\n" /* modifies r8 */
77
        "break 0x80000;;\n" /* modifies r8 */
78
        "mov %1=r8;;\n"    
78
        "mov %0=r8;;\n"    
79
 
79
 
80
        :
80
        : "=r" (ch)
81
        : "i" (SKI_GETCHAR), "r" (ch)
81
        : "i" (SKI_GETCHAR)
82
        : "r15",  "r8"
82
        : "r15",  "r8"
83
    );
83
    );
84
 
84
 
85
    return (__s32)ch;
85
    return (__s32) ch;
86
}
86
}
87
 
87
 
88
/** Ask keyboard if a key was pressed. */
88
/** Ask keyboard if a key was pressed. */
89
void poll_keyboard(void)
89
void poll_keyboard(void)
90
{
90
{