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

Page 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

Image 16
Contents ROM Monitor Verson Users Guide Swtpc Swtbug Swatbug Monitor ROM Reset Swtbug InstallationSwtbug Operation Memory Examine and Change M addr Register Dump Function RBIT no Label Condition Code BITCT-1024 Clear Screen Command C Ascii Tape Punch Command PGO to USER’S Program Function G Jump to USER’S Program JaddrEND of Tape Command E Most Significant Byte of Lower AddressLeast Significant Byte of Lower Address Most Significant Byte of Upper AddressTape Loader Function L Optional Port Command O not zeroSoftware Breakpoints Baddr Disk Boot D Do not This is OKJump to Prom Program Z Byte Search F high address low address byteUsing NON-MASKABLE Interrupts Using Maskable IRQ InterruptsVectored Software Interrupts Vectored INPUT/OUTPUTUse of the Control Interface for Read/Punch-On/Off Decoding PIA StrobingBaud Rate Compatibility Loading Binary Tapes Thru SwtbugBlkjak Swtpc 6800 Black Jack Program Special Notes on Using AN Acia and Program ModificationsCO-RES Ver .0 and 1.01 Acia Modifications Memory Diagnostics General Rules for Program WritingProgram Description Temporary Storage LocationsSwtbug Subroutine and Text String Description ACC a ACC B Cksm IXR Unchanged Outhr E06BOutee LDA aStart LDX #TEXT JSR PDATA1 JMP Contrl Text FCC /HELLOFCB ENDContrl E0E3 Nmiv E1A7Search E1AE Goto E1D0Clear E2CC Break E2D9PNCHS9 E31E Pnchon E34D