ICS Advent AOB8/16 Product Manual page 23

Table of Contents

Advertisement

AOB8/16 &AOB16/16 Manual
To use these files in a VisualBASIC program, you must create a .MAK file (File l New Project)
similar to the sample provided (or else, modify your existing project file) and include the .GBL file
(File | Add File). Once this has been done, VisualBASIC will be enhanced with the addition of the
following functions.
InPortb
Function:
Declaration:
InPort
Function:
Declaration:
OutPortb
Function:
Declaration:
OutPort
Function:
Declaration:
Peek
Function:
Declaration:
Poke
Function:
Declaration:
Page 14
Reads a byte from a hardware port. Due to limitations of VisualBASIC, the
number is returned in an integer.
function InPortb(byval address as integer) as integer
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 address+1.
function InPort(byval address as integer) as integer
Writes the lower eight bits of value to the hardware port at address. This
function returns the value output.
function OutPortb(byval address as integer, byval value as
integer) as integer
Writes all 16 bits of value to the hardware port at address. This function
returns the value output.
function OutPort(byval address as integer, byval value as
integer) as integer
Reads a byte from main memory (DRAM).
function Peek(byval segment as integer, byval offset as integer)
as integer
Writes the lower eight bits of value to segment:offset.
function Poke(byval segment as integer, byval offset as integer,
byval value as integer) as integer
Manual Number: 00650-010-6

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aob16/16

Table of Contents