Subversion Repositories Kolibri OS

Compare Revisions

No changes between revisions

Regard whitespace Rev 484 → Rev 485

/programs/network/rccs/trunk/macros.inc
File deleted
\ No newline at end of file
Property changes:
Deleted: svn:eol-style
-native
\ No newline at end of property
/programs/network/rccs/trunk/build_en.bat
1,4 → 1,5
@erase lang.inc
@echo lang fix en >lang.inc
@fasm rccs.asm rccs
@erase lang.inc
@pause
/programs/network/rccs/trunk/build_ru.bat
1,4 → 1,5
@erase lang.inc
@echo lang fix ru >lang.inc
@fasm rccs.asm rccs
@erase lang.inc
@pause
/programs/network/rccs/trunk/rccs.asm
25,7 → 25,7
dd 0x0 , 0x0 ; I_Param , I_Icon
include 'lang.inc'
include 'macros.inc'
include '..\..\..\macros.inc'
remote_ip db 192,168,0,1
36,10 → 36,11
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:
46,7 → 47,7
mov eax,23 ; wait here for event
mov ebx,1
int 0x40
mcall
cmp eax,1 ; redraw request ?
jz red
58,7 → 59,7
mov eax,53 ; data from cluster terminal ?
mov ebx,2
mov ecx,[socket]
int 0x40
mcall
cmp eax,0
jne data_arrived
65,13 → 66,9
jmp still
red:
call draw_window
jmp still
key:
mov eax,2
int 0x40
mcall
jmp still
button:
79,9 → 76,9
mov eax,53
mov ebx,1
mov ecx,[socket]
int 0x40
mov eax,-1
int 0x40
mcall
or eax,-1
mcall
data_arrived:
88,7 → 85,7
mov eax,5 ; wait a second for everything to arrive
mov ebx,10
int 0x40
mcall
mov edi,I_END
97,7 → 94,7
mov eax,53
mov ebx,3
mov ecx,[socket]
int 0x40
mcall
mov [edi],bl
inc edi
105,7 → 102,7
mov eax,53
mov ebx,2
mov ecx,[socket]
int 0x40
mcall
cmp eax,0
jne get_data
118,7 → 115,7
mov ecx,0x000000
mov edx,inp_con
mov esi,inp_con.len
int 0x40
mcall
add [y],10
 
jmp still
132,13 → 129,13
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
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
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
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
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
mov ecx,0x000000
mov edx,inp_exit
mov esi,inp_exit.len
int 0x40
mcall
add [y],10
call button
237,7 → 234,7
mov ecx,0x000000
mov edx,inp_com
mov esi,inp_com.len
int 0x40
mcall
add [y],10
 
jmp still
251,41 → 248,26
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
mov eax,12 ; function 12:tell os about windowdraw
mov ebx,2 ; 2, end of draw
int 0x40
mcall
ret
315,8 → 297,7
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