80-Bus News

  

November-December 1982, Volume 1, Issue 4











Page 13 of 51











13,

SETUF has been written as a subroutine so that it may be used by other programs such as the screen dump to be described later. There is one other section of code that probably warrants explanation, setting up the FIO which is described

below.

Confiquring the FIO. In keeping with explaining setting up the printer before

explaining setting the PIO, I have configured PORT B first and will explain it last. Confused?

FORT As This is set up in bit (control) mode with all the bits as

outputs. In order, the bytes sent to PACONT to do a this arer:fFFio:733. £FF selects mode 3 (control mode) and the following © makes all the bits outputs. The 7 is the interrupt control word which is set to prevent any interrupts. The final = disables all interrupts on PORT A just to be sure,

PORT B: This is identical to the configuring of PORT A exept for the

second byte. This is £FS (1111 1000) because we require bits O,1 and 2 to be outputs and bits 3,4 and 5 to be inputs. We don’t care about 6 and 7 and so could have sent £38 etc.

The next installment.

The screen dump program will have to wait until next time, while I think of some suitable abbreviated names for it. I hope all this is of interest to someone and maybe even useful. In this extremely unlikely event I would be glad to supply a cassette of the ZEAP source ta those too busy (lazy) to type it all in. A cheque for £1-50 (ta cover costs) to COMFWARE at __ ______ Dr. Haslington Crewe Cheshire ___ ___ will secure this.

Diaeream |: SeuemaTic SunmARy OF CONNECTIONS. Nascom PIO Eeson I/F PoRT A Do Do Dy —) D, Poar B Deo > STROBE D. ____p INIT NoT useb: D, SEP ENT +Sv_, ASTB,; ARDY, Dy g Busy BsTe, BRDY Dd Pe Not uSeD: “evn 10 ACKNTA Dy <-——_ ERROR 12 Suet RD, Se 86 SCOR D, 3s +Sv Puc ur Ov (16,13) Ov (19-30, 16,33)


This is an OCR’d version of the scanned page and likely contains recognition errors.











Page 13 of 51