Subversion Repositories Kolibri OS

Rev

Rev 8505 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8505 Rev 9960
Line 25... Line 25...
25
void kol_wnd_define(unsigned x, unsigned y, unsigned w, unsigned h, unsigned cs, unsigned b, char *t)
25
void kol_wnd_define(unsigned x, unsigned y, unsigned w, unsigned h, unsigned cs, unsigned b, char *t)
26
{
26
{
27
asm volatile ("int $0x40"::"a"(0), "b"(x*65536+w), "c"(y*65536+h), "d"(cs), "D"(t), "S"(b) );
27
asm volatile ("int $0x40"::"a"(0), "b"(x*65536+w), "c"(y*65536+h), "d"(cs), "D"(t), "S"(b) );
28
}
28
}
Line -... Line 29...
-
 
29
 
-
 
30
void kol_wnd_change(int new_x, int new_y, int new_w, int new_h)
-
 
31
{
-
 
32
    asm volatile("int $0x40" ::"a"(67), "b"(new_x), "c"(new_y), "d"(new_w),"S"(new_h));
-
 
33
}
-
 
34
 
29
 
35
 
30
void kol_event_mask(unsigned e)
36
void kol_event_mask(unsigned e)
31
{
37
{
32
asm volatile ("int $0x40"::"a"(40), "b"(e));
38
asm volatile ("int $0x40"::"a"(40), "b"(e));
Line 135... Line 141...
135
}
141
}
Line 136... Line 142...
136
 
142
 
137
 
143
 
-
 
144
unsigned kol_btn_get()
-
 
145
{
-
 
146
    unsigned val;
-
 
147
    asm volatile(
138
unsigned kol_btn_get()
148
        "int $0x40"
-
 
149
        : "=a"(val)
139
{
150
        : "a"(17));
Line 140... Line 151...
140
asm volatile ("int $0x40"::"a"(17));
151
    return val >> 8;
141
}
152
}