Subversion Repositories Kolibri OS

Rev

Rev 31 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. blit_8_to_32:
  2.     mov esi,virtual_screen_8            ; ESI=src
  3.     mov edi,virtual_screen_32           ; EDI=dst
  4.     mov ecx,WND_SIZE_X*WND_SIZE_Y       ; ECX=size
  5. .blit_next:
  6.     xor eax,eax                         ; EAX=byte to blit
  7.     mov al,[esi]
  8.     shl eax,2
  9.     mov eax,[_palette+eax]
  10.     mov [edi],ax
  11.     shr eax,16
  12.     mov [edi+2],al
  13.     inc esi
  14.     add edi,3
  15.     loop .blit_next
  16.     ret
  17.