Southwest Specialty Products 6800 manual ACC a ACC B Cksm IXR Unchanged, Outhr E06B, Outee, LDA a

Models: 6800

1 19
Download 19 pages 44.9 Kb
Page 16
Image 16

 

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)

These subroutines are

used by OUT2HS and OUT4HS to output

OUTHR (E06B)

hexadecimal numbers

 

OUTEEE

This is the character output routine used by PDATA1, OUT4HS, OUT2HS

OUTCH

and most programs written for SWTBUG/MIKBUG® to output one character

OUTEE

from the computer to the control port (I/O # 1). OUTEEE, OUTCH and

(E1D1)

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,

The locations are all functionally equivalent to SWTBUG® ‘s character input

INCH,

routine. This routine will look for one character from the control terminal (I/O

INEEE1

# 1) and store it in the A accumulator. Once called, INEEE will loop within it-

(E1AC)

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.

15

Page 16
Image 16
Southwest Specialty Products 6800 ACC a ACC B Cksm IXR Unchanged, Outhr E06B, LDA a, JSR Outeee, INEEE1, Inhex E0AA