Subversion Repositories Kolibri OS

Rev

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

Rev 154 Rev 485
Line 16... Line 16...
16
 dd 0x300000
16
 dd 0x300000
17
 dd 0x7fff0
17
 dd 0x7fff0
18
 dd 0x0
18
 dd 0x0
19
 dd 0x0
19
 dd 0x0
Line 20... Line 20...
20
 
20
 
21
include "macros.inc"
21
include "..\..\..\macros.inc"
22
include "lang.inc"
22
include "lang.inc"
Line 23... Line 23...
23
START:
23
START:
24
 
24
 
Line 31... Line 31...
31
 call cursor
31
 call cursor
Line 32... Line 32...
32
 
32
 
Line 33... Line 33...
33
still:
33
still:
34
 
34
 
Line 35... Line 35...
35
 mov eax,10
35
 mov eax,10
36
 int 0x40
36
 mcall
37
 
37
 
38
 cmp eax,1
38
 cmp eax,1
Line 44... Line 44...
44
 
44
 
Line 45... Line 45...
45
 jmp still
45
 jmp still
46
 
46
 
47
button:
47
button:
Line 48... Line 48...
48
 mov eax,17
48
 mov eax,17
49
 int 0x40
49
 mcall
Line 50... Line 50...
50
 
50
 
Line 82... Line 82...
82
 add ebx,[xpos]
82
 add ebx,[xpos]
83
 mov ecx,0x00ddeeff
83
 mov ecx,0x00ddeeff
84
 mov edx,tic_table
84
 mov edx,tic_table
85
 add edx,dword [linev]
85
 add edx,dword [linev]
86
 mov esi,81
86
 mov esi,81
87
 int 0x40
87
 mcall
88
 add dword [xpos],10
88
 add dword [xpos],10
89
 add dword [linev],81
89
 add dword [linev],81
90
 pop ecx
90
 pop ecx
91
 loop loop1
91
 loop loop1
Line 99... Line 99...
99
no_red:
99
no_red:
100
 ret
100
 ret
Line 101... Line 101...
101
 
101
 
102
key:
102
key:
103
 mov eax,2
103
 mov eax,2
Line 104... Line 104...
104
 int 0x40
104
 mcall
105
 
105
 
Line 106... Line 106...
106
 cmp ah,27
106
 cmp ah,27
Line 285... Line 285...
285
 add ebx,[clr]
285
 add ebx,[clr]
286
 mov ecx,[xpos]
286
 mov ecx,[xpos]
287
 shl ecx,16
287
 shl ecx,16
288
 add ecx,9
288
 add ecx,9
289
 mov edx,0
289
 mov edx,0
290
 int 0x40
290
 mcall
291
 add dword [ypos],6
291
 add dword [ypos],6
292
 ret
292
 ret
Line 293... Line 293...
293
 
293
 
Line 294... Line 294...
294
draw:
294
draw:
295
 
295
 
296
 mov eax,12
296
 mov eax,12
Line 297... Line 297...
297
 mov ebx,1
297
 mov ebx,1
298
 int 0x40
298
 mcall
299
 
299
 
300
 mov eax,0
300
 mov eax,0
301
 mov ebx,100*65536+492
301
 mov ebx,100*65536+492
302
 mov ecx,100*65536+280
302
 mov ecx,100*65536+280
Line 303... Line 303...
303
 mov edx,0x13000000
303
 mov edx,0x13000000
304
 mov edi,title
304
 mov edi,title
305
 int 0x40
305
 mcall
Line 306... Line 306...
306
 
306
 
Line 307... Line 307...
307
 mov eax,12
307
 mov eax,12
308
 mov ebx,2
308
 mov ebx,2
Line 316... Line 316...
316
 shl ebx,16
316
 shl ebx,16
317
 add ebx,[xpos]
317
 add ebx,[xpos]
318
 mov ecx,0x00ddeeff
318
 mov ecx,0x00ddeeff
319
 mov edx,smb
319
 mov edx,smb
320
 mov esi,1
320
 mov esi,1
321
 int 0x40
321
 mcall
Line 322... Line 322...
322
 
322
 
323
 mov edi,tic_table
323
 mov edi,tic_table
324
 add edi,dword [linen]
324
 add edi,dword [linen]
325
 mov esi,smb
325
 mov esi,smb
Line 335... Line 335...
335
 shl ebx,16
335
 shl ebx,16
336
 add ebx,[xpos]
336
 add ebx,[xpos]
337
 mov ecx,0x00ddeeff
337
 mov ecx,0x00ddeeff
338
 mov edx,smb_cursor
338
 mov edx,smb_cursor
339
 mov esi,1
339
 mov esi,1
340
 int 0x40
340
 mcall
Line 341... Line 341...
341
 
341
 
342
 mov edi,tic_table
342
 mov edi,tic_table
343
 mov esi,smb_cursor
343
 mov esi,smb_cursor
344
 add edi,dword [linen]
344
 add edi,dword [linen]
Line 354... Line 354...
354
 shl ebx,16
354
 shl ebx,16
355
 add ebx,[xpos]
355
 add ebx,[xpos]
356
 mov ecx,0x00ddeeff
356
 mov ecx,0x00ddeeff
357
 mov edx,prompt
357
 mov edx,prompt
358
 mov esi,5
358
 mov esi,5
359
 int 0x40
359
 mcall
360
 mov dword [ypos],42
360
 mov dword [ypos],42
Line 361... Line 361...
361
 
361
 
362
 cld
362
 cld
363
 mov ecx,5
363
 mov ecx,5
Line 469... Line 469...
469
	and	dword [dirinfo+4], 0
469
	and	dword [dirinfo+4], 0
470
loopls:
470
loopls:
Line 471... Line 471...
471
 
471
 
472
	mov	eax, 70
472
	mov	eax, 70
473
	mov	ebx, dirinfo
473
	mov	ebx, dirinfo
474
	int	0x40
474
	mcall
475
	inc	dword [dirinfo+4]
475
	inc	dword [dirinfo+4]
476
	cmp	ebx, 1
476
	cmp	ebx, 1
477
	jnz	ls_end
477
	jnz	ls_end
478
	mov	esi, direntry_buffer+32+40
478
	mov	esi, direntry_buffer+32+40
Line 540... Line 540...
540
 shl ebx,16
540
 shl ebx,16
541
 add ebx,[xpos]
541
 add ebx,[xpos]
542
 mov edx,filename
542
 mov edx,filename
543
 mov ecx,0x00ddeeff
543
 mov ecx,0x00ddeeff
544
 mov esi,12
544
 mov esi,12
545
 int 0x40
545
 mcall
Line 546... Line 546...
546
 
546
 
547
 cld
547
 cld
548
 mov ecx,12
548
 mov ecx,12
549
 mov edi,tic_table
549
 mov edi,tic_table
Line 616... Line 616...
616
 mov eax,6
616
 mov eax,6
617
 mov ebx,tic_table+400
617
 mov ebx,tic_table+400
618
 mov ecx,0
618
 mov ecx,0
619
 mov edx,-1
619
 mov edx,-1
620
 mov esi,tic_table+25000
620
 mov esi,tic_table+25000
621
 int 0x40
621
 mcall
Line 622... Line 622...
622
 
622
 
623
 cmp eax,4294967295
623
 cmp eax,4294967295
Line 624... Line 624...
624
 je nosuchfile
624
 je nosuchfile
Line 645... Line 645...
645
 mov eax,6
645
 mov eax,6
646
 mov ebx,tic_table+400
646
 mov ebx,tic_table+400
647
 mov ecx,0
647
 mov ecx,0
648
 mov edx,-1
648
 mov edx,-1
649
 mov esi,tic_table+25000
649
 mov esi,tic_table+25000
650
 int 0x40
650
 mcall
Line 651... Line 651...
651
 
651
 
652
 cmp eax,4294967295
652
 cmp eax,4294967295
Line 653... Line 653...
653
 je nosuchfile
653
 je nosuchfile
Line 665... Line 665...
665
 shl ebx,16
665
 shl ebx,16
666
 add ebx,[xpos]
666
 add ebx,[xpos]
667
 mov edx,tic_table+400
667
 mov edx,tic_table+400
668
 mov esi,12
668
 mov esi,12
669
 mov ecx,0x00ddeeff
669
 mov ecx,0x00ddeeff
670
 int 0x40
670
 mcall
Line 671... Line 671...
671
 
671
 
672
 cld
672
 cld
673
 mov ecx,12
673
 mov ecx,12
674
 mov edi,tic_table
674
 mov edi,tic_table
Line 699... Line 699...
699
 call newline
699
 call newline
Line 700... Line 700...
700
 
700
 
701
 mov eax,9
701
 mov eax,9
702
 mov ebx,tic_table
702
 mov ebx,tic_table
703
 mov ecx,1
703
 mov ecx,1
Line 704... Line 704...
704
 int 0x40
704
 mcall
Line 705... Line 705...
705
 
705
 
706
 mov dword [count2],eax
706
 mov dword [count2],eax
707
 
707
 
708
ll1:
708
ll1:
709
 inc dword [pn]
709
 inc dword [pn]
710
 mov eax,9
710
 mov eax,9
Line 711... Line 711...
711
 mov ebx,tic_table
711
 mov ebx,tic_table
712
 mov ecx,[pn]
712
 mov ecx,[pn]
713
 int 0x40
713
 mcall
714
 
714
 
Line 739... Line 739...
739
 mov ebx,[ypos]
739
 mov ebx,[ypos]
740
 shl ebx,16
740
 shl ebx,16
741
 add ebx,[xpos]
741
 add ebx,[xpos]
742
 mov ecx,0x00ddeeff
742
 mov ecx,0x00ddeeff
743
 mov esi,12
743
 mov esi,12
744
 int 0x40
744
 mcall
Line 745... Line 745...
745
 
745
 
746
 cld
746
 cld
747
 mov ecx,11
747
 mov ecx,11
748
 mov edi,tic_table
748
 mov edi,tic_table
Line 836... Line 836...
836
 shl ebx,16
836
 shl ebx,16
837
 mov edx,[ypos]
837
 mov edx,[ypos]
838
 shl edx,16
838
 shl edx,16
839
 add edx,[xpos]
839
 add edx,[xpos]
840
 mov esi,0x00ddeeff
840
 mov esi,0x00ddeeff
841
 int 0x40
841
 mcall
842
 ret
842
 ret
Line 843... Line 843...
843
 
843
 
844
pause2:
844
pause2:
845
 call newline
845
 call newline
846
 mov edx,mess1
846
 mov edx,mess1
Line 847... Line 847...
847
 call printf
847
 call printf
848
 
848
 
Line 849... Line 849...
849
 mov eax,10
849
 mov eax,10
850
 int 0x40
850
 mcall
851
 
851
 
852
red3:
852
red3:
Line 857... Line 857...
857
 
857
 
858
 call draw
858
 call draw
Line 859... Line 859...
859
 call red
859
 call red
860
 
860
 
861
 mov eax,10
861
 mov eax,10
Line 862... Line 862...
862
 int 0x40
862
 mcall
863
 jmp red3
863
 jmp red3
864
 
864
 
865
back:
865
back:
866
 mov eax,2
866
 mov eax,2
867
 int 0x40
867
 mcall
Line 868... Line 868...
868
 cmp ah,27
868
 cmp ah,27
869
 je checmd
869
 je checmd
870
 ret
870
 ret
Line 871... Line 871...
871
 
871
 
872
exit:
872
exit:
873
 mov eax,-1
873
 mov eax,-1
Line 892... Line 892...
892
 mov ebx,[ypos]
892
 mov ebx,[ypos]
893
 shl ebx,16
893
 shl ebx,16
894
 add ebx,[xpos]
894
 add ebx,[xpos]
895
 mov ecx,0x00ddeeff
895
 mov ecx,0x00ddeeff
896
 mov esi,33
896
 mov esi,33
897
 int 0x40
897
 mcall
Line 898... Line 898...
898
 
898
 
899
 cld
899
 cld
900
 mov ecx,27
900
 mov ecx,27
901
 mov edi,tic_table
901
 mov edi,tic_table
Line 1044... Line 1044...
1044
 mov eax,6
1044
 mov eax,6
1045
 mov ebx,tic_table+9000
1045
 mov ebx,tic_table+9000
1046
 mov ecx,0
1046
 mov ecx,0
1047
 mov edx,-1
1047
 mov edx,-1
1048
 mov esi,tic_table+25000
1048
 mov esi,tic_table+25000
1049
 int 0x40
1049
 mcall
Line 1050... Line 1050...
1050
 
1050
 
1051
 cmp eax,4294967295
1051
 cmp eax,4294967295
Line 1052... Line 1052...
1052
 je nosuchfile
1052
 je nosuchfile
Line 1123... Line 1123...
1123
 mov eax,6
1123
 mov eax,6
1124
 mov ebx,tic_table+9100
1124
 mov ebx,tic_table+9100
1125
 mov ecx,0
1125
 mov ecx,0
1126
 mov edx,-1
1126
 mov edx,-1
1127
 mov esi,tic_table+25000
1127
 mov esi,tic_table+25000
1128
 int 0x40
1128
 mcall
Line 1129... Line 1129...
1129
 
1129
 
1130
 cmp eax,4294967295
1130
 cmp eax,4294967295
Line 1131... Line 1131...
1131
 jne alreadyexist
1131
 jne alreadyexist
1132
 
1132
 
1133
 mov eax,33
1133
 mov eax,33
1134
 mov ebx,tic_table+9100
1134
 mov ebx,tic_table+9100
1135
 mov ecx,tic_table+25000
1135
 mov ecx,tic_table+25000
1136
 mov edx,dword [filesize]
1136
 mov edx,dword [filesize]
Line 1137... Line 1137...
1137
 mov esi,0
1137
 mov esi,0
1138
 int 0x40
1138
 mcall
Line 1139... Line 1139...
1139
 
1139
 
1140
 cmp eax,0
1140
 cmp eax,0
1141
 jne no_ok
1141
 jne no_ok
1142
 
1142
 
1143
 mov eax,6
1143
 mov eax,6
1144
 mov ebx,tic_table+9100
1144
 mov ebx,tic_table+9100
Line 1145... Line 1145...
1145
 mov ecx,0
1145
 mov ecx,0
1146
 mov edx,-1
1146
 mov edx,-1
Line 1147... Line 1147...
1147
 mov esi,tic_table+25000
1147
 mov esi,tic_table+25000
Line 1287... Line 1287...
1287
 mov eax,6
1287
 mov eax,6
1288
 mov ebx,tic_table+9000
1288
 mov ebx,tic_table+9000
1289
 mov ecx,0
1289
 mov ecx,0
1290
 mov edx,-1
1290
 mov edx,-1
1291
 mov esi,tic_table+25000
1291
 mov esi,tic_table+25000
1292
 int 0x40
1292
 mcall
Line 1293... Line 1293...
1293
 
1293
 
1294
 cmp eax,4294967295
1294
 cmp eax,4294967295
Line 1295... Line 1295...
1295
 je nosuchfile
1295
 je nosuchfile
Line 1364... Line 1364...
1364
 mov eax,6
1364
 mov eax,6
1365
 mov ebx,tic_table+9100
1365
 mov ebx,tic_table+9100
1366
 mov ecx,0
1366
 mov ecx,0
1367
 mov edx,-1
1367
 mov edx,-1
1368
 mov esi,tic_table+25000
1368
 mov esi,tic_table+25000
1369
 int 0x40
1369
 mcall
Line 1370... Line 1370...
1370
 
1370
 
1371
 cmp eax,4294967295
1371
 cmp eax,4294967295
Line 1372... Line 1372...
1372
 jne alreadyexist
1372
 jne alreadyexist
1373
 
1373
 
1374
 mov eax,6
1374
 mov eax,6
1375
 mov ebx,tic_table+9000
1375
 mov ebx,tic_table+9000
1376
 mov ecx,0
1376
 mov ecx,0
1377
 mov edx,-1
1377
 mov edx,-1
Line 1378... Line 1378...
1378
 mov esi,tic_table+25000
1378
 mov esi,tic_table+25000
Line 1379... Line 1379...
1379
 int 0x40
1379
 mcall
1380
 
1380
 
1381
 mov dword [filesize],eax
1381
 mov dword [filesize],eax
1382
 
1382
 
1383
 mov eax,33
1383
 mov eax,33
1384
 mov ebx,tic_table+9100
1384
 mov ebx,tic_table+9100
Line 1385... Line 1385...
1385
 mov ecx,tic_table+25000
1385
 mov ecx,tic_table+25000
1386
 mov edx,dword [filesize]
1386
 mov edx,dword [filesize]
Line 1387... Line 1387...
1387
 mov esi,0
1387
 mov esi,0
1388
 int 0x40
1388
 mcall
1389
 
1389
 
1390
 cmp eax,0
1390
 cmp eax,0
1391
 jne no_ok1
1391
 jne no_ok1
1392
 
1392
 
Line 1393... Line 1393...
1393
 mov eax,6
1393
 mov eax,6
1394
 mov ebx,tic_table+9100
1394
 mov ebx,tic_table+9100
Line 1395... Line 1395...
1395
 mov ecx,0
1395
 mov ecx,0
1396
 mov edx,-1
1396
 mov edx,-1
1397
 mov esi,tic_table+25000
1397
 mov esi,tic_table+25000
Line 1398... Line 1398...
1398
 int 0x40
1398
 mcall
1399
 
1399
 
1400
 cmp eax,4294967295
1400
 cmp eax,4294967295
1401
 je no_ok1
1401
 je no_ok1
Line 1502... Line 1502...
1502
 mov eax,6
1502
 mov eax,6
1503
 mov ebx,tic_table+400
1503
 mov ebx,tic_table+400
1504
 mov ecx,0
1504
 mov ecx,0
1505
 mov edx,-1
1505
 mov edx,-1
1506
 mov esi,tic_table+25000
1506
 mov esi,tic_table+25000
1507
 int 0x40
1507
 mcall
Line 1508... Line 1508...
1508
 
1508
 
1509
 cmp eax,4294967295
1509
 cmp eax,4294967295
Line 1510... Line 1510...
1510
 je nosuchfile2
1510
 je nosuchfile2
1511
 
1511
 
1512
 mov eax,32
1512
 mov eax,32
Line 1513... Line 1513...
1513
 mov ebx,tic_table+400
1513
 mov ebx,tic_table+400
1514
 int 0x40
1514
 mcall
1515
 
1515
 
Line 1560... Line 1560...
1560
 mov eax,6
1560
 mov eax,6
1561
 mov ebx,autoexfile
1561
 mov ebx,autoexfile
1562
 mov ecx,0
1562
 mov ecx,0
1563
 mov edx,-1
1563
 mov edx,-1
1564
 mov esi,tic_table+15000
1564
 mov esi,tic_table+15000
1565
 int 0x40
1565
 mcall
Line 1566... Line 1566...
1566
 
1566
 
1567
 cmp eax,4294967295
1567
 cmp eax,4294967295
Line 1568... Line 1568...
1568
 je noaxfile
1568
 je noaxfile
Line 1618... Line 1618...
1618
 mov eax,6
1618
 mov eax,6
1619
 mov ebx,filename
1619
 mov ebx,filename
1620
 mov ecx,0
1620
 mov ecx,0
1621
 mov edx,-1
1621
 mov edx,-1
1622
 mov esi,tic_table+15000
1622
 mov esi,tic_table+15000
1623
 int 0x40
1623
 mcall
Line 1624... Line 1624...
1624
 
1624
 
1625
 cmp eax,4294967295
1625
 cmp eax,4294967295
Line 1626... Line 1626...
1626
 je nosuchfile3
1626
 je nosuchfile3
Line 1753... Line 1753...
1753
 shl ebx,16
1753
 shl ebx,16
1754
 add ebx,[xpos]
1754
 add ebx,[xpos]
1755
 mov ecx,0x00ddeeff
1755
 mov ecx,0x00ddeeff
1756
 mov edx,tic_table+200
1756
 mov edx,tic_table+200
1757
 mov esi,dword [fnumb]
1757
 mov esi,dword [fnumb]
1758
 int 0x40
1758
 mcall
Line 1759... Line 1759...
1759
 
1759
 
Line 1760... Line 1760...
1760
 ret
1760
 ret
1761
 
1761
 
Line 1793... Line 1793...
1793
 add esi,edx
1793
 add esi,edx
1794
 mov ecx,esi
1794
 mov ecx,esi
Line 1795... Line 1795...
1795
 
1795
 
1796
 mov eax,9
1796
 mov eax,9
1797
 mov ebx,tic_table
1797
 mov ebx,tic_table
Line 1798... Line 1798...
1798
 int 0x40
1798
 mcall
1799
 
1799
 
Line 1800... Line 1800...
1800
 cmp eax,ecx
1800
 cmp eax,ecx
1801
 jb nosuchprocess
1801
 jb nosuchprocess
1802
 
1802
 
1803
 mov eax,18
1803
 mov eax,18
Line 1804... Line 1804...
1804
 mov ebx,2
1804
 mov ebx,2
1805
 mov edx,0
1805
 mov edx,0
1806
 int 0x40
1806
 mcall
1807
 
1807
 
Line 1866... Line 1866...
1866
 shl ebx,16
1866
 shl ebx,16
1867
 add ebx,[xpos]
1867
 add ebx,[xpos]
1868
 mov edx,tic_table+300
1868
 mov edx,tic_table+300
1869
 mov ecx,0x00ddeeff
1869
 mov ecx,0x00ddeeff
1870
 mov esi,dword [count]
1870
 mov esi,dword [count]
1871
 int 0x40
1871
 mcall
Line 1872... Line 1872...
1872
 
1872
 
1873
 cld
1873
 cld
1874
 mov ecx,dword [count]
1874
 mov ecx,dword [count]
1875
 mov edi,tic_table
1875
 mov edi,tic_table
Line 1893... Line 1893...
1893
 mov ebx,6
1893
 mov ebx,6
1894
 shl ebx,16
1894
 shl ebx,16
1895
 add ebx,[xpos]
1895
 add ebx,[xpos]
1896
 mov ecx,0x00ddeeff
1896
 mov ecx,0x00ddeeff
1897
 mov esi,45
1897
 mov esi,45
1898
 int 0x40
1898
 mcall
Line 1899... Line 1899...
1899
 
1899
 
1900
 cld
1900
 cld
1901
 mov ecx,45
1901
 mov ecx,45
1902
 mov edi,tic_table
1902
 mov edi,tic_table
Line 1916... Line 1916...
1916
 mov ebx,6
1916
 mov ebx,6
1917
 shl ebx,16
1917
 shl ebx,16
1918
 add ebx,[xpos]
1918
 add ebx,[xpos]
1919
 mov ecx,0x00ddeeff
1919
 mov ecx,0x00ddeeff
1920
 mov esi,79
1920
 mov esi,79
1921
 int 0x40
1921
 mcall
Line 1922... Line 1922...
1922
 
1922
 
1923
 cld
1923
 cld
1924
 mov ecx,79
1924
 mov ecx,79
1925
 mov edi,tic_table
1925
 mov edi,tic_table
Line 2076... Line 2076...
2076
cls1:
2076
cls1:
2077
 mov eax,13
2077
 mov eax,13
2078
 mov ebx,6*65536+483
2078
 mov ebx,6*65536+483
2079
 mov ecx,24*65536+250
2079
 mov ecx,24*65536+250
2080
 mov edx,0
2080
 mov edx,0
2081
 int 0x40
2081
 mcall
2082
 ret
2082
 ret
Line 2083... Line 2083...
2083
 
2083
 
2084
cls2:
2084
cls2:
2085
 mov dword [linen],2000
2085
 mov dword [linen],2000
Line 2288... Line 2288...
2288
 cmp dword [count],8
2288
 cmp dword [count],8
2289
 jne no_shutdown
2289
 jne no_shutdown
Line 2290... Line 2290...
2290
 
2290
 
2291
 mov eax,18
2291
 mov eax,18
2292
 mov ebx,1
2292
 mov ebx,1
Line 2293... Line 2293...
2293
 int 0x40
2293
 mcall
2294
 
2294
 
2295
 mov eax,5
2295
 mov eax,5
Line 2296... Line 2296...
2296
 mov ebx,200
2296
 mov ebx,200
2297
 int 0x40
2297
 mcall
2298
 
2298
 
2299
no_shutdown:
2299
no_shutdown:
Line 2452... Line 2452...
2452
cmd_ok:
2452
cmd_ok:
2453
 mov eax,60
2453
 mov eax,60
2454
 mov ebx,1
2454
 mov ebx,1
2455
 mov ecx,ipcb
2455
 mov ecx,ipcb
2456
 mov edx,118
2456
 mov edx,118
2457
 int 0x40
2457
 mcall
Line 2458... Line 2458...
2458
 
2458
 
Line 2459... Line 2459...
2459
 call clearipc
2459
 call clearipc
2460
 
2460
 
2461
 mov eax,40
2461
 mov eax,40
Line 2462... Line 2462...
2462
 mov ebx,01000111b
2462
 mov ebx,01000111b
2463
 int 0x40
2463
 mcall
2464
 
2464
 
Line 2465... Line 2465...
2465
 mov eax,23
2465
 mov eax,23
2466
 mov ebx,10
2466
 mov ebx,10
Line 2467... Line 2467...
2467
 int 0x40
2467
 mcall
Line 2476... Line 2476...
2476
 
2476
 
2477
ipccontinue:
2477
ipccontinue:
2478
 mov eax,9
2478
 mov eax,9
2479
 mov ebx,tic_table+100000
2479
 mov ebx,tic_table+100000
2480
 mov ecx,-1
2480
 mov ecx,-1
Line 2481... Line 2481...
2481
 int 0x40
2481
 mcall
2482
 
2482
 
2483
 mov ecx,eax
2483
 mov ecx,eax
Line 2484... Line 2484...
2484
loopfindipc:
2484
loopfindipc:
2485
 push ecx
2485
 push ecx
2486
 
2486
 
Line 2487... Line 2487...
2487
 mov eax,9
2487
 mov eax,9
2488
 mov ebx,tic_table+100000
2488
 mov ebx,tic_table+100000
2489
 int 0x40
2489
 mcall
2490
 
2490
 
Line 2546... Line 2546...
2546
 mov eax,60
2546
 mov eax,60
2547
 mov ebx,2
2547
 mov ebx,2
2548
 mov ecx,dword [ipcpid]
2548
 mov ecx,dword [ipcpid]
2549
 mov edx,ddot
2549
 mov edx,ddot
2550
 mov esi,1
2550
 mov esi,1
2551
 int 0x40
2551
 mcall
Line 2552... Line 2552...
2552
 
2552
 
2553
 call newline
2553
 call newline
Line 2554... Line 2554...
2554
 call clearipc
2554
 call clearipc
Line 2574... Line 2574...
2574
 shl ebx,16
2574
 shl ebx,16
2575
 add ebx,[xpos]
2575
 add ebx,[xpos]
2576
 mov edx,tic_table+600
2576
 mov edx,tic_table+600
2577
 mov ecx,0x00ddeeff
2577
 mov ecx,0x00ddeeff
2578
 mov esi,dword [count]
2578
 mov esi,dword [count]
2579
 int 0x40
2579
 mcall
Line 2580... Line 2580...
2580
 
2580
 
2581
 cld
2581
 cld
2582
 mov ecx,dword [count]
2582
 mov ecx,dword [count]
2583
 mov edi,tic_table
2583
 mov edi,tic_table
Line 2603... Line 2603...
2603
 ret
2603
 ret
Line 2604... Line 2604...
2604
 
2604
 
2605
waitipc:
2605
waitipc:
2606
 mov eax,40
2606
 mov eax,40
2607
 mov ebx,01000111b
2607
 mov ebx,01000111b
Line 2608... Line 2608...
2608
 int 0x40
2608
 mcall
2609
 
2609
 
Line 2610... Line 2610...
2610
 mov eax,10
2610
 mov eax,10
2611
 int 0x40
2611
 mcall
2612
 
2612
 
2613
 cmp eax,7
2613
 cmp eax,7
Line 2621... Line 2621...
2621
 
2621
 
Line 2622... Line 2622...
2622
 jmp waitipc
2622
 jmp waitipc
2623
 
2623
 
2624
keyipc:
2624
keyipc:
Line 2625... Line 2625...
2625
 mov eax,2
2625
 mov eax,2
Line 2626... Line 2626...
2626
 int 0x40
2626
 mcall
2627
 
2627
 
Line 2660... Line 2660...
2660
 call draw
2660
 call draw
2661
 call red
2661
 call red
Line 2662... Line 2662...
2662
 
2662
 
2663
ipckey:
2663
ipckey:
2664
 mov eax,10
2664
 mov eax,10
Line 2665... Line 2665...
2665
 int 0x40
2665
 mcall
2666
 
2666
 
2667
 cmp eax,1
2667
 cmp eax,1
2668
 je reipc2
2668
 je reipc2
Line 2673... Line 2673...
2673
 
2673
 
Line 2674... Line 2674...
2674
 jmp ipckey
2674
 jmp ipckey
2675
 
2675
 
2676
ipckeypressed:
2676
ipckeypressed:
Line 2677... Line 2677...
2677
 mov eax,2
2677
 mov eax,2
Line 2678... Line 2678...
2678
 int 0x40
2678
 mcall
2679
 
2679
 
2680
 mov byte [ipckeyvalue],ah
2680
 mov byte [ipckeyvalue],ah
2681
 
2681
 
2682
 mov eax,60
2682
 mov eax,60
2683
 mov ebx,2
2683
 mov ebx,2
Line 2684... Line 2684...
2684
 mov ecx,dword [ipcpid]
2684
 mov ecx,dword [ipcpid]
2685
 mov edx,ipckeyvalue
2685
 mov edx,ipckeyvalue
Line 2686... Line 2686...
2686
 mov esi,1
2686
 mov esi,1
Line 2715... Line 2715...
2715
 
2715
 
2716
cmdexist:
2716
cmdexist:
2717
 mov eax,9
2717
 mov eax,9
2718
 mov ebx,tic_table
2718
 mov ebx,tic_table
2719
 mov ecx,-1
2719
 mov ecx,-1
Line 2720... Line 2720...
2720
 int 0x40
2720
 mcall
2721
 
2721
 
2722
 mov ecx,eax
2722
 mov ecx,eax
Line 2723... Line 2723...
2723
loopex:
2723
loopex:
2724
 push ecx
2724
 push ecx
2725
 
2725
 
Line 2726... Line 2726...
2726
 mov eax,9
2726
 mov eax,9
2727
 mov ebx,I_END
2727
 mov ebx,I_END
2728
 int 0x40
2728
 mcall
2729
 
2729
 
Line 2762... Line 2762...
2762
        mov     byte [edi+1], 0
2762
        mov     byte [edi+1], 0
2763
        pop     edi
2763
        pop     edi
2764
        mov     eax, 70
2764
        mov     eax, 70
2765
        mov     ebx, fileinfo_start
2765
        mov     ebx, fileinfo_start
2766
        mov     [ebx+8], ecx
2766
        mov     [ebx+8], ecx
2767
        int     0x40
2767
        mcall
2768
        ret
2768
        ret
2769
fileinfo_start:
2769
fileinfo_start:
2770
        dd      7
2770
        dd      7
2771
        dd      0
2771
        dd      0
2772
        dd      ?
2772
        dd      ?
2773
        dd      0
2773
        dd      0
2774
        dd      0
2774
        dd      0
2775
        db      0
2775
        db      0
2776
        dd      fileinfo_buffer
2776
        dd      fileinfo_buffer
Line 2777... Line -...
2777
 
-
 
2778
title:
2777
 
Line 2779... Line 2778...
2779
 db 'CMD - Command line interpreter',0
2778
title   db 'CMD - Command line interpreter',0
Line 2780... Line 2779...
2780
 
2779
 
2781
smb_cursor db '|'
2780
smb_cursor db '|'