Skip to content

Commit 91e0bc1

Browse files
author
Adam
committed
add files to build smartdrv.exe dirve caching
utility. Thanks to the contributor.
1 parent 59f77a5 commit 91e0bc1

File tree

4 files changed

+147
-70
lines changed

4 files changed

+147
-70
lines changed

dev/smartdrv/makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ LIBS =
2626

2727
OBJS1 = dev.obj $(NAME).obj dirtywrt.obj xms.obj cacheman.obj queueman.obj
2828
OBJS2 = int2f.obj hooks.obj queueini.obj reboot.obj popup.obj beep.obj rtext.obj rdata.obj
29-
OBJS3 = tdata.obj bambinit.obj umbload.obj get_dpb.obj indosbox.obj xmsini.obj stacker.obj
30-
OBJS4 = cacheini.obj int2fini.obj hooksini.obj cmdline.obj text.obj dec_out.obj drvtype.obj logphys.obj devini.obj pdetect.obj
29+
OBJS3 = tdata.obj bambinit.obj umbload.obj get_dpb.obj indosbox.obj xmsini.obj
30+
OBJS4 = cacheini.obj int2fini.obj hooksini.obj cmdline.obj text.obj dec_out.obj drvtype.obj logphys.obj devini.obj pdetect.obj stacker.obj
3131
OBJS5 = doubleb\safedsk.obj doubleb\resbuf.obj doubleb\transbuf.obj doubleb\dtext.obj doubleb\badpart.obj
3232

3333
bins = ..\..\binaries

lang/usa/dev/smartdrv/dtext.asm

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,20 @@
1+
;
2+
PUBLIC warning1
3+
PUBLIC warning2
4+
PUBLIC noloadumb
5+
PUBLIC signon
6+
PUBLIC signoff
17

2-
PUBLIC WARNING1
3-
PUBLIC WARNING2
4-
PUBLIC NOLOADUMB
5-
PUBLIC SIGNON
6-
PUBLIC SIGNOFF
8+
vseg segment byte public 'CODE'
9+
assume cs:vseg,ds:vseg,es:NOTHING
710

8-
WARNING1 db 'WARNING1',0
9-
WARNING2 db 'WARNING2',0
10-
NOLOADUMB db 'NOLOADUMB',0
11-
SIGNON db 'SIGNON',0
12-
SIGNOFF db 'SIGNOFF',0
11+
signon db 13,10,'Smartdrv double buffering manager installed.',13,10,'$'
12+
signoff db 13,10,'Smartdrv double buffering manager not installed.',13,10,'$'
13+
warning1 db 13,10,020h,'$'
14+
warning2 db 020h,'$'
15+
noloadumb db 13,10,'Double-buffering driver cannot be loaded into a UMB.'
16+
db 13,10,'Do not use the devicehigh command or other load-high'
17+
db 13,10,'utilities to load SMARTDRV.EXE.',13,10,7,7,7,7,'$'
18+
19+
vseg ends
20+
end

lang/usa/dev/smartdrv/rtext.asm

Lines changed: 36 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,40 @@
11
;
2-
PUBLIC statistics1
3-
PUBLIC statistics2
4-
PUBLIC statistics3
5-
PUBLIC statistics4
6-
PUBLIC statistics5
7-
PUBLIC msg_in_dos_box
8-
PUBLIC msg_dos_access2
9-
PUBLIC msg_too_large
10-
PUBLIC msg_xms_memory_error
112
PUBLIC popup1
123
PUBLIC popup2
13-
PUBLIC msg_version_fail
14-
PUBLIC msg_no_himem
15-
PUBLIC msg_dos_access
16-
PUBLIC magicdrvstring
17-
PUBLIC msg_cannot_cache
18-
PUBLIC help_text
19-
PUBLIC whatsanasterisk
20-
PUBLIC bufferstring1
21-
PUBLIC bufferstring2
22-
PUBLIC bufferstring3
23-
PUBLIC extrastatus1
24-
PUBLIC extrastatus2
25-
PUBLIC extrastatus3
26-
PUBLIC extrastatus4
27-
PUBLIC extrastatus5
28-
PUBLIC drivestring1
29-
PUBLIC drivestring2
30-
PUBLIC drivestring3
31-
PUBLIC msg_installed
324

33-
statistics1 db 'statistics1',0
34-
statistics2 db 'statistics2',0
35-
statistics3 db 'statistics3',0
36-
statistics4 db 'statistics4',0
37-
statistics5 db 'statistics5 ',0
38-
msg_in_dos_box db 'msg_in_dos_box',0
39-
msg_dos_access2 db 'msg_dos_access2',0
40-
msg_too_large db 'msg_too_large',0
41-
msg_xms_memory_error db 'msg_xms_memory_error',0
42-
popup1 db 'popup1',0
43-
popup2 db 'popup2',0
44-
msg_version_fail db 'msg_version_fail',0
45-
msg_no_himem db 'msg_no_himem',0
46-
msg_dos_access db 'msg_dos_access',0
47-
magicdrvstring db 'magicdrvstring',0
48-
msg_cannot_cache db 'msg_cannot_cache',0
49-
help_text db 'help_text',0
50-
whatsanasterisk db 'whatsanasterisk',0
51-
bufferstring1 db 'bufferstring1',0
52-
bufferstring2 db 'bufferstring2',0
53-
bufferstring3 db 'bufferstring3',0
54-
extrastatus1 db 'extrastatus1',0
55-
extrastatus2 db 'extrastatus2',0
56-
extrastatus3 db 'extrastatus3',0
57-
extrastatus4 db 'extrastatus4',0
58-
extrastatus5 db 'extrastatus5',0
59-
drivestring1 db 'drivestring1',0
60-
drivestring2 db 'drivestring2',0
61-
drivestring3 db 'drivestring3',0
62-
msg_installed db 'msg_installed',0
5+
zseg segment public 'CODE'
6+
7+
assume cs:zseg
8+
assume ds:nothing
9+
10+
popup1 db 0DAh
11+
db 37 dup(0C4h)
12+
db 0BFh,0,0B3h
13+
db 37 dup(020h)
14+
db 0B3h,0,0B3h,020h
15+
db 'ATTENTION: A serious disk error has'
16+
db 020h,0B3h,0,0B3h,020h
17+
db 'occured while writing to drive @.'
18+
db 020h,020h,020h,0B3h,0,0B3h,020h
19+
db 'Retry (r)?&_'
20+
db 24 dup(020h)
21+
db 0B3h,0,0B3h
22+
db 37 dup(020h)
23+
db 0B3h,0,0C0h
24+
db 37 dup(0C4h)
25+
db 0D9h,020h,'$'
26+
popup2 db 0DAh
27+
db 29 dup(0C4h)
28+
db 0BFh,0,0B3h
29+
db 29 dup(020h)
30+
db 0B3h,0,0B3h,020h
31+
db 'Waiting for system shutdown.'
32+
db 0B3h,0,0B3h
33+
db 29 dup(020h)
34+
db 0B3h,0,0C0h
35+
db 29 dup(0C4h)
36+
db 0D9h,'$'
37+
38+
zseg ends
39+
40+
end

lang/usa/dev/smartdrv/text.asm

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,93 @@
11
;
2+
PUBLIC statistics1
3+
PUBLIC statistics2
4+
PUBLIC statistics3
5+
PUBLIC statistics4
6+
PUBLIC statistics5
7+
PUBLIC msg_in_dos_box
8+
PUBLIC msg_dos_access2
9+
PUBLIC msg_too_large
10+
PUBLIC msg_xms_memory_error
11+
PUBLIC msg_version_fail
12+
PUBLIC msg_no_himem
13+
PUBLIC msg_dos_access
14+
PUBLIC magicdrvstring
15+
PUBLIC msg_cannot_cache
16+
PUBLIC help_text
17+
PUBLIC whatsanasterisk
18+
PUBLIC bufferstring1
19+
PUBLIC bufferstring2
20+
PUBLIC bufferstring3
21+
PUBLIC extrastatus1
22+
PUBLIC extrastatus2
23+
PUBLIC extrastatus3
24+
PUBLIC extrastatus4
25+
PUBLIC extrastatus5
26+
PUBLIC drivestring1
27+
PUBLIC drivestring2
28+
PUBLIC drivestring3
29+
PUBLIC msg_installed
230

31+
zseg segment public 'CODE'
32+
33+
assume cs:zseg
34+
35+
36+
msg_installed db 13,10,'The memory-resident portion of SMARTDrive is loaded.',13,10,'$'
37+
msg_in_dos_box db 13,10,'You cannot load SMARTDrive when a shell program (such as'
38+
db 13,10,'MS-DOS shell) or Windows is running. Quit Windows or the'
39+
db 13,10,'shell program, and then load SMARTDrive.',13,10,'$'
40+
msg_version_fail db 13,10,'SMARTDrive requires MS-DOS version 3.1 or later.',13,10,'$'
41+
msg_xms_memory_error db 'There is insufficient XMS memory to load SMARTDrive.',13,10,'$'
42+
msg_no_himem db 'SMARTDrive cannot be loaded because the XMS driver, HIMEM.SYS'
43+
db 13,10,'is not loaded. Check the CONFIG.SYS file for a device=himem.sys'
44+
db 13,10,'command line.',13,10,'$'
45+
msg_cannot_cache db 13,10,'Warning: Unable to use a disk cache on the specified drive',13,10,'$'
46+
msg_too_large db 13,10,'SMARTDrive configuration is too large.',13,10,'$'
47+
msg_dos_access db 13,10,'Non-fatal error detected: error #','$'
48+
msg_dos_access2 db 13,10,'$'
49+
help_text db 13,10,'Installs and configures the SMARTDrive disk-caching utility.',13,10
50+
db 13,10,'SMARTDRV [[drive[+|-]]...] [/E:ElementSize] [InitCacheSize][WinCacheSize]]'
51+
db 13,10,' [/B:BufferSize] [/C] [/R] [/L] [/Q] [/S] [/V]',13,10
52+
db 13,10,' drive Specifies the drive for which to control caching. You can'
53+
db 13,10,' specify multiple drives.'
54+
db 13,10,' + Enables write-behind caching for the specified drive.'
55+
db 13,10,' - Disables all caching for the specified drive.'
56+
db 13,10,' /E:ElementSize Specifies how many bytes of information to move at one time.'
57+
db 13,10,' InitCacheSize Specifies how many KB of XMS memory to use for the cache.'
58+
db 13,10,' WinCacheSize Specifies how many KB of XMS memory to use for the cache'
59+
db 13,10,' when running Windows.'
60+
db 13,10,' /B:BufferSize Specifies the size of the read-ahead buffer.'
61+
db 13,10,' /C Writes all write-behind information to the hard disk.'
62+
db 13,10,' /R Clears the contents of the cache and restarts SMARTDrive.'
63+
db 13,10,' /L Loads SMARTDrive into conventional memory.'
64+
db 13,10,' /Q Prevents SMARTDrive from displaying status messages'
65+
db 13,10,' when it starts.'
66+
db 13,10,' /S Displays additional information about SMARTDrive',027h,'s status.'
67+
db 13,10,' /V Displays SMARTDrive status messages when starting.',13,10,13,10,'$'
68+
statistics1 db 'Microsoft SMARTDrive Disk Cache version 4.1'
69+
db 13,10,'Copyright 1991,1993 Microsoft Corp.',13,10,'$'
70+
statistics2 db 13,10,'Cache size: ','$'
71+
statistics3 db ' bytes',13,10,'Cache size while running Windows: ','$'
72+
statistics4 db ' bytes',13,10
73+
db 13,10,' Disk Caching Status'
74+
db 13,10,'drive read cache write cache buffering'
75+
db 13,10,'--------------------------------------------','$'
76+
statistics5 db 13,10,13,10,'For help, type "Smartdrv /?".',13,10,'$'
77+
drivestring1 db 13,10,' ?: yes yes','$'
78+
drivestring2 db 13,10,' ?: yes no ','$'
79+
drivestring3 db 13,10,' ?: no no ','$'
80+
extrastatus1 db 13,10,'Room for ','$'
81+
extrastatus2 db ' elements of ','$'
82+
extrastatus3 db ' bytes each',13,10,'There have been ','$'
83+
extrastatus4 db ' cache hits',13,10,' and ','$'
84+
extrastatus5 db ' cache misses',13,10,'$'
85+
bufferstring1 db ' yes','$'
86+
bufferstring2 db ' no','$'
87+
bufferstring3 db ' -','$'
88+
magicdrvstring db 'You must specify the host drive for a DoubleSpace drive.',13,10,13,10,7,'$'
89+
whatsanasterisk db 13,10,13,10,'* DoubleSpace drive cached via host drive.','$'
90+
91+
zseg ends
92+
93+
end

0 commit comments

Comments
 (0)