Subversion Repositories Kolibri OS

Rev

Rev 4631 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. ;------------------------------------------------------------------------------
  2. draw_device_button:
  3.         call    device_detect_f70
  4.         mov     edi,[retrieved_devices_table_counter]
  5.         mov     edx,120
  6.         mov     bx,[left_panel_x.start_x]
  7.         mov     cx,[left_panel_y.start_y]
  8.         shl     ebx,16
  9.         sub     cx,30
  10.         shl     ecx,16
  11.         mov     cx,12
  12.         mov     esi,0xaa00
  13.         mov     ebp,retrieved_devices_table
  14. ;--------------------------------------
  15. .loop:
  16.         push    esi
  17.         mov     esi,ebp
  18.         cld
  19. @@:
  20.         lodsb
  21.         test    al,al
  22.         jnz     @b
  23.        
  24.         sub     esi,ebp
  25.         lea     esi,[esi*3]
  26.         shl     esi,1
  27.         mov     bx,si
  28.         pop     esi
  29.        
  30.         mcall   8
  31.  
  32.         pusha
  33.         mov     eax,ebx
  34.         inc     eax
  35.         shl     eax,16
  36.         add     ebx,eax
  37.         mov     bx,2
  38.         inc     ecx
  39.         mcall   13,,,0xcccccc
  40.         popa
  41.  
  42.         pusha
  43.         mov     edx,ebp
  44.         inc     edx
  45.         shr     ecx,16
  46.         mov     bx,cx
  47.         add     ebx,4 shl 16
  48.         mcall   4,,0x90000000
  49.         sub     ebx,1 shl 16 + 1
  50.         mcall   ,,0x90ffffff
  51.         popa
  52.  
  53.         mov     eax,ebx
  54.         shl     eax,16
  55.         add     ebx,eax
  56.         add     ebx,3 shl 16
  57.  
  58.         inc     edx
  59.         add     ebp,10
  60.         dec     edi
  61.         jnz     .loop
  62.        
  63.         xor     eax,eax
  64.         mov     ax,[right_panel_x.start_x]
  65.         add     ax,[right_panel_x.size_x]
  66.         ror     ebx,16
  67.         sub     ax,bx
  68.         rol     ebx,16
  69.         inc     ax
  70.         mov     bx,ax
  71.        
  72.         add     ecx,1
  73.         add     ebx,1
  74.         mcall   13,,,0xcccccc
  75.         ret
  76. ;------------------------------------------------------------------------------
  77.