Remote-processing BASIC 52 Manual de usuario Pagina 74

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 163
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 73
RPBASIC-52 PROGRAMMING GUIDE
2-55
LINEB (Function)
Syntax: A = LINEB(i/o bank,add ress)
Where: i/o bank = 0 to 7. Specific functions are card de pendent. Refer to your hardware manual.
address = device dependent. Usually it is 0 to 3.
Function: Reads a byte from an I/O device.
Mode: Command, Run
Use: A = LINEB(3,0) Reads port A of 8255 at digital port.
Cards: All. i/o bank is unique to each card.
DESCRIPTION
This function is equivalent to INP in other BASICs. Data is read 8 bits at a time in contrast to other LINE
functions which return 1 bit at a time. The i/o bank selects a particular I/O device listed in your hardware
manual.
Use this command to read devices and obtain data not otherwise available using RPBASIC-52.
RELATED
LINE, LINE# (function), LINE, LINE#, LINEB (statement), CONFIG LINE
ERROR
BAD ARGUMENT i/o bank > 7
EXAMPLE
The following example reads all 8 lines at port A on the digital I/O port.
100 A = LINEB(3,0)
Vista de pagina 73
1 2 ... 69 70 71 72 73 74 75 76 77 78 79 ... 162 163

Comentarios a estos manuales

Sin comentarios