The Motorola 6800 Instruction Set (Byte) (January 1978)
The Motorola 6800 Instruction Set (Byte) (January 1978)
The Motorola 6800 Instruction Set (Byte) (January 1978)
Paul M Jessop
Two Programming Points of View 1157 Warwick Rd
Solihull
West Midlands 891 3HQ
ENGLAND
Figure 7: One way to organize one's viewpoint of the Motorola 6800 instruc- The Second Solution : The Ordered
tion set is to view it as a number of instruction groupings, broken down by Manual Lookup Table
internal binary fields for selection of instructions within the group. This The appropriate information is contained
viewpoint is most appropriate for those working directly in binary, or or- in figure 2. This should be a great boon to
ganizing the code generation parts of an assembler or compiler. anyone who, for lack of memory or 10
D Accumulator A
as one operand
NBA = And accumulators
HCF = Halt and catch fire
STS. STX, STA, STB = store immediates
D Accumulator B
as one operand See "Undocumented 6800 In structions"
by Gerry Wheeler, page 46, December
D Miscellaneous
instructions
1977 BYTE.
8 Unimplemented
Undocumented
instruction:
ACCA ACCB X E I D X E I D X E
F SEI • BLE SWI CLR CLR CLR CLR STS STS STS STX STX STX
E CLI • BGT WAI • • JMP JMP LDS LDS LDS LDS LDX LOX LOX LOX
A CLV • BPL • DEC ? DEC DEC DEC ORA ORA ORA ORA ORA ORA ORA . OflA
9 DEX DAA BVS RTS ROL ,. ROL ROL ROL ADC ADC ADC ADC ADC ADC ADC ADC
III
:c.<:I 8 INX • BVC • ASL ' ASL ASL ASL EOR EOR EOR EOR EdR EOR ' EOR EOR
>
Z ' f' pSH ',i','
7 TPA ) leA-*' BEQ ASR ASR ASR ASR ST A STA STA STA S'l"A
""
c:
0
III
6 TAP BNE
mB
PSH
'
0
':,: ' A .,: ·l
-'
5 • • BCS TXS • • • • BIT BIT BIT BIT 'SrT BIT BIT 'SI,T .
, "
4 • BCC DES LSR lSR LSR LSR AND AND AND AND ;;:f.l.ND ANq;, AND
I
o • BRA TSX NEG NEG NEG NEG SUB SUB SUB SUB SUe SU B .
, . :. "'. ':
o 2 3 4 5 6 7 8 9 A B C D E F
Figure 2: A second way of viewing the 6800 instruction set is from the viewpoint of a hexadecimal matrix, Here a map of the
6800 instruction set has been broken up into several overall regions, with color coding indicating references to accumulators A
and B. Unimplemented and undocumented instructions are shown with a black dot; undocumented, but implemented instruc-
tions are shown with cross hatching to indicate "use at own risk."