Atari ST USB keyboard conversion kit is available, built and tested, from my Tindie store.
If you want to support this blog, you can donate via Patreon or Paypal, or buy something from my store.
OUT 1, 255This will turn all of the pins of output port 1 on (5v).
OUT 3, 0This will turn all the pins of output port 2 off (0v). The output is latched, and will retain this setting until it is changed.
IN 1So for example,
PRINT IN 1will print the value read from input port 1
IF IN 3 AND 8 THEN GO TO 100Will test to see if digital input pin 4 on port 2 is high