Subversion Repositories Kolibri OS

Rev

Rev 109 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 109 Rev 485
Line 1... Line 1...
1
include "macros.inc"
1
include "..\..\..\macros.inc"
Line 2... Line 2...
2
 
2
 
3
initipc:
3
initipc:
4
 mov eax,9
4
 mov eax,9
5
 mov ebx,prc
5
 mov ebx,prc
6
 mov ecx,-1
6
 or ecx,-1
Line 7... Line 7...
7
 int 0x40
7
 mcall
8
 
8
 
9
 mov ecx,eax
9
 mov ecx,eax
Line 10... Line 10...
10
loop1:
10
loop1:
11
 push ecx
11
 push ecx
12
 
12
 
Line 13... Line 13...
13
 mov eax,9
13
 mov eax,9
14
 mov ebx,prc
14
 mov ebx,prc
15
 int 0x40
15
 mcall
16
 
16
 
Line 37... Line 37...
37
 mov eax,60
37
 mov eax,60
38
 mov ebx,2
38
 mov ebx,2
39
 mov ecx,dword [cmdpid]
39
 mov ecx,dword [cmdpid]
40
 mov edx,printf
40
 mov edx,printf
41
 mov esi,4
41
 mov esi,4
42
 int 0x40
42
 mcall
Line 43... Line 43...
43
 
43
 
Line 44... Line 44...
44
 call initcmd
44
 call initcmd
45
 
45
 
46
waitcmdinit:
46
waitcmdinit:
47
 mov eax,40
47
 mov eax,40
Line 48... Line 48...
48
 mov ebx,01000000b
48
 mov ebx,01000000b
49
 int 0x40
49
 mcall
50
 
50
 
Line 51... Line 51...
51
 mov eax,23
51
 mov eax,23
52
 mov ebx,100
52
 mov ebx,100
Line 53... Line 53...
53
 int 0x40
53
 mcall
Line 62... Line 62...
62
 jne exit
62
 jne exit
Line 63... Line 63...
63
 
63
 
64
 mov eax,18
64
 mov eax,18
65
 mov ebx,3
65
 mov ebx,3
66
 mov ecx,dword [cmdnumb]
66
 mov ecx,dword [cmdnumb]
Line 67... Line 67...
67
 int 0x40
67
 mcall
Line 68... Line 68...
68
 
68
 
69
 ret
69
 ret
70
 
70
 
71
pause1:
71
pause1:
72
 mov eax,5
72
 mov eax,5
Line 73... Line 73...
73
 mov ebx,1
73
 mov ebx,1
74
 int 0x40
74
 mcall
75
 ret
75
 ret
Line 76... Line 76...
76
 
76
 
77
exit:
77
exit:
78
 mov eax,-1
78
 or eax,-1
79
 int 0x40
79
 mcall
80
 
80
 
81
cls:
81
cls:
82
 mov eax,60
82
 mov eax,60
Line 83... Line 83...
83
 mov ebx,2
83
 mov ebx,2
Line 84... Line 84...
84
 mov ecx,dword [cmdpid]
84
 mov ecx,dword [cmdpid]
Line 118... Line 118...
118
 mov eax,60
118
 mov eax,60
119
 mov ebx,2
119
 mov ebx,2
120
 mov ecx,dword [cmdpid]
120
 mov ecx,dword [cmdpid]
121
 mov edx,stripc
121
 mov edx,stripc
122
 mov esi,84
122
 mov esi,84
123
 int 0x40
123
 mcall
Line 124... Line 124...
124
 
124
 
Line 125... Line 125...
125
 call pause1
125
 call pause1
Line 130... Line 130...
130
 mov eax,60
130
 mov eax,60
131
 mov ebx,2
131
 mov ebx,2
132
 mov ecx,dword [cmdpid]
132
 mov ecx,dword [cmdpid]
133
 mov edx,ipceol
133
 mov edx,ipceol
134
 mov esi,4
134
 mov esi,4
135
 int 0x40
135
 mcall
Line 136... Line 136...
136
 
136
 
Line 137... Line 137...
137
 call pause1
137
 call pause1
Line 142... Line 142...
142
 mov eax,60
142
 mov eax,60
143
 mov ebx,2
143
 mov ebx,2
144
 mov ecx,dword [cmdpid]
144
 mov ecx,dword [cmdpid]
145
 mov edx,ipckey
145
 mov edx,ipckey
146
 mov esi,4
146
 mov esi,4
147
 int 0x40
147
 mcall
Line 148... Line 148...
148
 
148
 
149
 mov eax,60
149
 mov eax,60
150
 mov ebx,1
150
 mov ebx,1
151
 mov ecx,ipcb
151
 mov ecx,ipcb
152
 mov edx,28
152
 mov edx,28
Line 153... Line 153...
153
 int 0x40
153
 mcall
154
 
154
 
155
 cld
155
 cld
156
 mov ecx,28
156
 mov ecx,28
Line 164... Line 164...
164
 call initcmd
164
 call initcmd
Line 165... Line 165...
165
 
165
 
166
waitagain:
166
waitagain:
167
 mov eax,40
167
 mov eax,40
168
 mov ebx,01000000b
168
 mov ebx,01000000b
Line 169... Line 169...
169
 int 0x40
169
 mcall
170
 
170
 
Line 171... Line 171...
171
 mov eax,10
171
 mov eax,10
172
 int 0x40
172
 mcall
Line 173... Line 173...
173
 
173
 
Line 184... Line 184...
184
 mov eax,60
184
 mov eax,60
185
 mov ebx,2
185
 mov ebx,2
186
 mov ecx,dword [cmdpid]
186
 mov ecx,dword [cmdpid]
187
 mov edx,ipcend
187
 mov edx,ipcend
188
 mov esi,4
188
 mov esi,4
189
 int 0x40
189
 mcall
Line 190... Line 190...
190
 
190
 
Line 191... Line 191...
191
 jmp exit
191
 jmp exit
192
 
192