![ICS AOB8/12 Скачать руководство пользователя страница 25](http://html1.mh-extra.com/html/ics/aob8-12/aob8-12_product-manual_3523401025.webp)
Manual Number: 00650-134-4
Page 16
AOB8/12 & AOB16/12 Manual
InPort
Function:
Reads an integer from a hardware port. This function returns the 16-bit value
obtained from reading the low byte from
address
and the high byte from
1
.
Declaration:
function InPort(byval
address as integer) as integer
OutPortb
Function:
Writes the lower eight bits of
value
to the hardware port at
address
. This function
returns the value output.
Declaration:
function OutPortb(byval
address as integer, byval value as
integer) as integer
OutPort
Function:
Writes all 16 bits of
value
to the hardware port at
address
. This function returns the
value output.
Declaration:
function OutPort(byval
address as integer, byval value as
integer) as integer
Peek
Function:
Reads a byte from main memory (DRAM).
Declaration:
function Peek(byval segment as integer, byval offset as
integer) as integer
Poke
Function:
Writes the lower eight bits of
value
to
segment
:
offset.
Declaration:
function Poke(byval segment as integer, byval offset as
integer, byval value as integer) as integer
Note that in all of the above functions, an inherent limitation of BASIC in general, and VisualBASIC
in particular, makes the values sent less intuitive. All integers in BASIC are signed numbers, wherein
data are stored in two’s complement form. All bit patterns must be converted to-and-from this two’s
complement form if meaningful display is required. Otherwise, values returned from the InPortb
function will be -128 to 127, rather than 0 to 255. An alternative is to perform all assignments in
hexadecimal, rather then decimal form.
Before the program will execute, the .GBL file must be modified to include the path to the
VBACCES.DLL as appropriate for your system. Merely replace the statement “VBACCES.DLL”
with “
drive:path
\VBACCES.DLL”.
As an alternative to changing the source code, you can copy the VBACCES.DLL file into your
Windows directory. This will allow multiple programs to find the same .DLL without having to know
where it is located. Just leave off all references to a path in the .GBL file as shown in the sample.
Содержание AOB8/12
Страница 1: ...Model AOB8 12 AOB16 12 Product Manual MANUAL NUMBER 00650 134 4C...
Страница 3: ...Page iv This page intentionally left blank...
Страница 7: ...Page viii This page intentionally left blank...
Страница 9: ...Page x This page intentionally left blank...
Страница 15: ...Manual Number 00650 134 4 Page 6 AOB8 12 AOB16 12 Manual Figure 3 1 Option Selection Map...
Страница 21: ...Manual Number 00650 134 4 Page 12 AOB8 12 AOB16 12 Manual This page intentionally left blank...
Страница 23: ...Manual Number 00650 134 4 Page 14 AOB8 12 AOB16 12 Manual This page intentionally left blank...
Страница 27: ...Manual Number 00650 134 4 Page 18 AOB8 12 AOB16 12 Manual This page intentionally left blank...