. PMW file format description
The input and output port numbers are in octal format. Program start address: 15ch
For example: X0-X7-> 0-7 (h) X40-X47-> 20-27 (h) X80-X87-> 40-47 (h)
X10-X17-> 8-f (h) X50-X57-> 28-2f (h) X90-X97-> 48-4f (h)
X20-X27-> 10-17 (h) X60-X67-> 30-37 (h) X100-X107-> 50-57 (h)
X30-X37-> 18-1f (h) X70-X77-> 38-3f (h) X110-X117-> 58-5f (h)
Storage Format:
0e 24
|
|-Command
|
---- Operands
Commands correspond to hexadecimal order:
X
|
|-0: SX (special registers and status registers)
|-4: XX (input)
|-5: Yx (output)
|-6: TX (timer)
|-8: MX (data storage, auxiliary relays)
|-E: Cx (Counter)
|
| ---- 2: LD
| ---- 3: LDI
| ---- 4: and
| ---- 5: ANI
| ---- 6: or
| ---- 7: Ori
| ---- C: Out
| ---- D: Set
| -- 8x register 00 0C: rst t/C
| -- Ex port: RST y/m
| -- E (x> = 8) YY: rst m (xyy-800) (M0-M1535)
| -- Ax YY 00 04: rst m (xyy-200) (M1536-M3071)
| -- 8f XX 00 04: RST m8xxx (M8000-M8255)
| -- 86 XX 86 YY 00 0d: rst d (xxyy/2) (D0-D1998)
| -- 88 XX 86 YY 00 0d: rst d (xxyy/2) + 1000 (D1000-D7999)
| -- 80 XX 86 YY 00 0d: rst d (xxyy/2) + 8000 (D8000-D8195)
|-D8028: z0
|-D8029: V0
|-D8182: Z1
|-D8183: V1
|-D8184: Z2
|-D8185: v2
|-D8186: Z3
|-D8187: v3
|-D8188: z4
|-D8189: v4
|-D8190: z5
|-D8191: V5
|-D8192: z6
|-D8193: v6
|-D8194: z7
|-D8195: V7
| -- 8x register 00 07: RST SX
| -- 8x port 01 CA: LDP
| -- 8x port 01 CB: LDF
| -- Port 8x 01 CC: andP
| -- 8x port 01 CD: andf
| -- 8x port 01 Ce: ORP
| -- Port 8x 01 Cf: lf
| -- 8x port 00 08: pls
| -- 8x port 00 09: PLF
| -- 8x port 80 0x00 0a: Mc NX Yx/MX
|-NX
|
| ------------ 80 0x00 0b: MCR NX
|-NX
|
| ---- 80 YY 80 XX 06 ZZ: Out tzzkyyxx
| ---- 80 YY 80 XX 0e ZZ: Out czzkyyxx
| -- FF F8: anb
| -- FF F9: Orb
| -- Ff fa: MPs
| -- Ff fb: MRD
| -- Ff fc: MPP
| -- Ff fd: inv
| -- 00 0f: End
LD xxx24 xx
LD yxx25 xx
LD M0-M15352x YY[LD mxyy-800] (operands from 28 00 to 2D ff) (when the serial number after M is less than 257, the code is28 YYWhen the serial number after M is greater than 267, the carry of the low operand is added to 28, for example, m257, the code is29 01)
LD M1536-M3071Ax YY 01 C2[LD mxyy-200] (operands from A8 00 to ad ff)
LD M8000-M82552f xx[LD m8xx] (operands from 2f 00 to 2f ff)
LD mxx
LD S0-S999 2x xx
LD sxxx 20 00 23 E7
LD T0-T255 2x xx ld txx
26 00
26 ff
LD C0-C255 2x xx ld cxx
2e 00
2e FF
Ldp xxx 84 XX 01 ca
LDP yxx 85 XX 01 ca
LDP M0-M1535 8x YY 01 ca ldp m (xyy-800)
88 00
8d FF
LDP M1536-M3071 ax YY 01 ca ldp m (xyy-200)
A8 00
Ad FF
LDP M8000-M8255 8f XX 01 ca LDP mxx
8f 00
8f FF
LDP S0-S999 8x YY 01 ca LDP sxxx
80 00
83 E7
LDP T0-T255 8x YY 01 ca LDP txx
86 00
86 ff
LDP C0-C255 8x YY 01 ca LDP cxx
8e 00
8e FF
Ldi xxx 34 xx
LDI yxx 35 xx
LDI M0-M1535 3x yy ldi m (xyy-800)
38 00
3D FF
LDI M1536-M3071 ax YY 01 C3 ldi m (xyy-200)
A8 00
Ad FF
LDI M8000-M8255 3f xx ldi mxx
3f 00
3f FF
LDI S0-S999 3x xx ldi sxxx
30 00
33 E7
LDI T0-T255 3x xx ldi txx
36 00
36 ff
LDI C0-C255 3x xx ldi cxx
3E 00
3E FF
Ldf xxx 84 XX 01 CB
LDF yxx 85 XX 01 CB
LDF M0-M1535 8x YY 01 cb ldf m (xyy-800)
88 00
8d FF
LDF M1536-M3071 ax YY 01 cb ldf m (xyy-200)
A8 00
Ad FF
LDF M8000-M8255 8f XX 01 cb ldf mxx
8f 00
8f FF
LDF S0-S999 8x YY 01 cb ldf sxxx
80 00
83 E7
LDF T0-T255 8x YY 01 cb ldf txx
86 00
86 ff
LDF C0-C255 8x YY 01 cb ldf cxx
8e 00
8e FF
And XXX 44 xx
And yxx 45 xx
And M0-M1535 4x YY and M (xyy-800)
48 00
4d FF
And M1536-M3071 ax YY 01 C4 and M (xyy-200)
A8 00
Ad FF
And M8000-M8255 4f XX and mxx
4f 00
4f FF
And S0-S999 4x XX and sxxx
40 00
43 E7
And T0-T255 4x XX and txx
46 00
46 ff
And C0-C255 4x XX and cxx
4e 00
4e FF
Andp xxx 84 XX 01 CC
ANDP yxx 85 XX 01 CC
ANDP M0-M1535 8x YY 01 CC andP M (xyy-800)
88 00
8d FF
ANDP M1536-M3071 ax YY 01 CC andP M (xyy-200)
A8 00
Ad FF
M8000-M8255 8f XX 01 CC andP mxx
8f 00
8f FF
ANDP S0-S999 8x YY 01 CC andP sxxx
80 00
83 E7
ANDP T0-T255 8x YY 01 CC andP txx
86 00
86 ff
ANDP C0-C255 8x YY 01 CC andP cxx
8e 00
8e FF
Ani XXX 54 xx
Ani yxx 55 xx
Ani M0-M1535 5x YY ani M (xyy-800)
58 00
5D FF
Ani M1536-M3071 ax YY 01 C5 ani M (xyy-200)
A8 00
Ad FF
Ani M8000-M8255 5f XX wanmxx
5f 00
5f FF
Ani S0-S999 5x XX ani sxxx
50 00
53 E7
Ani T0-T255 5x XX ani txx
56 00
56 ff
Ani C0-C255 5x XX ani cxx
5E 00
5E FF
Andf XXX 84 XX 01 CD
Andf yxx 85 XX 01 CD
Andf M0-M1535 8x YY 01 CD andf M (xyy-800)
88 00
8d FF
Andf M1536-M3071 ax YY 01 CD andf M (xyy-200)
A8 00
Ad FF
Andf M8000-M8255 8f XX 01 CD andf mxx
8f 00
8f FF
Android S0-S999 8x YY 01 CD andf sxxx
80 00
83 E7
Andf T0-T255 8x YY 01 CD andf txx
86 00
86 ff
Android C0-C255 8x YY 01 CD andf cxx
8e 00
8e FF
Or XXX 64 xx
Or yxx 65 xx
Or M0-M1535 6x YY or M (xyy-800)
68 00
6D FF
Or M1536-M3071 ax YY 01 C6 or M (xyy-200)
A8 00
Ad FF
Or M8000-M8255 6f XX or mxx
6f 00
6f FF
Or S0-S999 6x XX or sxxx
60 00
63 E7
Or T0-T255 6x XX/txx
66 00
66 FF
Or C0-C255 6x XX or cxx
6e 00
6e FF
Orp xxx 84 XX 01 CE
ORP yxx 85 XX 01 CE
ORP M0-M1535 8x YY 01 ce orp m (xyy-800)
88 00
8d FF
ORP M1536-M3071 ax YY 01 ce orp m (xyy-200)
A8 00
Ad FF
ORP M8000-M8255 8f XX 01 ce ORP mxx
8f 00
8f FF
ORP S0-S999 8x YY 01 ce ORP sxxx
80 00
83 E7
ORP T0-T255 8x YY 01 ce ORP txx
86 00
86 ff
ORP C0-C255 8x YY 01 ce ORP cxx
8e 00
8e FF
Ori XXX 74 xx
Ori yxx 75 xx
Ori M0-M1535 7X YY Ori M (xyy-800)
78 00
7D FF
Ori M1536-M3071 ax YY 01 C7 Ori M (xyy-200)
A8 00
Ad FF
Ori M8000-M8255 7f XX Ori mxx
7f 00
7f FF
Ori S0-S999 7X XX Ori sxxx
70 00
73 E7
Orori T0-T255 7X XX Ori txx
76 00
76 ff
Orori C0-C255 7X XX Ori cxx
7E 00
7E FF
Lf XXX 84 XX 01 cf
Lf yxx 85 XX 01 cf
Open M0-M1535 8x YY 01 CF open M (xyy-800)
88 00
8d FF
Open M1536-M3071 ax YY 01 CF open M (xyy-200)
A8 00
Ad FF
Open M8000-M8255 8f XX 01 CF open
8f 00
8f FF
Open source S0-S999 8x YY 01 CF Open Source
80 00
83 E7
Open source T0-T255 8x YY 01 CF open source txx
86 00
86 ff
Open source C0-C255 8x YY 01 CF open source cxx
8e 00
8e FF
Pls yxx 85 XX 00 08
Pls M0-M1535 8x YY 00 08 pls m (xyy-800)
88 00
8d FF
Pls M1536-M3071 ax YY 00 08 pls m (xyy-200)
A8 00
Ad FF
PLF yxx 85 XX 00 09
PLF M0-M1535 8x YY 00 09 plf m (xyy-800)
88 00
8d FF
PLF M1536-M3071 ax YY 00 09 plf m (xyy-200)
A8 00
Ad FF
Out yxx C5 xx
Out M0-M1535 cx yy out M (xyy-800)
C8 00
CD FF
Out M1536-M3071 ax YY 00 02 out M (xyy-200)
A8 00
Ad FF
Out M8000-M8255 8f XX 00 02 Out mxx
8f 00
8f FF
Out S0-S9998x XX 00 05(Operands from 80 00 to 83 E7)
Out T0-T25580 XX 80 YY 06 ZZ[Out tzz kxxyy] (operands from 00 to ff)
Out C0-C25580 XX 80 YY 0e ZZ[Out czzkxxyy] (operands from 00 to ff)
MC ny yxx 85 0y 80 XX 00 0a
MC ny M0-M1535 8x YY 80 YY 00 0a Mc ny M (xyy-800)
88 00
8d FF
MC ny M1536-M3071 ax YY 80 YY 00 0a Mc ny M (xyy-200)
A8 00
Ad FF
Mcr nx 80 0x00 0b
Set Yx D5 XX set Yx
Set M0-M1535 zx yy Set M (xyy-800)
D8 00
Dd FF
Set M1536-M3071 zx yy zz set mxx
8f 00 00 03
8f ff 00 03
Set S0-S999 zx yy zz set sxyy
80 00 00 06
83 E7 00 06
RST Yx E5 XX rst Yx
RST M0-M1535 zx yy rst M (xyy-800)
E8 00
Ed FF
RST M1536-M3071 zx yy zz rst M (xyy-200)
A8 00 00 04
Ad FF
RST M8000-M8255 zx yy zz rst myy
8f 00 00 04
8f FF
RST S0-S999 zx yy zz rst S0-S999
80 00 00 07
83 E7 00 07
RST T0-T255 zx yy zz rst tyy
86 00 00 0c
86 ff
RST D0-D999 zz xx zz rst D (xxyy/2)
86 XX 86 YY 00 0d
RST D1000-D7000 88 XX 86 YY 00 0d rst D (xxyy/2) + 1000
RST D8000-D8195 80 XX 86 YY 00 0d rst D (xxyy/2 + 800)
Anb FF F8
Orb FF F9
MPs FF fa
MRD FF FB
MPP FF FC
Inv FF FD
End 00 0f