Home » Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_56.ADF » V/+2NDPO1
V/+2NDPO1
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/+2NDPO1 |
Read OK: | ✔ |
File size: | 0B3C bytes |
Load address: | 2B204556 |
Exec address: | 50444E32 |
Duplicates
There are 2 duplicate copies of this file in the archive:
- AEW website » eug » eug_3_5_discs_Eug-56_A-EUG56.adf » V/+2NDPO1
- AEW website » eug » eug_5_25_discs_Eug-56_D-EUG56.dsd » V.+2NDPO1
- Personal collection » Acorn ADFS disks » Electron_User_Group » EUG_56.ADF » V/+2NDPO1
File contents
MANUAL FOR 2ND SERIAL PORT (6502 ROM image) By Robert Sprowson This file describes the ROM image 2NDSERIAL, which drives the associated second serial port card hardware which contains a 6850 serial chip so the machine can have two ports in use simultaneously. The image requires at least one 2k bank of Sideways RAM or to be put onto a ROM to work. Instructions At any command prompt, eg. the BASIC prompt ">", type On a Master: *SRLOAD U.2NDSERI 8000 <socket#> *INSERT <socket#> where <socket#> may be 7, 6, 5 or 4 On a machine with SWRAM: *LOAD U.2NDSERI 8000 and press <CTRL><BREAK> to initialise. On reset, the software will claim 3 pages of memory for its private use. One page of this is for new buffer management software and the other two are for serial input/output buffers, which means it cannot be in the 'hidden' workspace on a Master series machine. You can control all the settings you would expect to be able to do with the normal on-board serial port such as baud rates, data formats, etc... Firstly, you must type *COM2 at the command line, so that changes to settings you make refer to the new serial port, then simply issue any *FX calls which you rewuire to set up the serial port (referring to the BBC Micro User Guide). To switch back to controlling the built-in serial port, issue a *COM1 command. So, for example, setting baud rates: *COM1 <talk to the on-board serial port> *FX 7,3 <sets receive speed of internal port to 300> *FX 8,4 <sets transmit speed of internal port to 1200> *COM2 <directs osbyte to the second serial port> *FX 7,6 <sets receive speed of the 2nd port to 4800> Technical Information The following conditions prevail at power up: OSBytes refer to: COM1, the internal port Baud rate: 9600 transmit and receive Parity: None Stop bits: 1 Data bits: 8 The input buffer id is 9 and output buffer id is 10. Events will be generated which may be of interest to the programmer if an RS423 error occurs or a buffer becomes full or empty: "RS423 error" .... the lost byte is passed in Y, the second serial card's 6850 register is passed in X shifted right by 1 place "Input buffer full" .... the unsuccessful byte is in Y and X=9 "Output buffer empty" .. enters with X=10 Known Problems/Future Enhancements: No known problems. Could implement the remaining three unimplemented OSBytes. History: v0.63 Modified test code to allow it to be run from ROM v0.68 Added OSByte interface See additional file (V.+2NDPO2) for Supported *FX Calls. Manual and software (C) 2000 SPROW First published EUG #56
00000000 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4d 41 | MA| 00000010 4e 55 41 4c 20 46 4f 52 20 32 4e 44 20 53 45 52 |NUAL FOR 2ND SER| 00000020 49 41 4c 20 50 4f 52 54 20 28 36 35 30 32 20 52 |IAL PORT (6502 R| 00000030 4f 4d 20 69 6d 61 67 65 29 0d 20 20 20 20 20 20 |OM image). | 00000040 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000050 20 20 20 20 42 79 20 52 6f 62 65 72 74 20 53 70 | By Robert Sp| 00000060 72 6f 77 73 6f 6e 0d 0d 54 68 69 73 20 66 69 6c |rowson..This fil| 00000070 65 20 64 65 73 63 72 69 62 65 73 20 74 68 65 20 |e describes the | 00000080 52 4f 4d 20 69 6d 61 67 65 20 32 4e 44 53 45 52 |ROM image 2NDSER| 00000090 49 41 4c 2c 20 77 68 69 63 68 20 64 72 69 76 65 |IAL, which drive| 000000a0 73 20 74 68 65 20 61 73 73 6f 63 69 61 74 65 64 |s the associated| 000000b0 0d 73 65 63 6f 6e 64 20 73 65 72 69 61 6c 20 70 |.second serial p| 000000c0 6f 72 74 20 63 61 72 64 20 68 61 72 64 77 61 72 |ort card hardwar| 000000d0 65 20 77 68 69 63 68 20 63 6f 6e 74 61 69 6e 73 |e which contains| 000000e0 20 61 20 36 38 35 30 20 73 65 72 69 61 6c 20 63 | a 6850 serial c| 000000f0 68 69 70 20 73 6f 0d 74 68 65 20 6d 61 63 68 69 |hip so.the machi| 00000100 6e 65 20 63 61 6e 20 68 61 76 65 20 74 77 6f 20 |ne can have two | 00000110 70 6f 72 74 73 20 69 6e 20 75 73 65 20 73 69 6d |ports in use sim| 00000120 75 6c 74 61 6e 65 6f 75 73 6c 79 2e 20 54 68 65 |ultaneously. The| 00000130 20 69 6d 61 67 65 20 72 65 71 75 69 72 65 73 0d | image requires.| 00000140 61 74 20 6c 65 61 73 74 20 6f 6e 65 20 32 6b 20 |at least one 2k | 00000150 62 61 6e 6b 20 6f 66 20 53 69 64 65 77 61 79 73 |bank of Sideways| 00000160 20 52 41 4d 20 6f 72 20 74 6f 20 62 65 20 70 75 | RAM or to be pu| 00000170 74 20 6f 6e 74 6f 20 61 20 52 4f 4d 20 74 6f 20 |t onto a ROM to | 00000180 77 6f 72 6b 2e 0d 0d 49 6e 73 74 72 75 63 74 69 |work...Instructi| 00000190 6f 6e 73 0d 41 74 20 61 6e 79 20 63 6f 6d 6d 61 |ons.At any comma| 000001a0 6e 64 20 70 72 6f 6d 70 74 2c 20 65 67 2e 20 74 |nd prompt, eg. t| 000001b0 68 65 20 42 41 53 49 43 20 70 72 6f 6d 70 74 20 |he BASIC prompt | 000001c0 22 3e 22 2c 20 74 79 70 65 0d 4f 6e 20 61 20 4d |">", type.On a M| 000001d0 61 73 74 65 72 3a 20 2a 53 52 4c 4f 41 44 20 55 |aster: *SRLOAD U| 000001e0 2e 32 4e 44 53 45 52 49 20 38 30 30 30 20 3c 73 |.2NDSERI 8000 <s| 000001f0 6f 63 6b 65 74 23 3e 0d 20 20 20 20 20 20 20 20 |ocket#>. | 00000200 20 20 20 20 20 2a 49 4e 53 45 52 54 20 3c 73 6f | *INSERT <so| 00000210 63 6b 65 74 23 3e 0d 20 20 20 20 20 20 20 20 20 |cket#>. | 00000220 20 20 20 20 77 68 65 72 65 20 3c 73 6f 63 6b 65 | where <socke| 00000230 74 23 3e 20 6d 61 79 20 62 65 20 37 2c 20 36 2c |t#> may be 7, 6,| 00000240 20 35 20 6f 72 20 34 0d 4f 6e 20 61 20 6d 61 63 | 5 or 4.On a mac| 00000250 68 69 6e 65 20 77 69 74 68 20 53 57 52 41 4d 3a |hine with SWRAM:| 00000260 20 2a 4c 4f 41 44 20 55 2e 32 4e 44 53 45 52 49 | *LOAD U.2NDSERI| 00000270 20 38 30 30 30 0d 20 20 20 20 20 20 20 20 20 20 | 8000. | 00000280 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 61 | a| 00000290 6e 64 20 70 72 65 73 73 20 3c 43 54 52 4c 3e 3c |nd press <CTRL><| 000002a0 42 52 45 41 4b 3e 20 74 6f 20 69 6e 69 74 69 61 |BREAK> to initia| 000002b0 6c 69 73 65 2e 0d 0d 4f 6e 20 72 65 73 65 74 2c |lise...On reset,| 000002c0 20 74 68 65 20 73 6f 66 74 77 61 72 65 20 77 69 | the software wi| 000002d0 6c 6c 20 63 6c 61 69 6d 20 33 20 70 61 67 65 73 |ll claim 3 pages| 000002e0 20 6f 66 20 6d 65 6d 6f 72 79 20 66 6f 72 20 69 | of memory for i| 000002f0 74 73 20 70 72 69 76 61 74 65 20 75 73 65 2e 0d |ts private use..| 00000300 4f 6e 65 20 70 61 67 65 20 6f 66 20 74 68 69 73 |One page of this| 00000310 20 69 73 20 66 6f 72 20 6e 65 77 20 62 75 66 66 | is for new buff| 00000320 65 72 20 6d 61 6e 61 67 65 6d 65 6e 74 20 73 6f |er management so| 00000330 66 74 77 61 72 65 20 61 6e 64 20 74 68 65 20 6f |ftware and the o| 00000340 74 68 65 72 20 74 77 6f 0d 61 72 65 20 66 6f 72 |ther two.are for| 00000350 20 73 65 72 69 61 6c 20 69 6e 70 75 74 2f 6f 75 | serial input/ou| 00000360 74 70 75 74 20 62 75 66 66 65 72 73 2c 20 77 68 |tput buffers, wh| 00000370 69 63 68 20 6d 65 61 6e 73 20 69 74 20 63 61 6e |ich means it can| 00000380 6e 6f 74 20 62 65 20 69 6e 20 74 68 65 0d 27 68 |not be in the.'h| 00000390 69 64 64 65 6e 27 20 77 6f 72 6b 73 70 61 63 65 |idden' workspace| 000003a0 20 6f 6e 20 61 20 4d 61 73 74 65 72 20 73 65 72 | on a Master ser| 000003b0 69 65 73 20 6d 61 63 68 69 6e 65 2e 0d 20 20 20 |ies machine.. | 000003c0 59 6f 75 20 63 61 6e 20 63 6f 6e 74 72 6f 6c 20 |You can control | 000003d0 61 6c 6c 20 74 68 65 20 73 65 74 74 69 6e 67 73 |all the settings| 000003e0 20 79 6f 75 20 77 6f 75 6c 64 20 65 78 70 65 63 | you would expec| 000003f0 74 20 74 6f 20 62 65 20 61 62 6c 65 20 74 6f 20 |t to be able to | 00000400 64 6f 0d 77 69 74 68 20 74 68 65 20 6e 6f 72 6d |do.with the norm| 00000410 61 6c 20 6f 6e 2d 62 6f 61 72 64 20 73 65 72 69 |al on-board seri| 00000420 61 6c 20 70 6f 72 74 20 73 75 63 68 20 61 73 20 |al port such as | 00000430 62 61 75 64 20 72 61 74 65 73 2c 20 64 61 74 61 |baud rates, data| 00000440 20 66 6f 72 6d 61 74 73 2c 0d 65 74 63 2e 2e 2e | formats,.etc...| 00000450 20 46 69 72 73 74 6c 79 2c 20 79 6f 75 20 6d 75 | Firstly, you mu| 00000460 73 74 20 74 79 70 65 20 2a 43 4f 4d 32 20 61 74 |st type *COM2 at| 00000470 20 74 68 65 20 63 6f 6d 6d 61 6e 64 20 6c 69 6e | the command lin| 00000480 65 2c 20 73 6f 20 74 68 61 74 20 63 68 61 6e 67 |e, so that chang| 00000490 65 73 0d 74 6f 20 73 65 74 74 69 6e 67 73 20 79 |es.to settings y| 000004a0 6f 75 20 6d 61 6b 65 20 72 65 66 65 72 20 74 6f |ou make refer to| 000004b0 20 74 68 65 20 6e 65 77 20 73 65 72 69 61 6c 20 | the new serial | 000004c0 70 6f 72 74 2c 20 74 68 65 6e 20 73 69 6d 70 6c |port, then simpl| 000004d0 79 20 69 73 73 75 65 20 61 6e 79 0d 2a 46 58 20 |y issue any.*FX | 000004e0 63 61 6c 6c 73 20 77 68 69 63 68 20 79 6f 75 20 |calls which you | 000004f0 72 65 77 75 69 72 65 20 74 6f 20 73 65 74 20 75 |rewuire to set u| 00000500 70 20 74 68 65 20 73 65 72 69 61 6c 20 70 6f 72 |p the serial por| 00000510 74 20 28 72 65 66 65 72 72 69 6e 67 20 74 6f 20 |t (referring to | 00000520 74 68 65 0d 42 42 43 20 4d 69 63 72 6f 20 55 73 |the.BBC Micro Us| 00000530 65 72 20 47 75 69 64 65 29 2e 20 0d 20 20 20 54 |er Guide). . T| 00000540 6f 20 73 77 69 74 63 68 20 62 61 63 6b 20 74 6f |o switch back to| 00000550 20 63 6f 6e 74 72 6f 6c 6c 69 6e 67 20 74 68 65 | controlling the| 00000560 20 62 75 69 6c 74 2d 69 6e 20 73 65 72 69 61 6c | built-in serial| 00000570 20 70 6f 72 74 2c 20 69 73 73 75 65 20 61 20 2a | port, issue a *| 00000580 43 4f 4d 31 0d 63 6f 6d 6d 61 6e 64 2e 20 53 6f |COM1.command. So| 00000590 2c 20 66 6f 72 20 65 78 61 6d 70 6c 65 2c 20 73 |, for example, s| 000005a0 65 74 74 69 6e 67 20 62 61 75 64 20 72 61 74 65 |etting baud rate| 000005b0 73 3a 0d 0d 20 20 20 2a 43 4f 4d 31 20 20 20 20 |s:.. *COM1 | 000005c0 20 20 20 20 20 20 20 20 3c 74 61 6c 6b 20 74 6f | <talk to| 000005d0 20 74 68 65 20 6f 6e 2d 62 6f 61 72 64 20 73 65 | the on-board se| 000005e0 72 69 61 6c 20 70 6f 72 74 3e 0d 20 20 20 2a 46 |rial port>. *F| 000005f0 58 20 37 2c 33 20 20 20 20 20 20 20 20 20 20 3c |X 7,3 <| 00000600 73 65 74 73 20 72 65 63 65 69 76 65 20 73 70 65 |sets receive spe| 00000610 65 64 20 6f 66 20 69 6e 74 65 72 6e 61 6c 20 70 |ed of internal p| 00000620 6f 72 74 20 74 6f 20 33 30 30 3e 0d 20 20 20 2a |ort to 300>. *| 00000630 46 58 20 38 2c 34 20 20 20 20 20 20 20 20 20 20 |FX 8,4 | 00000640 3c 73 65 74 73 20 74 72 61 6e 73 6d 69 74 20 73 |<sets transmit s| 00000650 70 65 65 64 20 6f 66 20 69 6e 74 65 72 6e 61 6c |peed of internal| 00000660 20 70 6f 72 74 20 74 6f 20 31 32 30 30 3e 0d 20 | port to 1200>. | 00000670 20 20 2a 43 4f 4d 32 20 20 20 20 20 20 20 20 20 | *COM2 | 00000680 20 20 20 3c 64 69 72 65 63 74 73 20 6f 73 62 79 | <directs osby| 00000690 74 65 20 74 6f 20 74 68 65 20 73 65 63 6f 6e 64 |te to the second| 000006a0 20 73 65 72 69 61 6c 20 70 6f 72 74 3e 0d 20 20 | serial port>. | 000006b0 20 2a 46 58 20 37 2c 36 20 20 20 20 20 20 20 20 | *FX 7,6 | 000006c0 20 20 3c 73 65 74 73 20 72 65 63 65 69 76 65 20 | <sets receive | 000006d0 73 70 65 65 64 20 6f 66 20 74 68 65 20 32 6e 64 |speed of the 2nd| 000006e0 20 70 6f 72 74 20 74 6f 20 34 38 30 30 3e 0d 0d | port to 4800>..| 000006f0 54 65 63 68 6e 69 63 61 6c 20 49 6e 66 6f 72 6d |Technical Inform| 00000700 61 74 69 6f 6e 0d 54 68 65 20 66 6f 6c 6c 6f 77 |ation.The follow| 00000710 69 6e 67 20 63 6f 6e 64 69 74 69 6f 6e 73 20 70 |ing conditions p| 00000720 72 65 76 61 69 6c 20 61 74 20 70 6f 77 65 72 20 |revail at power | 00000730 75 70 3a 0d 0d 20 20 20 4f 53 42 79 74 65 73 20 |up:.. OSBytes | 00000740 72 65 66 65 72 20 74 6f 3a 20 20 20 20 20 20 20 |refer to: | 00000750 20 20 43 4f 4d 31 2c 20 74 68 65 20 69 6e 74 65 | COM1, the inte| 00000760 72 6e 61 6c 20 70 6f 72 74 0d 20 20 20 42 61 75 |rnal port. Bau| 00000770 64 20 72 61 74 65 3a 20 20 20 20 20 20 20 20 20 |d rate: | 00000780 20 20 20 20 20 20 20 39 36 30 30 20 74 72 61 6e | 9600 tran| 00000790 73 6d 69 74 20 61 6e 64 20 72 65 63 65 69 76 65 |smit and receive| 000007a0 0d 20 20 20 50 61 72 69 74 79 3a 20 20 20 20 20 |. Parity: | 000007b0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 4e 6f | No| 000007c0 6e 65 0d 20 20 20 53 74 6f 70 20 62 69 74 73 3a |ne. Stop bits:| 000007d0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 000007e0 31 0d 20 20 20 44 61 74 61 20 62 69 74 73 3a 20 |1. Data bits: | 000007f0 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 38 | 8| 00000800 0d 0d 54 68 65 20 69 6e 70 75 74 20 62 75 66 66 |..The input buff| 00000810 65 72 20 69 64 20 69 73 20 39 20 61 6e 64 20 6f |er id is 9 and o| 00000820 75 74 70 75 74 20 62 75 66 66 65 72 20 69 64 20 |utput buffer id | 00000830 69 73 20 31 30 2e 0d 20 20 20 45 76 65 6e 74 73 |is 10.. Events| 00000840 20 77 69 6c 6c 20 62 65 20 67 65 6e 65 72 61 74 | will be generat| 00000850 65 64 20 77 68 69 63 68 20 6d 61 79 20 62 65 20 |ed which may be | 00000860 6f 66 20 69 6e 74 65 72 65 73 74 20 74 6f 20 74 |of interest to t| 00000870 68 65 20 70 72 6f 67 72 61 6d 6d 65 72 0d 69 66 |he programmer.if| 00000880 20 61 6e 20 52 53 34 32 33 20 65 72 72 6f 72 20 | an RS423 error | 00000890 6f 63 63 75 72 73 20 6f 72 20 61 20 62 75 66 66 |occurs or a buff| 000008a0 65 72 20 62 65 63 6f 6d 65 73 20 66 75 6c 6c 20 |er becomes full | 000008b0 6f 72 20 65 6d 70 74 79 3a 0d 0d 22 52 53 34 32 |or empty:.."RS42| 000008c0 33 20 65 72 72 6f 72 22 20 2e 2e 2e 2e 20 74 68 |3 error" .... th| 000008d0 65 20 6c 6f 73 74 20 62 79 74 65 20 69 73 20 70 |e lost byte is p| 000008e0 61 73 73 65 64 20 69 6e 20 59 2c 20 74 68 65 20 |assed in Y, the | 000008f0 73 65 63 6f 6e 64 20 73 65 72 69 61 6c 0d 20 20 |second serial. | 00000900 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000910 20 63 61 72 64 27 73 20 36 38 35 30 20 72 65 67 | card's 6850 reg| 00000920 69 73 74 65 72 20 69 73 20 70 61 73 73 65 64 20 |ister is passed | 00000930 69 6e 20 58 20 73 68 69 66 74 65 64 20 72 69 67 |in X shifted rig| 00000940 68 74 20 62 79 0d 20 20 20 20 20 20 20 20 20 20 |ht by. | 00000950 20 20 20 20 20 20 20 20 20 31 20 70 6c 61 63 65 | 1 place| 00000960 0d 22 49 6e 70 75 74 20 62 75 66 66 65 72 20 66 |."Input buffer f| 00000970 75 6c 6c 22 20 2e 2e 2e 2e 20 74 68 65 20 75 6e |ull" .... the un| 00000980 73 75 63 63 65 73 73 66 75 6c 20 62 79 74 65 20 |successful byte | 00000990 69 73 20 69 6e 20 59 20 61 6e 64 20 58 3d 39 0d |is in Y and X=9.| 000009a0 22 4f 75 74 70 75 74 20 62 75 66 66 65 72 20 65 |"Output buffer e| 000009b0 6d 70 74 79 22 20 2e 2e 20 65 6e 74 65 72 73 20 |mpty" .. enters | 000009c0 77 69 74 68 20 58 3d 31 30 0d 0d 4b 6e 6f 77 6e |with X=10..Known| 000009d0 20 50 72 6f 62 6c 65 6d 73 2f 46 75 74 75 72 65 | Problems/Future| 000009e0 20 45 6e 68 61 6e 63 65 6d 65 6e 74 73 3a 0d 4e | Enhancements:.N| 000009f0 6f 20 6b 6e 6f 77 6e 20 70 72 6f 62 6c 65 6d 73 |o known problems| 00000a00 2e 0d 43 6f 75 6c 64 20 69 6d 70 6c 65 6d 65 6e |..Could implemen| 00000a10 74 20 74 68 65 20 72 65 6d 61 69 6e 69 6e 67 20 |t the remaining | 00000a20 74 68 72 65 65 20 75 6e 69 6d 70 6c 65 6d 65 6e |three unimplemen| 00000a30 74 65 64 20 4f 53 42 79 74 65 73 2e 0d 0d 48 69 |ted OSBytes...Hi| 00000a40 73 74 6f 72 79 3a 0d 76 30 2e 36 33 20 4d 6f 64 |story:.v0.63 Mod| 00000a50 69 66 69 65 64 20 74 65 73 74 20 63 6f 64 65 20 |ified test code | 00000a60 74 6f 20 61 6c 6c 6f 77 20 69 74 20 74 6f 20 62 |to allow it to b| 00000a70 65 20 72 75 6e 20 66 72 6f 6d 20 52 4f 4d 0d 76 |e run from ROM.v| 00000a80 30 2e 36 38 20 41 64 64 65 64 20 4f 53 42 79 74 |0.68 Added OSByt| 00000a90 65 20 69 6e 74 65 72 66 61 63 65 0d 0d 53 65 65 |e interface..See| 00000aa0 20 61 64 64 69 74 69 6f 6e 61 6c 20 66 69 6c 65 | additional file| 00000ab0 20 28 56 2e 2b 32 4e 44 50 4f 32 29 20 66 6f 72 | (V.+2NDPO2) for| 00000ac0 20 53 75 70 70 6f 72 74 65 64 20 2a 46 58 20 43 | Supported *FX C| 00000ad0 61 6c 6c 73 2e 0d 0d 20 20 20 20 20 20 20 20 20 |alls... | 00000ae0 20 20 20 20 20 20 20 20 20 4d 61 6e 75 61 6c 20 | Manual | 00000af0 61 6e 64 20 73 6f 66 74 77 61 72 65 20 28 43 29 |and software (C)| 00000b00 20 32 30 30 30 20 53 50 52 4f 57 0d 20 20 20 20 | 2000 SPROW. | 00000b10 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | | 00000b20 20 20 20 20 46 69 72 73 74 20 70 75 62 6c 69 73 | First publis| 00000b30 68 65 64 20 45 55 47 20 23 35 36 0d |hed EUG #56.| 00000b3c