{"id":74,"date":"2020-03-07T12:56:48","date_gmt":"2020-03-07T12:56:48","guid":{"rendered":"https:\/\/www.z88dx.com\/?page_id=74"},"modified":"2020-03-07T13:09:24","modified_gmt":"2020-03-07T13:09:24","slug":"msdos-communication","status":"publish","type":"page","link":"https:\/\/www.z88dx.com\/index.php\/guides\/msdos-communication\/","title":{"rendered":"MSDOS Commands"},"content":{"rendered":"\n<p>Using plain old DOS commands on a PC, with a Z88 and a special serial cable, you can transfer files back and forth, print through the PC to a printer and replace the PC screen and keyboard by using the Z88 as a terminal to the PC.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; COPY COM1 FILENAME_<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">To receive data to a file on the PC:\n\n1 Enter the above command on the PC. \n\n2a Files in ASCII plain text format like PipeDream, Diary, \n   PrinterEd, Panel and CLI files can always be copied \n   exactly as is by going to Filer []F, mark a file using \n   the arrow and TAB keys, enter the command &lt;&gt;CO and enter \n   :COM as New name.\n   Binary files like BASIC programs can generally not be \n   copied from a PC serial port because the DOS copy command \n   treats some control characters as, you guessed it, \n   control characters.\n\n2b Binary files, and all other files also, can be backed up \n   in a PC file, with embedded Imp-Export protocol \n   information, by going to Imp-Export []X, enter S to send \n   and a filename. \n   To backup the complete RAM of the Z88 into one DOS file, \n   use the wildcard filename :*\/\/* to S)end all files in \n   every RAM device and directory. \n\n2c Z88 spooled printer output can also be copied by pressing \n   []+P, produce some screen output, for example LIST a \n   BASIC program, turn off spooling by pressing []-P.\n\n3  When the file is sent, goto Terminal []V and press &lt;&gt;Z. \n   The DOS End of file marker Ctrl Z will be sent to the \n   PC and the file is saved to disk.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; COPY FILENAME COM1_<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">On the Z88, go to Imp-Export []X, press R and Enter to \nreceive to a file, type a filename and press Enter. Now the \nZ88 will write all received characters to the specified file. \nThen enter the above command on the PC. When all is sent, \nnormally when the prompt returns, or the line numbers stop \nincreasing on the Z88, press Escape on the Z88 to close the \nfile received to.\n\nTo transfer a file with embedded Imp-Export protocol \ninformation, to the Z88, goto Imp-Export []X, enter R and a \nfilename or just enter to accept the original embedded \nfilename. \nOn the PC enter the above command. When the linenumbers \nhas stopped increasing, press escape on the Z88 and the file \nis saved.\nTo transfer a DOS-file with embedded Imp-Export protocol \ninformation, containing more then one Z88-file to the Z88, \nuse the B)atch receive option in Imp-Export.\n\nBinary files like BASIC programs can not be received \ncorrectly by Z88 Imp-Export if some character sequence \nhappens to coincide with the Imp-Export protocol.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; COPY COM1 LPT1_<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">To use the PC as a parallell Centronics interface for your \nZ88, enter the above command on the PC.\n\nPrintOut &lt;&gt;PO from PipeDream or other application on the \nZ88 to the PC. When transmission to the PC is finished, \n(the cursor returns), go to Terminal []V and press diamond \nZ. Then the printing starts. <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; CTTY COM1_<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">Redirect standard input and standard output to the serial \nport so you can use the Z88 Terminal []V as a terminal to \nthe PC.\nAll scrolling output programs, like most DOS commands, could \nbe runned from the Z88. Many Norton Utilities programs has a \ncommand line argument to run in command line mode. \nGraphic programs or programs writing directly to hardware \nvideo memory could not be used.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; CTTY CON_<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">Enter the above command from the Z88 Terminal to return \ncontrol to the PC keyboard and screen.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; MODE COM1:9600,N,8,1_<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">For file transfers between Z88 and PC, and printing from Z88 \nthrough PC to printer, enter the above command on the PC to \nconfigure baud rate, parity, number of data bits and stop \nbits of a serial port for use with the Z88. On the Z88 go to \nPanel []S, enter Transmit and Receive baudrate 9600, Parity \nNone and Xon\/Xoff No.\n\nFor using the Z88 as a terminal to the PC, use baud rate \n1200 or lower in both ends.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; DIR | MORE_<\/strong><\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; TYPE FILENAME | MORE_<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">Limit screen output to 24 lines at a time to prevent text \nscrolling off the screen before being read. <\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; 7MORE_<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">The filter program more.com from IBM-DOS 2.10, patched for \nscrolling only 7 lines at the time and not displaying the \n-- More -- prompt. Suitable for use with the Z88 screen.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; More Scroll Control_<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">Using a baud rate of 1200 or lower allows you time to see \nwhat is displayed at the Z88 screen. Baud rates higher then \n1200 even makes the Z88 screen miss characters. \n\nThere is a general way to stop scrolling on the Z88 screen. \nPress the left shift key and the diamond &lt;&gt; key at the same \ntime. Received characters will then fill up the receive \nbuffer and if you have a working flow control the \ntransmitting PC will be stopped and respond with an 'Abort, \nRetry Ignore' prompt. Then press A to abort or R to continue.<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; EDLIN_<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">To edit a file on the PC you need an editor not relying on \nfull screen 25 lines. Edlin is a line editor supplied with \nDOS from version 1 to 5.<\/pre>\n\n\n\n<div class=\"wp-block-file\"><a href=\"https:\/\/www.z88dx.com\/wp-content\/uploads\/2020\/03\/edlin.com\">edlin<\/a><a href=\"https:\/\/www.z88dx.com\/wp-content\/uploads\/2020\/03\/edlin.com\" class=\"wp-block-file__button\" download>Download<\/a><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; Cable_<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">Using the PC-Link cable, files can be transfered from the PC \n to the Z88, but if you try to send a file to the PC the \n transmission stops after a few lines. \n DOS by itself does NOT use Xon\/Xoff and it does not use \n hardware flow control when receiving but it does when sending. \n The Z88 hardware flow control is always active so when trying \n to send, the Z88 never receives a positive voltage on pin 5 \n CTS to be able to send.\n One useful source for a positive voltage is the PC pin 20 \n DTR instead of the PC-Link connection to pin 4 RTS. The \n connections would then be exactly the ones recommended in the \n Z88 User Manual for connecting to a printer, apart from the \n fact that the printer needs a male connector. A printer \n cable and a gender changer will do the trick. \n No flow control is then active when sending to the PC. I \n only guess it is OK as long as the received data fit in the \n available RAM and must not be written to disk and \n interrupting the possibility to correctly receive data.\n <code>   Z88              PC   <\/code>\n   <code>-----         ----------------<\/code>\n<code>                    25-pin 9-pin   <\/code>\n<code>2 TxD ------&gt; RxD   3     2   <\/code>\n<code>3 RxD &lt;------ TxD   2     3   <\/code>\n<code>7 GND &lt;-----&gt; GND   7     5   <\/code>\n<code>4 RTS ------&gt; CTS   5     8   <\/code>\n<code>5 CTS &lt;-+     RTS   4     7    <\/code>\n<code>        |   <\/code>\n<code>8 DCD &lt;-+---- DTR  20     4   <\/code>\n<code>9 DTR ----+-&gt; DCD   8     1    <\/code>\n <code>         |     <\/code>\n  <code>        +-&gt; DSR   6     6<\/code>\n \nWindows NT has useful MODE options for flow control.\n MODE COMm[:] [BAUD=b] [PARITY=p] [DATA=d] [STOP=s]\n              [to=on|off] [xon=on|off] [odsr=on|off]\n              [octs=on|off] [dtr=on|off|hs]\n              [rts=on|off|hs|tg] [idsr=on|off]\n Try: \n MODE COM1 BAUD=9600 PARITY=N DATA=8 STOP=1 XON=OFF OCTS=ON DTR=ON RTS=HS\n It will probably work with Z88 CTS connected to PC RTS\n like in the original PC-Link cable outlined below.<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>   Z88              PC   <\/code>\n  <code>-----         ----------------  <\/code>\n<code>                   25-pin 9-pin   <\/code>\n<code>2 TxD ------&gt; RxD   3     2   <\/code>\n<code>3 RxD &lt;------ TxD   2     3   <\/code>\n<code>7 GND &lt;-----&gt; GND   7     5   <\/code>\n<code>4 RTS ------&gt; CTS   5     8   <\/code>\n<code>5 CTS &lt;------ RTS   4     7   <\/code>\n<code>8 DCD &lt;------ DTR  20     4   <\/code>\n<code>9 DTR ----+-&gt; DCD   8     1 <\/code>\n<code>          |<\/code>\n<code>          +-&gt; DSR   6     6<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>C:\\Z88&gt; Boot Diskette_<\/strong><\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">Having a boot diskette with mode.com on it and the last two \ncommands in autoexec.bat reading:\n\nMODE COM1:1200,N,8,1\nCTTY COM1\n\nwas a life saver for me once when my PC monitor broke.\nNot having the Z88 connected when booting is no problem. \nAfter a timeout it just continoues passing the control to \nthe ordinary console with an error message.<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Using plain old DOS commands on a PC, with a Z88 and a special serial cable, you can transfer files back and forth, print through [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":72,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-74","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/pages\/74","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/comments?post=74"}],"version-history":[{"count":0,"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/pages\/74\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/pages\/72"}],"wp:attachment":[{"href":"https:\/\/www.z88dx.com\/index.php\/wp-json\/wp\/v2\/media?parent=74"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}