Skip to Content

PUT

A statement to output data to an output port. Full 16bit addressing is available.

PUT A,N :REM output N to port A.

This instruction gives direct access from BBC BASIC(Z80) to the computer’s I/O hardware. Typically, you can use it to directly access I/O ports.

It is strongly recommended that you do not try to control the Z88’s hardware with this command - a mistake can be disastrous. However, if you insist on directly accessing the Z88’s hardware, you will need to study the Z88 Developers’ Notes ‘Manipulating the Blink Registers’ section. This guide is available online via cambridgez88.jira.com/wiki/spaces/DN.

This command is an addition to the original language specification and it cannot be guaranteed to remain unchanged in future releases.

Syntax

PUT <numeric>,<numeric>

Associated Keywords

GET

Last updated on