Please enable JavaScript to view this site.

Function to define a virtual input and output zone.

These are 16-bit entities not directly connected to any physical device but with the possibilities to have its own value forced.

Access is the same as for normal inp_w and out_w. It is the user's responsibility to set the actual state of the inputs with the appropriate instruction.

The virtual block will occupy all addresses between ioBase and(ioBase + maximum(nWordIn, nWordOut) - 1).

Syntax

i32 virt_io (i32 ioBase, i32 nWordIn, i32 nWordOut)

ioBase

Minor index of the I/O group

nWordIn

Number of input words handled for this block

nWordOut

Number of output words handled for this block

Result

Returns:

Value

Meaning

0

Operation performed successfully

-1

Index ioBase less than 256

-2

Number of words <= 0

-3

I/O area already in use

-4

Memory full.

Unable to create new virtual I/O

-5

Exhausted virtual I/O managers

-10

Function can only be used by tasks 1-:-8

Validity

Task

Note

Maximum 4 different blocks can be defined

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC