Southwest Specialty Products 6800 Sleep Apnea Machine User Manual


 
15
INHEX and INCH, temporary storage locations CKSM and both
accumulators. If a non-hex value is entered, SWTBUG® control will resume.
When BYTE is called as a subroutine, the computer will wait for two hex
characters to be entered thru the control port. If a 3C is entered, the results
will be as follows:
ACC A 3C
ACC B CKSM
IXR UNCHANGED
CKSM Prior CKSM + check sum generated inside
BYTE
OUTHL (E067)
OUTHR (E06B)
These subroutines are used by OUT2HS and OUT4HS to output
hexadecimal numbers
OUTEEE
OUTCH
OUTEE
(E1D1)
This is the character output routine used by PDATA1, OUT4HS, OUT2HS
and most programs written for SWTBUG/MIKBUG® to output one character
from the computer to the control port (I/O # 1). OUTEEE, OUTCH and
OUTEE1 are all functional equivalents- OUTEE1 is the main output routine
with OUTCH and OUTEEE being jumps to OUTEE1. When using this
routine, OUTEEE (E1D1) should be used to maintain compatibility with
MIKBUG® systems.
To use OUTEEE the character to be output should be placed in the A
accumulator in its ASCII form. To output the letter A on the control terminal,
the following program could be used.
LDA A #$41
JSR OUTEEE
The processor’s registers are affected as follows.
ACC A changed internally
ACC B not affected
IXR not affected
OUTEEE is an 8-bit output routine and does not generate a parity bit.
INEEE,
INCH,
INEEE1
(E1AC)
The locations are all functionally equivalent to SWTBUG® ‘s character input
routine. This routine will look for one character from the control terminal (I/O
# 1) and store it in the A accumulator. Once called, INEEE will loop within it-
self until a character has been input. Anytime input is desire, the call JSR
INEEE should be used.
INEEE automatically sets the 8th bit to 0 and does not check for parity.
When using INEEE the processor’s registers are affected as follows:
ACC A loaded with the character input from the terminal
ACC B not affected
IXR not affected
INCH8 (E1F6) INCH8 is functionally the same as INEEE except that the 8th bit is not set to
8. This subroutine should be used whenever full 8-bit input is desired, such
as in binary loader programs.
INHEX (E0AA) INHEX is the subroutine used by BYTE and BADDR that will input one
hexadecimal character from the control terminal. If a non-hex character is
entered, SWTBUG® control will resume. If a hex character, such as an E is
entered, the results will be as follows:
ACC A 0E
ACC B not affected
IXR not affected
PDATA1 (E07E) PDATA1 is the subroutine used to output a string of text on the control
terminal. PDATA1 will start outputting data that is pointed to by the index
register and will continue until a 04 is seen. For example, if you wanted to
print HELLO on the terminal the following could be used.