Micropower |
Volume 1 · Number 3 · November 1981 |
| Page 28 of 33 |
|---|
been stored at £0C78 – £0C79, commands U and N can be used from the keyboard, and DF 55 and DF 4E can be used within programs, to turn the printer on and off.
This routine sends data yy to port xx. The port number, xx, is placed on the
bottom eight address lines, A0 – A7, and this is decoded to determine which
input/
The MK3881 PIO chip used on the Nascom is a programmable input/
In the Nas-Sys 1 monitor command P merely produces an error message; in Nas-Sys 3 the command prints out the contents of the procesors main registers, previously stored in the workspace from £0C61 to £0C6C, together with the current contents of the I, IX and IY registers. Virtually the same code is used to display the registers in Nas-Sys 1, although the format of the display is slightly different (see the S command), but it is not written as a subroutine, so it cannot be accessed from the keyboard or from user programs.
Q xx obtains data from port xx and displays it on the screen in hexadecimal format. To be able to obtain data via the PIO chip you will have to program the chip by writing to the appropriate control port using the 0 command.
The Read command loads data from a cassette tape written in the format used
by the standard Write command. After turning on the tape LED the routine sets
the input/
| Page 28 of 33 |
|---|