Subversion Repositories Kolibri OS

Rev

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

Rev 650 Rev 799
Line 548... Line 548...
548
};
548
};
Line 549... Line 549...
549
 
549
 
550
void delay (int val)
550
void delay (int val)
551
{
551
{
-
 
552
  _asm
552
  _asm
553
 {    
553
 {   mov   eax,5
554
      mov   eax,5
554
      mov   ebx, [val]
555
      mov   ebx, [val]
555
      int   0x40
556
      int   0x40
556
  };  
557
  };  
Line 557... Line 558...
557
}
558
}
558
 
559
 
559
int wait_for_event(int time)
560
int wait_for_event(int time)
-
 
561
{ int retval;
560
{ int retval;
562
  _asm
561
  _asm
563
 {   
562
 {  mov  eax,23
564
     mov  eax,23
563
     mov  ebx,[time]
565
     mov  ebx,[time]
564
     int  0x40
566
     int  0x40
565
     mov [retval], eax
567
     mov [retval], eax
566
 };
568
 };
Line 567... Line 569...
567
 return retval; 
569
 return retval; 
568
}; 
570
}; 
569
 
571
 
-
 
572
int wait_for_event_infinite()
570
int wait_for_event_infinite()
573
{ int retval;
571
{ int retval;
574
  _asm
572
  _asm
575
  {   
573
  {  mov  eax,10
576
      mov  eax,10
574
      int  0x40
577
      int  0x40
575
      mov [retval], eax 
578
      mov [retval], eax 
Line 576... Line 579...
576
  };
579
  };
577
  return retval; 
580
  return retval; 
-
 
581
};
578
};
582
 
579
 
583
void BeginDraw()
580
void BeginDraw()
584
{_asm
581
{_asm
585
 {  
582
 { mov   eax,12
586
    mov   eax,12
Line 583... Line 587...
583
    mov   ebx, 1
587
    mov   ebx, 1
584
    int   0x40
588
    int   0x40
-
 
589
  };  
585
  };  
590
};
586
};
591
 
587
 
592
void EndDraw()
588
void EndDraw()
593
{ _asm
589
{ _asm
594
 {