Manual Number: 00650-010-6
Page 14
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:
Reads a byte from a hardware port. Due to limitations of VisualBASIC, the
number is returned in an integer.
Declaration:
function InPortb(byval
address as integer) as integer
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
Summary of Contents for AOB16/16
Page 1: ...Model AOB8 16 AOB16 16 Product Manual MANUAL NUMBER 00650 010 6C...
Page 3: ...Page iv This page intentionally left blank...
Page 7: ...Page viii This page intentionally left blank...
Page 15: ...Manual Number 00650 010 6 Page 6 AOB8 16 AOB16 16 Manual Figure 3 1 Option Selection Map...
Page 21: ...Manual Number 00650 010 6 Page 12 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Page 25: ...Manual Number 00650 010 6 Page 16 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Page 27: ...Manual Number 00650 010 6 Page 18 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Page 31: ...Manual Number 00650 010 6 Page 22 AOB8 16 AOB16 16 Manual This page intentionally left blank...
Page 37: ...Manual Number 00650 010 6 Page 28 AOB8 16 AOB16 16 Manual This page intentionally left blank...