LH5801 language machine codes (CGH)  
1st table  
0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F  
0  SBC C 
SBC E 
SBC L 
SBC N 
INC C 
INC E 
INC L 
INC N 
SBC B 
SBC D 
SBC H 
SBC M 
LDW  INTG n,+e 
ERRH  SXY 
1  SBC (BC) 
SBC (DE) 
SBC (HL) 
SBC (MN) 
STI (BC) 
STI (DE) 
STI (HL) 
STI (MN) 
JR NC,+e 
JR NC,e 
SBC
(pp) 
SBC n 
SBR NC,n 
RL  SPU  AEX 
2  ADC C 
ADC E 
ADC L 
ADC N 
DEC C 
DEC E 
DEC L 
DEC N 
ADC B 
ADC D 
ADC H 
ADC M 
LJNE n,+e 
ARG
+e,n 
RST  CLS 
3  ADC (BC) 
ADC (DE) 
ADC (HL) 
ADC (MN) 
STD (BC) 
STD (DE) 
STD (HL) 
STD (MN) 
JR C,+e 
JR C,e 
ADC (pp) 
ADC n 
SBR C,n 
RRD  RPU  
4  LDA C 
LDA E 
LDA L 
CLA  INC BC 
INC DE 
INC HL 
INC MN 
LDA B 
LDA D 
LDA H 
LDA M 
JNE n,+e 
STB n 
ERR1  LDU (pp) 
5  LDA (BC) 
LDA (DE) 
LDA (HL) 
LDA (MN) 
LDI (BC) 
LDI (DE) 
LDI (HL) 
LDI (MN) 
JR NH,+e 
JR NH,e 
LDA (pp) 
LDA n 
SBR NH,n 
SR  LDI  
6  CPA C 
CPA E 
CPA L 
CPA N 
DEC BC 
DEC DE 
DEC HL 
DEC MN 
CPA B 
CPA D 
CPA H 
CPA M 
BKW  LDB n 
LYX  STU (mn) 
7  CPA (BC) 
CPA (DE) 
CPA (HL) 
CPA (MN) 
LDD (BC) 
LDD (DE) 
LDD (HL) 
LDD (MN) 
JR H,+e 
JR H,e 
CPA (pp) 
CPA n 
SBR H,n 
RLD  CPI  
8  STA B 
STA D 
STA H 
NOP  LD B,n 
LD D,n 
LD H,n 
LD M,n 
DJC e 
RPV  SPV  LJNES +e 
IFC  NORM  MI  
9  AND (BC) 
AND (DE) 
AND (HL) 
AND (MN) 
AND (BC),n 
AND (DE),n 
AND (HL),n 
AND (MN),n 
JR NZ,+e 
JR NZ,e 
AND (pp) 
AND n 
SBR NZ,n 
SL  AND (pp),n 
RCF 
A  STA C 
STA E 
STA L 
STA N 
LD C,n 
LD E,n 
LD L,n 
LD N,n 
RTI  RET  LD SP,pp 
JP pp 
STS (n) 
STVP  SLX  TI 
B  OR (BC) 
OR (DE) 
OR (HL) 
OR (MN) 
OR (BC),n 
OR (DE),n 
OR (HL),n 
OR (MN),n 
JR Z,+e 
JR Z,e 
OR (pp) 
OR n 
SBR Z,n 
RR  OR (pp),n 
SCF 
C  DSBC (BC) 
DSBC (DE) 
DSBC (HL) 
DSBC (MN) 
CP B,n 
CP D,n 
CP H,n 
CP M,n 
DADC (BC) 
DADC (DE) 
DADC (HL) 
DADC (MN) 
LDS n 
LDPT  CLX  NMI 
D  XOR (BC) 
XOR (DE) 
XOR (HL) 
XOR (MN) 
BIT (BC),n 
BIT (DE),n 
BIT (HL),n 
BIT (MN),n 
JR NV,+e 
JR NV,e 
XOR (pp) 
XOR n 
SBR n 
INC A 
BIT (pp),n 
2nd table 
E  STA (BC) 
STA (DE) 
STA (HL) 
STA (MN) 
CP C,n 
CP E,n 
CP L,n 
CP N,n 
JR +e 
JR e 
STA (pp) 
CALL pp 
VAR n,+e 
EVAL +e 
ADN  RESET 
F  BIT (BC) 
BIT (DE) 
BIT (HL) 
BIT (MN) 
ADD (BC),n 
ADD (DE),n 
ADD (HL),n 
ADD (MN),n 
JR V,+e 
JR V,e 
BIT (pp) 
BIT n 
SBR V,n 
DEC A 
ADD (pp),n 

2nd table  
0  1  2  3  4  5  6  7  8  9  A  B  C  D  E  F  
0  INC B 
INC D 
INC H 
INC M 
RDP  
1  SBC# (BC) 
SBC# (DE) 
SBC# (HL) 
SBC# (MN) 
STI# (BC) 
STI# (DE) 
STI# (HL) 
STI# (MN) 
EI  SBC# (pp) 
HALT  SDP  
2  DEC B 
DEC D 
DEC H 
DEC M 

3  ADC# (BC) 
ADC# (DE) 
ADC# (HL) 
ADC# (MN) 
STD# (BC) 
STD# (DE) 
STD# (HL) 
STD# (MN) 
EI  ADC# (pp) 

4  
5  LDA# (BC) 
LDA# (DE) 
LDA# (HL) 
LDA# (MN) 
LDI# (BC) 
LDI# (DE) 
LDI# (HL) 
LDI# (MN) 
LDA# (pp) 

6  
7  CPA# (BC) 
CPA# (DE) 
CPA# (HL) 
CPA# (MN) 
LDD# (BC) 
LDD# (DE) 
LDD# (HL) 
LDD# (MN) 
CPA# (pp) 

8  LD BC,BC 
LD BC,DE 
LD BC,HL 
LD BC,MN 
LD BC,SP 
LD BC,PC 
PUSH BC 
PUSH DE 
PUSH HL 
PUSH MN 
PUSH A  
9  AND# (BC) 
AND# (DE) 
AND# (HL) 
AND# (MN) 
AND# (BC),n 
AND# (DE),n 
AND# (HL),n 
AND# (MN),n 
AND# (pp) 
AND# (pp),n 

A  POP BC 
POP DE 
POP HL 
POP MN 
LD BC,BC 
LD DE,BC 
LD HL,BC 
LD MN,BC 
POP A  LD A,F 
INA  ADD BC 
ADD DE 
ADD HL 
ADD MN 

B  OR# (BC) 
OR# (DE) 
OR# (HL) 
OR# (MN) 
OR# (BC),n 
OR# (DE),n 
OR# (HL),n 
OR# (MN),n 
OR# (pp) 
OR# (pp),n 

C  DSBC# (BC) 
DSBC# (DE) 
DSBC# (HL) 
DSBC# (MN) 
OFF  DADC# (BC) 
DADC# (DE) 
DADC# (HL) 
DADC# (MN) 
ATP  STA F 

D  XOR# (BC) 
XOR# (DE) 
XOR# (HL) 
XOR# (MN) 
BIT# (BC),n 
BIT# (DE),n 
BIT# (HL),n 
BIT# (MN),n 
XOR# (pp) 
BIT# (pp),n 

E  STA# (BC) 
STA# (DE) 
STA# (HL) 
STA# (MN) 
LD SP,BC 
LD PC,BC 
CDV  STA# (pp) 
DI  AM0 
AM1 

F  BIT# (BC) 
BIT# (DE) 
BIT# (HL) 
BIT# (MN) 
ADD# (BC),n 
ADD# (DE),n 
ADD# (HL),n 
ADD# (MN),n 
BIT# (pp) 
ADD# (pp),n 

Eric Millescamps 2013  www.PC1500.info 