MC-Basic:INPB

From SoftMC-Wiki
Revision as of 16:00, 13 December 2010 by Arwiebe (talk | contribs) (Created page with '{{MC-Basic |SHORT FORM= |SYNTAX= Inpb (''<address>'') |AVAILABILITY= All versions |DESCRIPTION= This command reads the value of a byte at the specified I/O space address. |T…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This command reads the value of a byte at the specified I/O space address.

Syntax

Inpb (<address>)

Availability

All versions

Type

The <address> must be a Long expression. The function returns a Long value.

Range

The <address> must be in the range 0x0 to 0xFFFF

Scope

Task or Terminal

Limitations

Read-Only

Examples

X=inpb (256)                            ‘read a byte and assign its value to variable X

?inpb(256)                                 ‘Read a byte

See Also