Subversion Repositories Kolibri OS

Rev

Rev 6099 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6099 Rev 6346
Line 63... Line 63...
63
{
63
{
64
    __asm__ __volatile__(
64
    __asm__ __volatile__(
65
    "int $0x40" ::"a"(12),"b"(2));
65
    "int $0x40" ::"a"(12),"b"(2));
66
};
66
};
Line -... Line 67...
-
 
67
 
-
 
68
static inline void 
-
 
69
put_image(uint16_t x_coord, uint16_t y_coord,
-
 
70
	  uint16_t size_x, uint16_t size_y, void *img)
-
 
71
{
-
 
72
    __asm__ __volatile__("int $0x40" 
-
 
73
			 ::"a"(25),
-
 
74
			  "b"(img),
-
 
75
			  "c"(size_x<<16 | size_y),
-
 
76
			  "d"(x_coord<<16 | y_coord));
-
 
77
};
-
 
78
 
67
 
79
 
68
static inline
80
static inline
69
void sys_create_window(int x, int y, int w, int h, const char *name,
81
void sys_create_window(int x, int y, int w, int h, const char *name,
70
                       color_t workcolor, uint32_t style)
82
                       color_t workcolor, uint32_t style)
71
{
83
{
Line 217... Line 229...
217
    :"=a"(old)
229
    :"=a"(old)
218
    :"a"(37), "b"(5), "c"(cursor));
230
    :"a"(37), "b"(5), "c"(cursor));
219
    return old;
231
    return old;
220
};
232
};
Line -... Line 233...
-
 
233
 
-
 
234
static inline uint32_t set_wanted_events_mask(uint32_t event_mask)
-
 
235
{
-
 
236
  uint32_t  old_event_mask;
-
 
237
    __asm__ __volatile__(
-
 
238
    "int $0x40"
-
 
239
    :"=a"(old_event_mask)
-
 
240
    :"a"(40));
-
 
241
 
-
 
242
    return old_event_mask;
-
 
243
};
221
 
244
 
222
static inline int destroy_cursor(uint32_t cursor)
245
static inline int destroy_cursor(uint32_t cursor)
223
{
246
{
224
    int ret;
247
    int ret;
225
    __asm__ __volatile__(
248
    __asm__ __volatile__(