-
Notifications
You must be signed in to change notification settings - Fork 9
BASIC IN Function
Curtis F Kaylor edited this page Sep 18, 2025
·
8 revisions
# DEPRECATED
TYPE: USB BASIC system function
FORMAT: IN ( port )
Action: Reads a byte from the I/O port specified by port.
- port is an expression that reduces to an integer value in the range 0 to 255.
Examples of IN:
PRINT IN(252)
Prints cassette port input status
S=IN(254)
Sets variable S to Printer Ready status
FORMAT: IN ( address )
Action: Reads a byte from the I/O port specified by the least significant byte of address.
- address is an expression that reduces to an integer value in the range -32768 to 32767.
- Advanced: During the read, address is put on the Z80 address bus.
plusBASIC enhancement
- address can be an integer value in the range -65535 and 65535 ($0000 to $FFFF).
To Search for pages in the wiki, press Pages above and type a search term in the "Find a page..." box. Results will update beneath automatically.
- Aquarius+ User Guide
- Quick Start
- Hardware
- Software
-
- plusBASIC QuickRef
- plusBASIC Programmer's Reference Guide
- plusBASIC Tutorials
- [plusBASIC Statement and Function Types
- plusBASIC Error Messages
- plusBASIC ASCII Table
- plusBASIC Glossary of Terms
- plusBASIC Optimization Examples
-
Other Development Resources