Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 5664 → Rev 5665

/programs/system/end/light/end.asm
1,10 → 1,7
;
 
; END
; KolibriOS Team 2005-2013
;
; <diamond> note that 'mov al,xx' is shorter than 'mov eax,xx'
; and if we know that high 24 bits of eax are zero, we can use 1st form
; the same about ebx,ecx,edx
; KolibriOS Team 2005-2015
 
fade equ 0
 
use32 ; ¢ª«îç¨âì 32-¡¨â­ë© ०¨¬  áᥬ¡«¥à 
131,7 → 128,7
 
if fade=0
mov al,4
mcall ,<50,110> ,0x800000cc,label7 ;eax=4 - write text
mcall ,<50,120> ,0x800000cc,label7 ;eax=4 - write text
end if
 
mcall 70,rdsave
178,30 → 175,30
movzx ecx,ax
shr eax,17
shl eax,16
lea ebx,[eax-110 shl 16+222]
lea ebx,[eax-165 shl 16+332]
shr ecx,1
shl ecx,16
lea ecx,[ecx-70 shl 16+122]
lea ecx,[ecx-70 shl 16+132]
 
xor eax,eax
mcall , , ,[color1],0x01000000 ;define and draw window
 
mov al,13
mcall ,<0,223> ,<0,123>
mcall ,<1,221>,<1,121>,[color2]
mcall ,<2,220>,<2,120>, [color3]
mcall ,<0,333> ,<0,133>
mcall ,<1,331>,<1,131>,[color2]
mcall ,<2,330>,<2,130>, [color3]
 
mov al,8
mcall ,<16,90> ,<20,27>,4,[color4] ;eax=8 - draw buttons
mcall ,<113,90>, ,2,[color5]
mcall , ,<54,27>,1,[color6]
mcall ,<16,90> , ,3,[color7]
mcall ,<16,144> ,<16,36>,4,[color4] ;eax=8 - draw buttons
mcall ,<170,144>, ,2,[color5]
mcall , ,<62,36>,1,[color6]
mcall ,<16,144> , ,3,[color7]
 
mov al,4
mcall ,<27,24> ,[color8],label2 ;eax=4 - write text
mcall ,<23,58> , ,label3
mcall ,<47,37> , ,label5
mcall ,<41,71> , ,label6
mcall ,<28,19> ,[color8],label2 ;eax=4 - write text
mcall ,<28,65> , ,label3
mcall ,<64,40> ,[color9],label5
mcall ,<64,86> , ,label6
 
push dword check1
call [check_box_draw2]