Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_56.ADF » V/+2NDPO2

V/+2NDPO2

This website contains an archive of files for the Acorn Electron, BBC Micro, Acorn Archimedes, Commodore 16 and Commodore 64 computers, which Dominic Ford has rescued from his private collection of floppy disks and cassettes.

Some of these files were originally commercial releases in the 1980s and 1990s, but they are now widely available online. I assume that copyright over them is no longer being asserted. If you own the copyright and would like files to be removed, please contact me.

Tape/disk: Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_56.ADF
Filename: V/+2NDPO2
Read OK:
File size: 0FCF bytes
Load address: 2B204556
Exec address: 50444E32
Duplicates

There are 2 duplicate copies of this file in the archive:

File contents
             [ MANUAL FOR 2ND SERIAL PORT - CONTINUATION ]

Supported FX Calls
WHEN preceded by a *COM2 command, the following OSBytes are listened for
by the second serial card firmware. You may either type them directly at
the command line with *FX or by calling the OSByte routine from your 
programs. 
   For calls with A > 165 the operation performed is:
<newvalue> = (<oldvalue> AND Y> EOR X

and returns with:  A = preserved, X = <oldvalue>, Y = undefined

   FX 2 (Select input stream)
      *FX 2, 0 disables RS423 input interrupts
      *FX 2, 2 enables RS423 input interrupts
      Note that to read or write bytes from the serial port you must use
      OSByte 138 to insert bytes into the output buffer and OSByte 145
      to get bytes from the input buffer, you cannot use *FX 2, 1 and
      *FX 3, 7 to redirect keyboard and screen activity to te port as 
      this only works with the built in serial interface.

   FX 7 (Set receive rate)
      Rates between 75 and 19200 baud are possible. This call returns
      with the X and Y register set to the old ULA contents (See *FX 242
      below). The default, set with *FX 7, 0 is 9600 baud.

   FX 8 (Set transmit rate)
      Rates between 75 and 19200 baud are possible. This call returns 
      with the X and Y register set to the old ULA contents (See *FX 242
      below). The default, set with *FX 8, 0 is 9600 baud.

   FX 156 (Read/write 6850 control register plus OS copy)
      This call writes to the control register of the 6850 chip and the
      OS copy. By consulting the 6850 data sheet, it is possible to im-
      plement serial standards other than the "8N1" default.
         The action of this OSByte is:
            <register> = (<oldregister> AND Y) EOR X

      returning with X = <oldregister> and A, Y preserved.

   FX 181 (Determine action on receiving escape/soft key)
      Unimplemented. No expansion of escape or soft keys occur.

   FX 191 (Read/write RS423 in use flag)
      This call tests whether the RS423 hardware is busy, returning with
      bit 7 set if it is free, bits 0 to 6 are undefined. Value 'busy'
      means that either transmit or receive interrupts are enabled,
      writes to this location are ignored.

   FX 191 (Read/write 6850 control register OS copy only)
      This call reads or writes the OS copy of the control register on
      the 6850 chip. Do not write to this location as it would make the
      copy inconsistent with the value in the chip.

   FX 203 (Read/write input buffer handshake ceiling)
      If the number of free bytes in the input buffer falls below the
      number held in this location the RTS line will go high to stop any
      further bytes being sent from the other computer.
         It contains 9 by default on soft and hard resets.

   FX 204 (Read/write serial suppression flag)
      Unimplemented. The second serial card RS423 input cannot be 
      suppressed.

   FX 205 (Read/write hardware use flag)
      This location contains &00 if the hardware is used in RS423 data
      mode &40 if the hardware is used in cassette mode. It will always
      contain 0 for the second serial card.

   FX 232 (Read/write IRQ mask)
      Unimplemented. The IRQ mask is always 255, and handled internally.

   FX 242 (Read/write serial ULA register OS copy only)
      This call reads or writes the second serial card's serial ULA. The
      byte is set out as %msrrrtttm where:
         m=motor relay state (always 0, there is no relay on the card)
         s=system select (always 1, the card is always in RS423 mode)
         rrr=receive baud rate (see table)
         ttt=transmit baud rate (see table)

      The baud rates read from the ULA are:
         %000 = 19200      %001 = 1200
         %100 =  9600      %101 =  300
         %010 =  4800      %011 = 150
         %110 =  2400      %111 =  75

      Do not write to this location as it would make the copy inconsis-
      tent with the value in the ULA.
                                                Robert Sprowson, EUG #56
00000000  20 20 20 20 20 20 20 20  20 20 20 20 20 5b 20 4d  |             [ M|
00000010  41 4e 55 41 4c 20 46 4f  52 20 32 4e 44 20 53 45  |ANUAL FOR 2ND SE|
00000020  52 49 41 4c 20 50 4f 52  54 20 2d 20 43 4f 4e 54  |RIAL PORT - CONT|
00000030  49 4e 55 41 54 49 4f 4e  20 5d 0d 0d 53 75 70 70  |INUATION ]..Supp|
00000040  6f 72 74 65 64 20 46 58  20 43 61 6c 6c 73 0d 57  |orted FX Calls.W|
00000050  48 45 4e 20 70 72 65 63  65 64 65 64 20 62 79 20  |HEN preceded by |
00000060  61 20 2a 43 4f 4d 32 20  63 6f 6d 6d 61 6e 64 2c  |a *COM2 command,|
00000070  20 74 68 65 20 66 6f 6c  6c 6f 77 69 6e 67 20 4f  | the following O|
00000080  53 42 79 74 65 73 20 61  72 65 20 6c 69 73 74 65  |SBytes are liste|
00000090  6e 65 64 20 66 6f 72 0d  62 79 20 74 68 65 20 73  |ned for.by the s|
000000a0  65 63 6f 6e 64 20 73 65  72 69 61 6c 20 63 61 72  |econd serial car|
000000b0  64 20 66 69 72 6d 77 61  72 65 2e 20 59 6f 75 20  |d firmware. You |
000000c0  6d 61 79 20 65 69 74 68  65 72 20 74 79 70 65 20  |may either type |
000000d0  74 68 65 6d 20 64 69 72  65 63 74 6c 79 20 61 74  |them directly at|
000000e0  0d 74 68 65 20 63 6f 6d  6d 61 6e 64 20 6c 69 6e  |.the command lin|
000000f0  65 20 77 69 74 68 20 2a  46 58 20 6f 72 20 62 79  |e with *FX or by|
00000100  20 63 61 6c 6c 69 6e 67  20 74 68 65 20 4f 53 42  | calling the OSB|
00000110  79 74 65 20 72 6f 75 74  69 6e 65 20 66 72 6f 6d  |yte routine from|
00000120  20 79 6f 75 72 20 0d 70  72 6f 67 72 61 6d 73 2e  | your .programs.|
00000130  20 0d 20 20 20 46 6f 72  20 63 61 6c 6c 73 20 77  | .   For calls w|
00000140  69 74 68 20 41 20 3e 20  31 36 35 20 74 68 65 20  |ith A > 165 the |
00000150  6f 70 65 72 61 74 69 6f  6e 20 70 65 72 66 6f 72  |operation perfor|
00000160  6d 65 64 20 69 73 3a 0d  3c 6e 65 77 76 61 6c 75  |med is:.<newvalu|
00000170  65 3e 20 3d 20 28 3c 6f  6c 64 76 61 6c 75 65 3e  |e> = (<oldvalue>|
00000180  20 41 4e 44 20 59 3e 20  45 4f 52 20 58 0d 0d 61  | AND Y> EOR X..a|
00000190  6e 64 20 72 65 74 75 72  6e 73 20 77 69 74 68 3a  |nd returns with:|
000001a0  20 20 41 20 3d 20 70 72  65 73 65 72 76 65 64 2c  |  A = preserved,|
000001b0  20 58 20 3d 20 3c 6f 6c  64 76 61 6c 75 65 3e 2c  | X = <oldvalue>,|
000001c0  20 59 20 3d 20 75 6e 64  65 66 69 6e 65 64 0d 0d  | Y = undefined..|
000001d0  20 20 20 46 58 20 32 20  28 53 65 6c 65 63 74 20  |   FX 2 (Select |
000001e0  69 6e 70 75 74 20 73 74  72 65 61 6d 29 0d 20 20  |input stream).  |
000001f0  20 20 20 20 2a 46 58 20  32 2c 20 30 20 64 69 73  |    *FX 2, 0 dis|
00000200  61 62 6c 65 73 20 52 53  34 32 33 20 69 6e 70 75  |ables RS423 inpu|
00000210  74 20 69 6e 74 65 72 72  75 70 74 73 0d 20 20 20  |t interrupts.   |
00000220  20 20 20 2a 46 58 20 32  2c 20 32 20 65 6e 61 62  |   *FX 2, 2 enab|
00000230  6c 65 73 20 52 53 34 32  33 20 69 6e 70 75 74 20  |les RS423 input |
00000240  69 6e 74 65 72 72 75 70  74 73 0d 20 20 20 20 20  |interrupts.     |
00000250  20 4e 6f 74 65 20 74 68  61 74 20 74 6f 20 72 65  | Note that to re|
00000260  61 64 20 6f 72 20 77 72  69 74 65 20 62 79 74 65  |ad or write byte|
00000270  73 20 66 72 6f 6d 20 74  68 65 20 73 65 72 69 61  |s from the seria|
00000280  6c 20 70 6f 72 74 20 79  6f 75 20 6d 75 73 74 20  |l port you must |
00000290  75 73 65 0d 20 20 20 20  20 20 4f 53 42 79 74 65  |use.      OSByte|
000002a0  20 31 33 38 20 74 6f 20  69 6e 73 65 72 74 20 62  | 138 to insert b|
000002b0  79 74 65 73 20 69 6e 74  6f 20 74 68 65 20 6f 75  |ytes into the ou|
000002c0  74 70 75 74 20 62 75 66  66 65 72 20 61 6e 64 20  |tput buffer and |
000002d0  4f 53 42 79 74 65 20 31  34 35 0d 20 20 20 20 20  |OSByte 145.     |
000002e0  20 74 6f 20 67 65 74 20  62 79 74 65 73 20 66 72  | to get bytes fr|
000002f0  6f 6d 20 74 68 65 20 69  6e 70 75 74 20 62 75 66  |om the input buf|
00000300  66 65 72 2c 20 79 6f 75  20 63 61 6e 6e 6f 74 20  |fer, you cannot |
00000310  75 73 65 20 2a 46 58 20  32 2c 20 31 20 61 6e 64  |use *FX 2, 1 and|
00000320  0d 20 20 20 20 20 20 2a  46 58 20 33 2c 20 37 20  |.      *FX 3, 7 |
00000330  74 6f 20 72 65 64 69 72  65 63 74 20 6b 65 79 62  |to redirect keyb|
00000340  6f 61 72 64 20 61 6e 64  20 73 63 72 65 65 6e 20  |oard and screen |
00000350  61 63 74 69 76 69 74 79  20 74 6f 20 74 65 20 70  |activity to te p|
00000360  6f 72 74 20 61 73 20 0d  20 20 20 20 20 20 74 68  |ort as .      th|
00000370  69 73 20 6f 6e 6c 79 20  77 6f 72 6b 73 20 77 69  |is only works wi|
00000380  74 68 20 74 68 65 20 62  75 69 6c 74 20 69 6e 20  |th the built in |
00000390  73 65 72 69 61 6c 20 69  6e 74 65 72 66 61 63 65  |serial interface|
000003a0  2e 0d 0d 20 20 20 46 58  20 37 20 28 53 65 74 20  |...   FX 7 (Set |
000003b0  72 65 63 65 69 76 65 20  72 61 74 65 29 0d 20 20  |receive rate).  |
000003c0  20 20 20 20 52 61 74 65  73 20 62 65 74 77 65 65  |    Rates betwee|
000003d0  6e 20 37 35 20 61 6e 64  20 31 39 32 30 30 20 62  |n 75 and 19200 b|
000003e0  61 75 64 20 61 72 65 20  70 6f 73 73 69 62 6c 65  |aud are possible|
000003f0  2e 20 54 68 69 73 20 63  61 6c 6c 20 72 65 74 75  |. This call retu|
00000400  72 6e 73 0d 20 20 20 20  20 20 77 69 74 68 20 74  |rns.      with t|
00000410  68 65 20 58 20 61 6e 64  20 59 20 72 65 67 69 73  |he X and Y regis|
00000420  74 65 72 20 73 65 74 20  74 6f 20 74 68 65 20 6f  |ter set to the o|
00000430  6c 64 20 55 4c 41 20 63  6f 6e 74 65 6e 74 73 20  |ld ULA contents |
00000440  28 53 65 65 20 2a 46 58  20 32 34 32 0d 20 20 20  |(See *FX 242.   |
00000450  20 20 20 62 65 6c 6f 77  29 2e 20 54 68 65 20 64  |   below). The d|
00000460  65 66 61 75 6c 74 2c 20  73 65 74 20 77 69 74 68  |efault, set with|
00000470  20 2a 46 58 20 37 2c 20  30 20 69 73 20 39 36 30  | *FX 7, 0 is 960|
00000480  30 20 62 61 75 64 2e 0d  0d 20 20 20 46 58 20 38  |0 baud...   FX 8|
00000490  20 28 53 65 74 20 74 72  61 6e 73 6d 69 74 20 72  | (Set transmit r|
000004a0  61 74 65 29 0d 20 20 20  20 20 20 52 61 74 65 73  |ate).      Rates|
000004b0  20 62 65 74 77 65 65 6e  20 37 35 20 61 6e 64 20  | between 75 and |
000004c0  31 39 32 30 30 20 62 61  75 64 20 61 72 65 20 70  |19200 baud are p|
000004d0  6f 73 73 69 62 6c 65 2e  20 54 68 69 73 20 63 61  |ossible. This ca|
000004e0  6c 6c 20 72 65 74 75 72  6e 73 20 0d 20 20 20 20  |ll returns .    |
000004f0  20 20 77 69 74 68 20 74  68 65 20 58 20 61 6e 64  |  with the X and|
00000500  20 59 20 72 65 67 69 73  74 65 72 20 73 65 74 20  | Y register set |
00000510  74 6f 20 74 68 65 20 6f  6c 64 20 55 4c 41 20 63  |to the old ULA c|
00000520  6f 6e 74 65 6e 74 73 20  28 53 65 65 20 2a 46 58  |ontents (See *FX|
00000530  20 32 34 32 0d 20 20 20  20 20 20 62 65 6c 6f 77  | 242.      below|
00000540  29 2e 20 54 68 65 20 64  65 66 61 75 6c 74 2c 20  |). The default, |
00000550  73 65 74 20 77 69 74 68  20 2a 46 58 20 38 2c 20  |set with *FX 8, |
00000560  30 20 69 73 20 39 36 30  30 20 62 61 75 64 2e 0d  |0 is 9600 baud..|
00000570  0d 20 20 20 46 58 20 31  35 36 20 28 52 65 61 64  |.   FX 156 (Read|
00000580  2f 77 72 69 74 65 20 36  38 35 30 20 63 6f 6e 74  |/write 6850 cont|
00000590  72 6f 6c 20 72 65 67 69  73 74 65 72 20 70 6c 75  |rol register plu|
000005a0  73 20 4f 53 20 63 6f 70  79 29 0d 20 20 20 20 20  |s OS copy).     |
000005b0  20 54 68 69 73 20 63 61  6c 6c 20 77 72 69 74 65  | This call write|
000005c0  73 20 74 6f 20 74 68 65  20 63 6f 6e 74 72 6f 6c  |s to the control|
000005d0  20 72 65 67 69 73 74 65  72 20 6f 66 20 74 68 65  | register of the|
000005e0  20 36 38 35 30 20 63 68  69 70 20 61 6e 64 20 74  | 6850 chip and t|
000005f0  68 65 0d 20 20 20 20 20  20 4f 53 20 63 6f 70 79  |he.      OS copy|
00000600  2e 20 42 79 20 63 6f 6e  73 75 6c 74 69 6e 67 20  |. By consulting |
00000610  74 68 65 20 36 38 35 30  20 64 61 74 61 20 73 68  |the 6850 data sh|
00000620  65 65 74 2c 20 69 74 20  69 73 20 70 6f 73 73 69  |eet, it is possi|
00000630  62 6c 65 20 74 6f 20 69  6d 2d 0d 20 20 20 20 20  |ble to im-.     |
00000640  20 70 6c 65 6d 65 6e 74  20 73 65 72 69 61 6c 20  | plement serial |
00000650  73 74 61 6e 64 61 72 64  73 20 6f 74 68 65 72 20  |standards other |
00000660  74 68 61 6e 20 74 68 65  20 22 38 4e 31 22 20 64  |than the "8N1" d|
00000670  65 66 61 75 6c 74 2e 0d  20 20 20 20 20 20 20 20  |efault..        |
00000680  20 54 68 65 20 61 63 74  69 6f 6e 20 6f 66 20 74  | The action of t|
00000690  68 69 73 20 4f 53 42 79  74 65 20 69 73 3a 0d 20  |his OSByte is:. |
000006a0  20 20 20 20 20 20 20 20  20 20 20 3c 72 65 67 69  |           <regi|
000006b0  73 74 65 72 3e 20 3d 20  28 3c 6f 6c 64 72 65 67  |ster> = (<oldreg|
000006c0  69 73 74 65 72 3e 20 41  4e 44 20 59 29 20 45 4f  |ister> AND Y) EO|
000006d0  52 20 58 0d 0d 20 20 20  20 20 20 72 65 74 75 72  |R X..      retur|
000006e0  6e 69 6e 67 20 77 69 74  68 20 58 20 3d 20 3c 6f  |ning with X = <o|
000006f0  6c 64 72 65 67 69 73 74  65 72 3e 20 61 6e 64 20  |ldregister> and |
00000700  41 2c 20 59 20 70 72 65  73 65 72 76 65 64 2e 0d  |A, Y preserved..|
00000710  0d 20 20 20 46 58 20 31  38 31 20 28 44 65 74 65  |.   FX 181 (Dete|
00000720  72 6d 69 6e 65 20 61 63  74 69 6f 6e 20 6f 6e 20  |rmine action on |
00000730  72 65 63 65 69 76 69 6e  67 20 65 73 63 61 70 65  |receiving escape|
00000740  2f 73 6f 66 74 20 6b 65  79 29 0d 20 20 20 20 20  |/soft key).     |
00000750  20 55 6e 69 6d 70 6c 65  6d 65 6e 74 65 64 2e 20  | Unimplemented. |
00000760  4e 6f 20 65 78 70 61 6e  73 69 6f 6e 20 6f 66 20  |No expansion of |
00000770  65 73 63 61 70 65 20 6f  72 20 73 6f 66 74 20 6b  |escape or soft k|
00000780  65 79 73 20 6f 63 63 75  72 2e 0d 0d 20 20 20 46  |eys occur...   F|
00000790  58 20 31 39 31 20 28 52  65 61 64 2f 77 72 69 74  |X 191 (Read/writ|
000007a0  65 20 52 53 34 32 33 20  69 6e 20 75 73 65 20 66  |e RS423 in use f|
000007b0  6c 61 67 29 0d 20 20 20  20 20 20 54 68 69 73 20  |lag).      This |
000007c0  63 61 6c 6c 20 74 65 73  74 73 20 77 68 65 74 68  |call tests wheth|
000007d0  65 72 20 74 68 65 20 52  53 34 32 33 20 68 61 72  |er the RS423 har|
000007e0  64 77 61 72 65 20 69 73  20 62 75 73 79 2c 20 72  |dware is busy, r|
000007f0  65 74 75 72 6e 69 6e 67  20 77 69 74 68 0d 20 20  |eturning with.  |
00000800  20 20 20 20 62 69 74 20  37 20 73 65 74 20 69 66  |    bit 7 set if|
00000810  20 69 74 20 69 73 20 66  72 65 65 2c 20 62 69 74  | it is free, bit|
00000820  73 20 30 20 74 6f 20 36  20 61 72 65 20 75 6e 64  |s 0 to 6 are und|
00000830  65 66 69 6e 65 64 2e 20  56 61 6c 75 65 20 27 62  |efined. Value 'b|
00000840  75 73 79 27 0d 20 20 20  20 20 20 6d 65 61 6e 73  |usy'.      means|
00000850  20 74 68 61 74 20 65 69  74 68 65 72 20 74 72 61  | that either tra|
00000860  6e 73 6d 69 74 20 6f 72  20 72 65 63 65 69 76 65  |nsmit or receive|
00000870  20 69 6e 74 65 72 72 75  70 74 73 20 61 72 65 20  | interrupts are |
00000880  65 6e 61 62 6c 65 64 2c  0d 20 20 20 20 20 20 77  |enabled,.      w|
00000890  72 69 74 65 73 20 74 6f  20 74 68 69 73 20 6c 6f  |rites to this lo|
000008a0  63 61 74 69 6f 6e 20 61  72 65 20 69 67 6e 6f 72  |cation are ignor|
000008b0  65 64 2e 0d 0d 20 20 20  46 58 20 31 39 31 20 28  |ed...   FX 191 (|
000008c0  52 65 61 64 2f 77 72 69  74 65 20 36 38 35 30 20  |Read/write 6850 |
000008d0  63 6f 6e 74 72 6f 6c 20  72 65 67 69 73 74 65 72  |control register|
000008e0  20 4f 53 20 63 6f 70 79  20 6f 6e 6c 79 29 0d 20  | OS copy only). |
000008f0  20 20 20 20 20 54 68 69  73 20 63 61 6c 6c 20 72  |     This call r|
00000900  65 61 64 73 20 6f 72 20  77 72 69 74 65 73 20 74  |eads or writes t|
00000910  68 65 20 4f 53 20 63 6f  70 79 20 6f 66 20 74 68  |he OS copy of th|
00000920  65 20 63 6f 6e 74 72 6f  6c 20 72 65 67 69 73 74  |e control regist|
00000930  65 72 20 6f 6e 0d 20 20  20 20 20 20 74 68 65 20  |er on.      the |
00000940  36 38 35 30 20 63 68 69  70 2e 20 44 6f 20 6e 6f  |6850 chip. Do no|
00000950  74 20 77 72 69 74 65 20  74 6f 20 74 68 69 73 20  |t write to this |
00000960  6c 6f 63 61 74 69 6f 6e  20 61 73 20 69 74 20 77  |location as it w|
00000970  6f 75 6c 64 20 6d 61 6b  65 20 74 68 65 0d 20 20  |ould make the.  |
00000980  20 20 20 20 63 6f 70 79  20 69 6e 63 6f 6e 73 69  |    copy inconsi|
00000990  73 74 65 6e 74 20 77 69  74 68 20 74 68 65 20 76  |stent with the v|
000009a0  61 6c 75 65 20 69 6e 20  74 68 65 20 63 68 69 70  |alue in the chip|
000009b0  2e 0d 0d 20 20 20 46 58  20 32 30 33 20 28 52 65  |...   FX 203 (Re|
000009c0  61 64 2f 77 72 69 74 65  20 69 6e 70 75 74 20 62  |ad/write input b|
000009d0  75 66 66 65 72 20 68 61  6e 64 73 68 61 6b 65 20  |uffer handshake |
000009e0  63 65 69 6c 69 6e 67 29  0d 20 20 20 20 20 20 49  |ceiling).      I|
000009f0  66 20 74 68 65 20 6e 75  6d 62 65 72 20 6f 66 20  |f the number of |
00000a00  66 72 65 65 20 62 79 74  65 73 20 69 6e 20 74 68  |free bytes in th|
00000a10  65 20 69 6e 70 75 74 20  62 75 66 66 65 72 20 66  |e input buffer f|
00000a20  61 6c 6c 73 20 62 65 6c  6f 77 20 74 68 65 0d 20  |alls below the. |
00000a30  20 20 20 20 20 6e 75 6d  62 65 72 20 68 65 6c 64  |     number held|
00000a40  20 69 6e 20 74 68 69 73  20 6c 6f 63 61 74 69 6f  | in this locatio|
00000a50  6e 20 74 68 65 20 52 54  53 20 6c 69 6e 65 20 77  |n the RTS line w|
00000a60  69 6c 6c 20 67 6f 20 68  69 67 68 20 74 6f 20 73  |ill go high to s|
00000a70  74 6f 70 20 61 6e 79 0d  20 20 20 20 20 20 66 75  |top any.      fu|
00000a80  72 74 68 65 72 20 62 79  74 65 73 20 62 65 69 6e  |rther bytes bein|
00000a90  67 20 73 65 6e 74 20 66  72 6f 6d 20 74 68 65 20  |g sent from the |
00000aa0  6f 74 68 65 72 20 63 6f  6d 70 75 74 65 72 2e 0d  |other computer..|
00000ab0  20 20 20 20 20 20 20 20  20 49 74 20 63 6f 6e 74  |         It cont|
00000ac0  61 69 6e 73 20 39 20 62  79 20 64 65 66 61 75 6c  |ains 9 by defaul|
00000ad0  74 20 6f 6e 20 73 6f 66  74 20 61 6e 64 20 68 61  |t on soft and ha|
00000ae0  72 64 20 72 65 73 65 74  73 2e 0d 0d 20 20 20 46  |rd resets...   F|
00000af0  58 20 32 30 34 20 28 52  65 61 64 2f 77 72 69 74  |X 204 (Read/writ|
00000b00  65 20 73 65 72 69 61 6c  20 73 75 70 70 72 65 73  |e serial suppres|
00000b10  73 69 6f 6e 20 66 6c 61  67 29 0d 20 20 20 20 20  |sion flag).     |
00000b20  20 55 6e 69 6d 70 6c 65  6d 65 6e 74 65 64 2e 20  | Unimplemented. |
00000b30  54 68 65 20 73 65 63 6f  6e 64 20 73 65 72 69 61  |The second seria|
00000b40  6c 20 63 61 72 64 20 52  53 34 32 33 20 69 6e 70  |l card RS423 inp|
00000b50  75 74 20 63 61 6e 6e 6f  74 20 62 65 20 0d 20 20  |ut cannot be .  |
00000b60  20 20 20 20 73 75 70 70  72 65 73 73 65 64 2e 0d  |    suppressed..|
00000b70  0d 20 20 20 46 58 20 32  30 35 20 28 52 65 61 64  |.   FX 205 (Read|
00000b80  2f 77 72 69 74 65 20 68  61 72 64 77 61 72 65 20  |/write hardware |
00000b90  75 73 65 20 66 6c 61 67  29 0d 20 20 20 20 20 20  |use flag).      |
00000ba0  54 68 69 73 20 6c 6f 63  61 74 69 6f 6e 20 63 6f  |This location co|
00000bb0  6e 74 61 69 6e 73 20 26  30 30 20 69 66 20 74 68  |ntains &00 if th|
00000bc0  65 20 68 61 72 64 77 61  72 65 20 69 73 20 75 73  |e hardware is us|
00000bd0  65 64 20 69 6e 20 52 53  34 32 33 20 64 61 74 61  |ed in RS423 data|
00000be0  0d 20 20 20 20 20 20 6d  6f 64 65 20 26 34 30 20  |.      mode &40 |
00000bf0  69 66 20 74 68 65 20 68  61 72 64 77 61 72 65 20  |if the hardware |
00000c00  69 73 20 75 73 65 64 20  69 6e 20 63 61 73 73 65  |is used in casse|
00000c10  74 74 65 20 6d 6f 64 65  2e 20 49 74 20 77 69 6c  |tte mode. It wil|
00000c20  6c 20 61 6c 77 61 79 73  0d 20 20 20 20 20 20 63  |l always.      c|
00000c30  6f 6e 74 61 69 6e 20 30  20 66 6f 72 20 74 68 65  |ontain 0 for the|
00000c40  20 73 65 63 6f 6e 64 20  73 65 72 69 61 6c 20 63  | second serial c|
00000c50  61 72 64 2e 0d 0d 20 20  20 46 58 20 32 33 32 20  |ard...   FX 232 |
00000c60  28 52 65 61 64 2f 77 72  69 74 65 20 49 52 51 20  |(Read/write IRQ |
00000c70  6d 61 73 6b 29 0d 20 20  20 20 20 20 55 6e 69 6d  |mask).      Unim|
00000c80  70 6c 65 6d 65 6e 74 65  64 2e 20 54 68 65 20 49  |plemented. The I|
00000c90  52 51 20 6d 61 73 6b 20  69 73 20 61 6c 77 61 79  |RQ mask is alway|
00000ca0  73 20 32 35 35 2c 20 61  6e 64 20 68 61 6e 64 6c  |s 255, and handl|
00000cb0  65 64 20 69 6e 74 65 72  6e 61 6c 6c 79 2e 0d 0d  |ed internally...|
00000cc0  20 20 20 46 58 20 32 34  32 20 28 52 65 61 64 2f  |   FX 242 (Read/|
00000cd0  77 72 69 74 65 20 73 65  72 69 61 6c 20 55 4c 41  |write serial ULA|
00000ce0  20 72 65 67 69 73 74 65  72 20 4f 53 20 63 6f 70  | register OS cop|
00000cf0  79 20 6f 6e 6c 79 29 0d  20 20 20 20 20 20 54 68  |y only).      Th|
00000d00  69 73 20 63 61 6c 6c 20  72 65 61 64 73 20 6f 72  |is call reads or|
00000d10  20 77 72 69 74 65 73 20  74 68 65 20 73 65 63 6f  | writes the seco|
00000d20  6e 64 20 73 65 72 69 61  6c 20 63 61 72 64 27 73  |nd serial card's|
00000d30  20 73 65 72 69 61 6c 20  55 4c 41 2e 20 54 68 65  | serial ULA. The|
00000d40  0d 20 20 20 20 20 20 62  79 74 65 20 69 73 20 73  |.      byte is s|
00000d50  65 74 20 6f 75 74 20 61  73 20 25 6d 73 72 72 72  |et out as %msrrr|
00000d60  74 74 74 6d 20 77 68 65  72 65 3a 0d 20 20 20 20  |tttm where:.    |
00000d70  20 20 20 20 20 6d 3d 6d  6f 74 6f 72 20 72 65 6c  |     m=motor rel|
00000d80  61 79 20 73 74 61 74 65  20 28 61 6c 77 61 79 73  |ay state (always|
00000d90  20 30 2c 20 74 68 65 72  65 20 69 73 20 6e 6f 20  | 0, there is no |
00000da0  72 65 6c 61 79 20 6f 6e  20 74 68 65 20 63 61 72  |relay on the car|
00000db0  64 29 0d 20 20 20 20 20  20 20 20 20 73 3d 73 79  |d).         s=sy|
00000dc0  73 74 65 6d 20 73 65 6c  65 63 74 20 28 61 6c 77  |stem select (alw|
00000dd0  61 79 73 20 31 2c 20 74  68 65 20 63 61 72 64 20  |ays 1, the card |
00000de0  69 73 20 61 6c 77 61 79  73 20 69 6e 20 52 53 34  |is always in RS4|
00000df0  32 33 20 6d 6f 64 65 29  0d 20 20 20 20 20 20 20  |23 mode).       |
00000e00  20 20 72 72 72 3d 72 65  63 65 69 76 65 20 62 61  |  rrr=receive ba|
00000e10  75 64 20 72 61 74 65 20  28 73 65 65 20 74 61 62  |ud rate (see tab|
00000e20  6c 65 29 0d 20 20 20 20  20 20 20 20 20 74 74 74  |le).         ttt|
00000e30  3d 74 72 61 6e 73 6d 69  74 20 62 61 75 64 20 72  |=transmit baud r|
00000e40  61 74 65 20 28 73 65 65  20 74 61 62 6c 65 29 0d  |ate (see table).|
00000e50  0d 20 20 20 20 20 20 54  68 65 20 62 61 75 64 20  |.      The baud |
00000e60  72 61 74 65 73 20 72 65  61 64 20 66 72 6f 6d 20  |rates read from |
00000e70  74 68 65 20 55 4c 41 20  61 72 65 3a 0d 20 20 20  |the ULA are:.   |
00000e80  20 20 20 20 20 20 25 30  30 30 20 3d 20 31 39 32  |      %000 = 192|
00000e90  30 30 20 20 20 20 20 20  25 30 30 31 20 3d 20 31  |00      %001 = 1|
00000ea0  32 30 30 0d 20 20 20 20  20 20 20 20 20 25 31 30  |200.         %10|
00000eb0  30 20 3d 20 20 39 36 30  30 20 20 20 20 20 20 25  |0 =  9600      %|
00000ec0  31 30 31 20 3d 20 20 33  30 30 0d 20 20 20 20 20  |101 =  300.     |
00000ed0  20 20 20 20 25 30 31 30  20 3d 20 20 34 38 30 30  |    %010 =  4800|
00000ee0  20 20 20 20 20 20 25 30  31 31 20 3d 20 31 35 30  |      %011 = 150|
00000ef0  0d 20 20 20 20 20 20 20  20 20 25 31 31 30 20 3d  |.         %110 =|
00000f00  20 20 32 34 30 30 20 20  20 20 20 20 25 31 31 31  |  2400      %111|
00000f10  20 3d 20 20 37 35 0d 0d  20 20 20 20 20 20 44 6f  | =  75..      Do|
00000f20  20 6e 6f 74 20 77 72 69  74 65 20 74 6f 20 74 68  | not write to th|
00000f30  69 73 20 6c 6f 63 61 74  69 6f 6e 20 61 73 20 69  |is location as i|
00000f40  74 20 77 6f 75 6c 64 20  6d 61 6b 65 20 74 68 65  |t would make the|
00000f50  20 63 6f 70 79 20 69 6e  63 6f 6e 73 69 73 2d 0d  | copy inconsis-.|
00000f60  20 20 20 20 20 20 74 65  6e 74 20 77 69 74 68 20  |      tent with |
00000f70  74 68 65 20 76 61 6c 75  65 20 69 6e 20 74 68 65  |the value in the|
00000f80  20 55 4c 41 2e 0d 20 20  20 20 20 20 20 20 20 20  | ULA..          |
00000f90  20 20 20 20 20 20 20 20  20 20 20 20 20 20 20 20  |                |
*
00000fb0  20 20 20 20 20 20 52 6f  62 65 72 74 20 53 70 72  |      Robert Spr|
00000fc0  6f 77 73 6f 6e 2c 20 45  55 47 20 23 35 36 0d     |owson, EUG #56.|
00000fcf
V/+2NDPO2.m0
V/+2NDPO2.m1
V/+2NDPO2.m2
V/+2NDPO2.m4
V/+2NDPO2.m5