forked from KolibriOS/kolibrios
*kernel - fixes in 15.2 by Mario79 and 67 by mike.dld
updated sysfunc.txt *programs new icons and logo for CPUID and ICON added new version of @ICON and ICONMNGR fixes in iconedit and calendar from DedOK new algoritm of fill background in pic4 all apps (fasm-writen only) rewriten to use common macros.inc for easy recompile in fastcall mode (there is a bug in https; run need rewrite to use common macros.inc) small fixes in build_all.bat script git-svn-id: svn://kolibrios.org@485 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
@@ -25,7 +25,7 @@ use32
|
||||
dd 0x0 , 0x0 ; I_Param , I_Icon
|
||||
|
||||
include 'lang.inc'
|
||||
include 'macros.inc'
|
||||
include '..\..\..\macros.inc'
|
||||
remote_ip db 192,168,0,1
|
||||
|
||||
|
||||
@@ -36,17 +36,18 @@ START: ; start of execution
|
||||
mov ecx, 0x6100 ; local port
|
||||
mov edx, 0x6000 ; remote port
|
||||
mov esi, dword [remote_ip] ; remote IP
|
||||
int 0x40
|
||||
mcall
|
||||
mov [socket],eax
|
||||
mov [0],eax ; save for remote code
|
||||
|
||||
|
||||
red:
|
||||
call draw_window ; at first, draw the window
|
||||
|
||||
still:
|
||||
|
||||
mov eax,23 ; wait here for event
|
||||
mov ebx,1
|
||||
int 0x40
|
||||
mcall
|
||||
|
||||
cmp eax,1 ; redraw request ?
|
||||
jz red
|
||||
@@ -58,20 +59,16 @@ still:
|
||||
mov eax,53 ; data from cluster terminal ?
|
||||
mov ebx,2
|
||||
mov ecx,[socket]
|
||||
int 0x40
|
||||
mcall
|
||||
|
||||
cmp eax,0
|
||||
jne data_arrived
|
||||
|
||||
jmp still
|
||||
|
||||
red:
|
||||
call draw_window
|
||||
jmp still
|
||||
|
||||
key:
|
||||
mov eax,2
|
||||
int 0x40
|
||||
mcall
|
||||
jmp still
|
||||
|
||||
button:
|
||||
@@ -79,16 +76,16 @@ button:
|
||||
mov eax,53
|
||||
mov ebx,1
|
||||
mov ecx,[socket]
|
||||
int 0x40
|
||||
mov eax,-1
|
||||
int 0x40
|
||||
mcall
|
||||
or eax,-1
|
||||
mcall
|
||||
|
||||
|
||||
data_arrived:
|
||||
|
||||
mov eax,5 ; wait a second for everything to arrive
|
||||
mov ebx,10
|
||||
int 0x40
|
||||
mcall
|
||||
|
||||
mov edi,I_END
|
||||
|
||||
@@ -97,7 +94,7 @@ data_arrived:
|
||||
mov eax,53
|
||||
mov ebx,3
|
||||
mov ecx,[socket]
|
||||
int 0x40
|
||||
mcall
|
||||
|
||||
mov [edi],bl
|
||||
inc edi
|
||||
@@ -105,7 +102,7 @@ data_arrived:
|
||||
mov eax,53
|
||||
mov ebx,2
|
||||
mov ecx,[socket]
|
||||
int 0x40
|
||||
mcall
|
||||
|
||||
cmp eax,0
|
||||
jne get_data
|
||||
@@ -118,7 +115,7 @@ data_arrived:
|
||||
mov ecx,0x000000
|
||||
mov edx,inp_con
|
||||
mov esi,inp_con.len
|
||||
int 0x40
|
||||
mcall
|
||||
add [y],10
|
||||
|
||||
jmp still
|
||||
@@ -132,13 +129,13 @@ no_con:
|
||||
mov ecx,0x000000
|
||||
mov edx,inp_shut
|
||||
mov esi,inp_shut.len
|
||||
int 0x40
|
||||
mcall
|
||||
add [y],10
|
||||
|
||||
mov eax,18
|
||||
mov ebx,9
|
||||
mov ecx,2
|
||||
int 0x40
|
||||
mcall
|
||||
|
||||
jmp still
|
||||
|
||||
@@ -151,13 +148,13 @@ no_shut:
|
||||
mov ecx,0x000000
|
||||
mov edx,inp_reb
|
||||
mov esi,inp_reb.len
|
||||
int 0x40
|
||||
mcall
|
||||
add [y],10
|
||||
|
||||
mov eax,18
|
||||
mov ebx,9
|
||||
mov ecx,3
|
||||
int 0x40
|
||||
mcall
|
||||
jmp still
|
||||
|
||||
no_reb:
|
||||
@@ -169,13 +166,13 @@ no_reb:
|
||||
mov ecx,0x000000
|
||||
mov edx,inp_savefi
|
||||
mov esi,inp_savefi.len
|
||||
int 0x40
|
||||
mcall
|
||||
add [y],10
|
||||
|
||||
mov eax,18
|
||||
mov ebx,9
|
||||
mov ecx,1
|
||||
int 0x40
|
||||
mcall
|
||||
jmp still
|
||||
|
||||
no_savefi:
|
||||
@@ -187,13 +184,13 @@ no_savefi:
|
||||
mov ecx,0x000000
|
||||
mov edx,inp_savehi
|
||||
mov esi,inp_savehi.len
|
||||
int 0x40
|
||||
mcall
|
||||
add [y],10
|
||||
|
||||
mov eax,18
|
||||
mov ebx,6
|
||||
mov ecx,2
|
||||
int 0x40
|
||||
mcall
|
||||
|
||||
jmp still
|
||||
|
||||
@@ -206,13 +203,13 @@ no_savehi:
|
||||
mov ecx,0x000000
|
||||
mov edx,inp_hotreb
|
||||
mov esi,inp_hotreb.len
|
||||
int 0x40
|
||||
mcall
|
||||
add [y],10
|
||||
|
||||
mov eax,18
|
||||
mov ebx,9
|
||||
mov ecx,4
|
||||
int 0x40
|
||||
mcall
|
||||
jmp still
|
||||
|
||||
no_hotreb:
|
||||
@@ -224,7 +221,7 @@ no_hotreb:
|
||||
mov ecx,0x000000
|
||||
mov edx,inp_exit
|
||||
mov esi,inp_exit.len
|
||||
int 0x40
|
||||
mcall
|
||||
add [y],10
|
||||
|
||||
call button
|
||||
@@ -237,7 +234,7 @@ no_com:
|
||||
mov ecx,0x000000
|
||||
mov edx,inp_com
|
||||
mov esi,inp_com.len
|
||||
int 0x40
|
||||
mcall
|
||||
add [y],10
|
||||
|
||||
jmp still
|
||||
@@ -251,41 +248,26 @@ draw_window:
|
||||
|
||||
mov eax,12 ; function 12:tell os about windowdraw
|
||||
mov ebx,1 ; 1, start of draw
|
||||
int 0x40
|
||||
mcall
|
||||
|
||||
; DRAW WINDOW
|
||||
mov eax,0 ; function 0 : define and draw window
|
||||
mov ebx,100*65536+300 ; [x start] *65536 + [x size]
|
||||
mov ecx,100*65536+330 ; [y start] *65536 + [y size]
|
||||
mov edx,0x03ffffff ; color of work area RRGGBB
|
||||
mov esi,0x80aabbcc ; color of grab bar RRGGBB,8->color gl
|
||||
mov edi,0x00aabbcc ; color of frames RRGGBB
|
||||
int 0x40
|
||||
mov edx,0x13ffffff ; color of work area RRGGBB
|
||||
mov edi,title ; WINDOW LABEL
|
||||
mcall
|
||||
|
||||
mov eax,8
|
||||
mov ebx,(286-19)*65536+12
|
||||
mov ecx,4*65536+12
|
||||
mov edx,1
|
||||
mov esi,0xaabbcc
|
||||
; int 0x40
|
||||
|
||||
; WINDOW LABEL
|
||||
mov eax,4 ; function 4 : write text to window
|
||||
mov ebx,8*65536+8 ; [x start] *65536 + [y start]
|
||||
mov ecx,0x00ffffff ; color of text RRGGBB
|
||||
mov edx,labeltext ; pointer to text beginning
|
||||
mov esi,lte-labeltext ; text length
|
||||
int 0x40
|
||||
|
||||
; Re-draw the screen text
|
||||
cld
|
||||
mov eax,4
|
||||
mov ebx,10*65536+30 ; draw info text with function 4
|
||||
mov ecx,0x000000
|
||||
mov edx,text
|
||||
mov esi,40
|
||||
newline:
|
||||
mov eax,4
|
||||
int 0x40
|
||||
mcall
|
||||
add ebx,16
|
||||
add edx,40
|
||||
cmp [edx],byte 'x'
|
||||
@@ -294,7 +276,7 @@ draw_window:
|
||||
|
||||
mov eax,12 ; function 12:tell os about windowdraw
|
||||
mov ebx,2 ; 2, end of draw
|
||||
int 0x40
|
||||
mcall
|
||||
|
||||
ret
|
||||
|
||||
@@ -315,8 +297,7 @@ else
|
||||
db 'x' ; <- END MARKER, DONT DELETE
|
||||
end if
|
||||
|
||||
labeltext: db 'Remote Control Center(Server)'
|
||||
lte:
|
||||
title db 'Remote Control Center(Server)',0
|
||||
|
||||
socket dd 0x0
|
||||
y dd 0x10
|
||||
|
Reference in New Issue
Block a user