Subversion Repositories Kolibri OS

Rev

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

Rev 8446 Rev 8452
Line 31... Line 31...
31
void kol_wnd_move(unsigned x, unsigned y)
31
void kol_wnd_move(unsigned x, unsigned y)
32
{
32
{
33
asm volatile ("int $0x40"::"a"(67), "b"(x), "c"(y), "d"(-1), "S"(-1));
33
asm volatile ("int $0x40"::"a"(67), "b"(x), "c"(y), "d"(-1), "S"(-1));
34
}
34
}
Line -... Line 35...
-
 
35
 
-
 
36
void kol_wnd_size(unsigned x, unsigned y)
-
 
37
{
-
 
38
asm volatile ("int $0x40"::"a"(67), "b"(-1), "c"(-1), "d"(x), "S"(y));
Line 35... Line 39...
35
 
39
};
36
 
40
 
37
void kol_event_mask(unsigned e)
41
void kol_event_mask(unsigned e)
38
{
42
{
Line 483... Line 487...
483
	image.d=d;
487
	image.d=d;
484
	asm("int $0x40"::"a"(73),"b"(0),"c"(&image));
488
	asm("int $0x40"::"a"(73),"b"(0),"c"(&image));
Line 485... Line 489...
485
	
489
	
Line 486... Line -...
486
}
-
 
487
 
-
 
488
void kos_move_window(int posx, int posy, int sizex, int sizey)
-
 
489
{
-
 
490
    __asm__ __volatile__(
-
 
491
    "int $0x40"
-
 
492
    ::"a"(67),
-
 
493
      "b"(posx),
-
 
494
      "c"(posy),
-
 
495
      "d"(sizex),
-
 
496
      "S"(sizey));
-
 
497
};
490
}
498
 
491
 
499
void kos_text(int x, int y, int color, const char* text, int len)
492
void kos_text(int x, int y, int color, const char* text, int len)
500
{
493
{
Line 511... Line 504...
511
    
504
    
512
    if(x) *x = v >> 16;
505
    if(x) *x = v >> 16;
513
	if(y) *y = v & 0xFFFF;
506
	if(y) *y = v & 0xFFFF;
Line 514... Line 507...
514
};
507
};
515
 
508
 
516
int kol_get_key()
509
int kos_get_key()
517
{
510
{
518
	unsigned short __ret;
511
	unsigned short __ret;
519
	asm volatile("int $0x40":"=a"(__ret):"0"(2));
512
	asm volatile("int $0x40":"=a"(__ret):"0"(2));