Machine language - short overview


Index


Mnemonics

MnemonicCodeDescriptionFlags#CyclesComments
C Z
ADB20(P)+A->(P)* *15P+1->P
(P+1)+B+C->(P+1)
ADCM196(P)+A+C->(P)* *13
ADIA n116,nA+n->A* *24
ADIM n112,n(P)+n->(P)* *24
ADM68(P)+A->(P)* *13
ADN12(P)+A->(P)...* *17+3*IP-I-1->P
(P-I)+C->(P-I)BCD
ADW14(P)+(Q)->(P)...* *17+3*IP-I-1->P
(P-I)+(Q-I)+C->Q-I-2->Q
(P-I)BCD
ANIA n100,nA AND n->A- *24
ANID n212,n(DP) AND n>(DP)- *26
ANIM n96,n(P) AND n->(P)- *24
ANMA70(P) AND A->(P)- *13
CAL nm224,n,mPC+2>(R-1,R-2)- -270<=n<=31
R-2->R, nm->PC
CALL nm120,n,mPC+3->(R-1,R-2),- -38
R-2->R, nm->PC
CPIA n103,nA-n* *24
CPIM n99,n(P)-n* *24
CPMA199(P)-A* *13
DATA53(BA)...(BA+1)->- -111+4*Iauch für
(P)...(P+1)int. ROM
DECA67A-1->A* *142->Q
DECB195B-1->B* *143->Q
DECI65I-1->I* *140->Q
DECJ193J-1->J* *141->Q
DECK73K-1->K* *148->Q
DECL201L-1->L* *149->Q
DECP81P-1->P- -12
DECV75V-1->V* *1410->Q
DECW203W-1->W* *1411->Q
DX5X-1->X, X->DP- -165->Q
DXL37X-1->X, X->DP,- -175->Q
(DP)->A
DY7Y-1->Y, Y->DP167->Q
DYS39Y-1->Y, Y->DP,- -177->Q
A->(DP)
ETC105FOR i=1 TO H- *)1)
n,mn,nmIF A=n nm->PC
...NEXT i
nm
EXAB218A<->B- -13
EXAM219A<->(P)- -13
EXB11(P)...(P+J)<->- -16+3*JP+J+1->P
(Q)...(Q+J)Q+J+1->Q
EXBD27(P)...(P+J)<->- -17+6*JP+J+1->p
(DP)...(DP+J)DP+J->DP
EXW9(P)...(P+I)<->- -16+3*IP+I+1->P
(Q)...(Q+I)Q+I+1->Q
EXWD25(P)...(P+I)<->- -17+6*IP+I+1->P
(DP)...(DP+I)DP+I->DP
FILD31A->(DP)...(DP+I)- -14+3*1DP+I->DP
FILM30A->(P)...(P+I)- -15+IP+I+1->P
INA76IA-Port->A- *12
IMB204IB-Port->A- *12
INCA66A+1->A* *142->Q
INCB194B+1->B* *143->Q
INCI64I+1->I* *14
IMCJ192J+1->J* *141->Q
INCK72K+1->K* *148->Q
JNCL200L+1->L* *149->Q
INCP80P+1->P- -12
INCV74V+1->V* *1410->Q
INCW202W+1->W* *14
IX4X+1->X, X->DP- -165->Q
IXL36X+1->X, X->DP,- -175->Q
(DP)->A
IY6Y+1->Y, Y->DP- -167->Q
IYS38Y+1->Y, Y->DP,- -177->Q
A->(DP)
JP nm121,n,mnm->PC- -36
JPC nm127,n,mIF C=1 nm->PC- -36
JPNC nm125,n,mIF C=0 nm->PC- -36
JPNZ nm124,n,mIF Z=0 nm->PC- -36
JPZ nm126,n,mIF Z=1 nm->PC- -36
JPZM n57,nIF Z=1- -27/4
PC+1-n->PC
JRCN n59,nIF C=1- -27/4
PC+1-n->PC
JRCP n58,nIF C=1- -27/4
PC+1+n->PC
JRM n45,nPC-1-n->PC- -27
JRNCM n43,nIF C=027/4
PC+1-n->PC
JRNCP n42,nIF C=0- -27/4
PC+1+n->PC
JRNZM n41,nIF Z=0- -27/4
PC+1-n->PC
JRNZP n40,nIF Z=0- -27/4
PC+1+n->PC
JRP n44,nPC+1+n->PC- -27
JRZN n57,nIF Z=1- -27/4
PC+1-n->PC
JRZP n56,nIF Z=1- -27/4
PC+1+n->PC
LDD87(DP)->A- -13
LDM89(P)->A- -12
LDP32P->A- -12
LDQ33Q->A- -12
LDR34R->A- -12
LIA n2,nn->A- -24
LIB n3,nn->B- -24
LIDL m17,mm->DPL- -25
LIDP nm16,n,mnm->DP- -38
LII n0,nn->I- -24
LIJ n1,nn->J- -24
LIP n18,nn->P- -24
LIQ n19,nn->Q- -24
LOOP n47,n(R)-1->(R), IF* *210/7
C=0 DP+1-n->DP
LP n128+nn->P- -120<=n<63
MVB10(Q)...(Q+J)->- -15+2*JP+J+1->P
(P)...(P+J)Q+J+1->Q
MVBD26(DP)...(DP+J)->- -15+4*JP+J+1->P
(P)...(P+J)DP+J->DP
MVDM83(P)->(DP)- -13
MVMD85(DP)->(P)- -13
MVW8(Q)...(Q+I)->- -15+2*IP+I+1->P
(P)...(P+I)Q+I+1->Q
MVWD24(DP)...(DP+I)->- -15+4*IP+I+1->P
(P)...(P+I)DP+I->DP
NOPT206No Operation- -13
NOPW77No Operation- -12
ORIA n101,nA OR n->A- *24
ORID n213,n(DP) OR n->(DP)- *26
ORIM n97,n(P) OR n->(P)- *24
ORMA n71,n(DP) OR n->(DP)- *13
OUTA93(92)->IA-Port- -1392->Q
OUTB221(93)->IB-Port- -1293->Q
OUTC223(95)->C-PORT- -12
OUTF95(94)->F0-Port- -1394->Q
POP91(R)->A, R+1->R- -12
PTC122n->H,nm->(R-1,- *49
R-2), R-2->R
PUSH52(R)->A, R-1->R- -13
RC2090->C, 1->Z* *12
RTN55(R-1,R-2)->PC- -14
R+2->R
SBB21(P)-1->(P)* *15P+1->P
(P+1)-B-C->(P+1)
SBCM197(P)-A-C->(P)* *13
SBIA n117,nA-n->A* *24
SBIM n113,n(P)-n->(P)* *24
SBM69(P)-A->(P)* *13
SBN13(P)-A->(P)* *17+3*IP-I-1->P
(P-I)-C->(P-I)BCD
SBW15(P)-(Q)->(P)* *17+3*IP-I-1->P
(P-I)-(Q-I)-C->Q-I-2->Q
(P-I)BCD
SC2081->C, 1->Z* *12
SL90C->A7...A0->C- -12
SLW29(P-1)...(P)- -15+IP-I-1->P
4 Bit SL
SR210C->A0...A7->C* -12
SRW28(P)...(P+I)- -15+IP+I+1->P
4 Bit SR
STD82A->(DP)- -12
STP48A->P- -12
STQ49A->Q- -12
STR50A->R- -12
SWP88A0...A3<->- -12
A4...A7
TEST n107,nTEST-Byte AND n- *24
TSIA n102,nA AND n- *24
TSID n214,n(DP) AND n- *26
TSIM n98,n(P) AND n- *24
WAIT n78,nNo Operation- -26+n


Registers

Register   Address Description
P   7 bit internal RAM pointer
Q 7 bit internal RAM pointer
R 7 bit internal RAM stack pointer
PC 16 bit program counter
DP 16 bit data pointer
Z Zero Flag
C Carry Flag
D Internal index (not accessible for users)
I &00 Index
J &01 Index
A &02 Main Accumulator
B &03 Secondary Accumulator
XL &04 X = XL + 256 x XH
XH &05
YL &06 Y = YL + 256 x YH
YH &07
K &08 Common use
L &09 Common use
M &0A Common use
N &0B Common use
  &0C - &5B   System stack (starts at &5B and descends)
IA &5C I/O Port A
IB &5D I/O Port B
FO &5E I/O Port F
OUTC &5F Control Port
OR X &10 - &17 Operation register
OR Y &18 - &1F Operation register
OR Z &20 - &27 Operation register
OR W &28 - &2F Operation register
ERL &34 Error number when error occurs
LB,HB &3E, &3F Actual line number
LB,HB &38, &39 Beginning of BASIC block, where the running program is
LB,HB &3A, &3B Address of a found line
LB,HB &3C, &3D The line number of the found line


Test command

BitDescription
0System clock 512 ms
1System clock 2 ms
2-
3BRK/ON key
4-
5-
6RESET key
7Cassette input - Pin 6 printer, I


Specialities of PC-1360

Ports

A port

BitDescription
0-7Keyboard column


B port

BitDescription
0-
1-
2-
3Pin 8 printer, I
4Pin 9 printer, IO
5Pin 3 serial, IO
6Pin 5 serial, IO
7Pin 8 serial, IO


C port

BitDescription
0Display 1=on/0=off
1Counter reset
2CPU halt
3Computer 0=on/1=off
4Beeper frequency 0=2kHz/1=4kHz
5Beeper 1=on/0=off (off: Bit 4: Beeper 1=on/0=off)
6-
7-


F port

BitDescription
0-
1Pin 2 serial, O
2Switch RAM bank, 0=bank 0, 1=bank 1
3-
4-
5-
6-
7-


RAM ports

Addresses &3E00-&3EFF

ValueDescription
0-7Keyboard row


Addresses &3800-&38FF

BitDescription
0Pin 4 serial und 11 Drucker, O
1Pin 14 serial, O
2Pin 11 serial, O
3-
4-
5-
6-
7-


Addresses &3400-&34FF - ROM bank switch

ValueDescription
0Bank 0
1Bank 1
2Bank 2
3Bank 3
4Bank 4
5Bank 5
6Bank 6
7Bank 7


Keymap PC-1360




Specialities of PC-1350

Port B (&5D = 93 int. RAM)

BitPinD=11-Pin-InterfaceI=In-,O=Output
411DIO
510DIO
69DIO
78DIO

Port F (only output, &5E = 94 int. RAM)

BitPin Printer
15
24

Keyboard PC-1350




Specialities of PC-1403

Port B (&5D = 93 int. RAM)

BitPinD=11-Pin-InterfaceI=In-,O=Output
69DIO
78DIO

Port F (only output, &5E = 94 int. RAM)

BitPin Printer
04
15

Keyboard PC-140x




Specialities of PC-1421

Port B (&5D = 93 int. RAM)

BitPinD=11-Pin-InterfaceI=In-,O=Output
69DIO
78DIO

Port F (only output, &5E = 94 int. RAM)

BitPin Printer
04
15

Keyboard PC-1421




Specialities of PC-1260

Port B (&5D = 93 int. RAM)

BitPinD=11-Pin-InterfaceI=In-,O=Output
69DIO
78DIO

Port F (only output, &5E = 94 int. RAM)

BitPin Printer
04
15

Keyboard PC-126x






Best viewing at 1024*768 pixels resolution! I recommend Microsoft Internet Explorer 5.x!
Copyright © Simon Lehmayr (Parts of my page were made with the help of Laurent Duveau)