home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.barnyard.co.uk
/
2015.02.ftp.barnyard.co.uk.tar
/
ftp.barnyard.co.uk
/
cpm
/
walnut-creek-CDROM
/
MBUG
/
MBUG037.ARC
/
SYNONYM.DOC
< prev
next >
Wrap
Text File
|
1979-12-31
|
5KB
|
138 lines
SYNONYM Version 2.0 by: Bill Allen Sep 1981
Page 1
SYNONY═ i≤ ß prograφ tha⌠ generate≤ ß program« Thi≤ generateΣ
prograφ wheε executed¼á wil∞ invokσ anothe≥ CP/═ command«á It'≤
reall∙ no⌠ a≤ comple° a≤ i⌠ sounds« Herσ i≤ aε example║ Yo⌡ woulΣ
likσá t∩á invokσ Microsof⌠ basiπ b∙ typinτ onl∙ thσá lette≥á "Bó
insteaΣ oµ typinτ "MBASIC"«á Yo⌡ coulΣ jus⌠ renamσ MBASIC.CO═
t∩ B.CO═ bu⌠ yo⌡ coulΣ n∩ longe≥ use "MBASICó t∩ invokσ basic.
SYNONY═á caε creatσ ß "B.COMó filσ tha⌠á wheεá invokeΣ
wil∞á modif∙ thσ CC╨ inpu⌠ buffe≥ t∩ "MBASICó anΣ theεá jum≡
t∩á thσ CCP«á Thσ ne≈ .CO═ filσ i≤ ver∙ smal∞ (▒ block⌐ anΣ i≤
saveΣ witΦ thσ $SY╙ indicato≥ se⌠ (iε CP/═ 2.° ⌐ s∩ i⌠á won'⌠
clutte≥á u≡ you≥ DIRectory«á Theε t∩ invokσ basiπ yo⌡ woulΣá onl∙
havσ t∩ type║á "B"«á Yo⌡ coulΣ als∩ pas≤ basiπ ß prograφ namσ
t∩á executσá jus⌠ a≤ witΦ MBASI├ b∙ typing║á "┬ BASPGMóá (wherσ
BASPG═ i≤ thσ namσ oµ thσ basic program).
Yo⌡á caε als∩ creatσ ß SYNONY═ witΦ ß fixeΣ paramete≥á string«
Fo≥á examplσá yo⌡á migh⌠ likσ t∩ ruε ßá basiπá prograφá calleΣ
STARTREK.BA╙á b∙á typinτá "ST"«á SYNONY═á caεá creatσá ßá filσ
("ST.COM"⌐á tha⌠ wil∞ invokσ MBASI├ anΣ pas≤ i⌠ ßá fixeΣá strinτ
"STARTREK"«á Iµá yo⌡ d∩ creatσ ß SYNONY═ witΦ ß fixeΣ paramete≥
strinτá an∙ paramater≤ entereΣ oε thσ commanΣ linσ invokinτá thσ
SYNONY═á wil∞ bσ appendeΣ t∩ thσ fixeΣá parameters«á Thi≤
coulΣ bσ useΣ t∩ invokσ thσ SUBMI╘ program¼á pas≤ i⌠ thσ namσá oµ
thσ .SU┬ filσ a≤ ß fixeΣ parameter¼á anΣ theε an∙ othe≥ variablσ
parameters.
SYNONYM COMMAND SYNTAX ______________________
SYNONYM newname oldname [parameter string]
where:
newnamσ i≤ thσ namσ t∩ bσ useΣ a≤ ß synonym« I⌠ caε bσ
anythinτ acceptablσ t∩ CP/═ a≤ a file name.
oldnamσá i≤ thσ actua∞ namσ oµ thσ commanΣ t∩ bσá exe
cuteΣ anΣ ma∙ includσ ß disδ letter.
parameter string is a fixed string to be passed to the
command« I⌠ i≤ optiona∞ anΣ an∙ para
meter≤á entereΣá wheε thσ synonyφá i≤
invokeΣ wil∞ bσ appended.
è SYNONYM Version 2.0 by: Bill Allen Sep 1981
Page 2
SYNONYM EXAMPLES:
_________________
Create a synonym "B" to invoke "MBASIC" (microsoft
basic). The paramater string entered on the command line
will be passed to MBASIC.
A>SYNONYM B MBASIC<cr>
example of use: Invoke MBASIC and run "MYPROG"
A>B MYPROG<cr>
Creatσá ß synonyφ "STó t∩ invokσ "MBASICó froφ thσá A║á disδ
anΣ pas≤ i⌠ thσ fixeΣ strinτ "STARTREK".
A>SYNONYM ST A:MBASIC STARTREK<cr>
examplσ oµ use║ Invokσ MBASI├ anΣ ruε "STAR
TREK"
A>ST<cr>
Creatσ ß synonyφ "Tó t∩ invokσ thσ built-iε CP/═ commanΣ
"TYPE".
A>SYNONYM T TYPE<cr>
example of use: Type this file.
A>T SYNONYM.DOC<cr>
Creatσá ßá synonyφ "Mó t∩ invokσ ß SU┬ filσá (MAC.SUB⌐á anΣ
pas≤ i⌠ thσ paramete≥ strinτ entereΣ witΦ thσ ne≈ "M" command.
A>SYNONYM M A:SUBMIT A:MAC<cr>
examplσ oµ use║ Submi⌠ MA├ anΣ pas≤ "ASMPRO╟
$SZ"
A>M ASMPROG $SZ<cr>
Obtaiεá HEL╨ witΦ thσ SYNONY═ commanΣ simila≥ t∩ thσ SYNONY═
commanΣ synta° showε above.
A>SYNONYM ?<cr> or A>SYNONYM<cr>
è SYNONYM Version 2.0 by: Bill Allen Sep 1981
Page 3
NOTES ON SYNONYM.ASM
____________________
1. The program can be assembled with MAC or ASM.
2. The program has been tested on both CP/M version 1.4 and
version 2.x (The $SYS attribute is set only on 2.x).
3. The subroutine "XCTL" could easily be used in other
programs that you would like to have transfer control to
another CP/M command. It is self-contained except for the
call to VARMOV.
Iµ yo⌡ havσ an∙ problems¼ questions¼ suggestion≤ o≥ modifi
cations╗ pleasσ leavσ ß messagσ oε thσ TCBB╙ Dearborε (313⌐ 846-
612╖ o≥ cal∞ mσ durinτ busines≤ hour≤ at║ (313) 357-4800.
Enjoy,
Bill Allen - 09/01/81