Skip to main content

5.2. Available Operands

5.2. Available Operands

 

Table 52 Available Operands

 

Relay

Input

Output

Timer

Counter

Memory

Const

(32bit)

(L/F)

Type

X,DO

Y,DI,R,K,SP

T

C

M,S

inst

arg

n

(B,W,L,F)m

n

(B,W,L,F)m

n

(B,W,L,F)m

n

(B,W,L,F)m

n

(B,W,L,F)m

XIC

 

 

x

 

x

 

x

 

x

 

x

x

XIO

 

 

x

 

x

 

x

 

x

 

x

x

EQU

sA

x

 

x

 

x

 

x

 

x

 

 

sB

x

 

x

 

x

 

x

 

x

 

 

LES

sA

x

 

x

 

x

 

x

 

x

 

 

sB

x

 

x

 

x

 

x

 

x

 

 

GRT

sA

x

 

x

 

x

 

x

 

x

 

 

sB

x

 

x

 

x

 

x

 

x

 

 

LEQ

sA

x

 

x

 

x

 

x

 

x

 

 

sB

x

 

x

 

x

 

x

 

x

 

 

GEQ

sA

x

 

x

 

x

 

x

 

x

 

 

sB

x

 

x

 

x

 

x

 

x

 

 

OTF

 

x

x

 

x

x

x

x

x

x

x

x

OTL

 

x

x

 

x

x

x

x

x

x

x

x

OUT

 

x

x

 

x

x

x

x

x

x

x

x

OSR

 

x

x

 

x

x

x

x

x

x

x

x

RES

 

x

x

x

x

 

x

 

x

x

x

x

TON

tm

x

x

x

x

 

x

x

x

x

x

x

bs

x

 

x

 

x

 

x

 

x

 

 

pst

x

 

x

 

x

 

x

 

x

 

 

CTD

cnt

x

x

x

x

x

x

x

x

x

x

x

pst

x

 

x

 

x

 

x

 

x

 

 

ADD

sA

x

 

x

 

x

 

x

 

x

 

 

sB

x

 

x

 

x

 

x

 

x

 

 

dst

x

x

x

 

x

 

x

 

x

 

x

SUB

sA

x

 

x

 

x

 

x

 

x

 

 

sB

x

 

x

 

x

 

x

 

x

 

 

dst

x

x

x

 

x

 

x

 

x

 

x

MUL

sA

x

 

x

 

x

 

x

 

x

 

 

sB

x

 

x

 

x

 

x

 

x

 

 

dst

x

x

x

 

x

 

x

 

x

 

x

DIV

sA

x

 

x

 

x

 

x

 

x

 

 

sB

x

 

x

 

x

 

x

 

x

 

 

dst

x

x

x

 

x

 

x

 

x

 

x

POW

sA

x

 

x

 

x

 

x

 

x

 

 

sB

x

 

x

 

x

 

x

 

x

 

 

dst

x

x

x

 

x

 

x

 

x

 

x

TOD

src

x

u

x

u

x

u

x

u

x

u

u

dst

x

x

x

u

x

x

x

x

x

u

x

FRD

src

x

u

x

u

x

u

x

u

x

u

u

dst

x

x

x

u

x

x

x

x

x

u

x

SEG

src

x

u

x

u

x

u

x

u

x

u

u

dst

x

x

x

u

x

x

x

x

x

u

x

MOV

src

x

 

x

 

x

 

x

 

x

 

 

dst

x

x

x

 

x

 

x

 

x

 

x

COP

src

 

 

 

 

x

 

x

 

 

 

 

dst

x

x

 

 

x

 

x

 

 

 

x

len

x

 

x

 

x

 

x

 

x

 

 

CCOP

sA

 

 

 

 

x

 

x

 

 

 

 

sB

 

 

 

 

x

 

x

 

 

 

 

dst

x

x

 

 

x

 

x

 

 

 

x

len

x

 

x

 

x

 

x

 

x

 

 

ROT

st

x

 

x

 

x

 

x

 

x

 

 

cnt

x

 

x

x

x

 

x

 

x

 

 

tm

x

x

x

x

 

x

x

x

x

x

x

rep

x

 

x

 

x

 

x

 

x

 

 

out

x

x

x

 

x

x

x

x

x

 

x

rst

 

x

 

x

 

x

 

x

x

x

x

tmp

x

x

x

 

x

x

x

x

x

 

x

FOR

idx

x

x

x

 

x

x

x

x

x

 

x

init

x

 

x

 

x

 

x

 

x

 

 

final

x

 

x

 

x

 

x

 

x

 

 

step

x

 

x

 

x

 

x

 

x

 

 

LRI

label

x

x

x

x

x

x

x

x

x

x

 

JMP

label

x

 

x

 

x

 

x

 

x

 

 

CALL

S file

x

 

x

 

x

 

x

 

x

 

 

 

(1)   ‘X’ from the table represents unavailable.

 

(2)   Relay’s n represents the number of bit. (B,W,L,F) are prefix that distinguish the types ofByte(8bit), Word(16bit), Long(32bit), Float, and m means the data number for each types. (Example, X1, XB2, XW2, XL2, XF2). 

 

(3)   ‘u’ index from the table represents unsigned values.

 

(4)   So, the data size can be selected by selecting relay type (B, W, L, F) when the command’s factor is being entered.

 

(5)   For COP(copy) and CCOP(conditional copy) commands, relay types of “src” and “dst” has to match unless the “src” is constant.

 

(6)   Opposing value of Byte(B), Word(W), or Long word(L) can be entered for bit value. For example, identical bit address such as X34=XB5/2=XW3/2=XL2/2 can be entered in various types.

 

(7)   Constant

Data size of constant is 32bit, and data types are binary, decimal and hexadecimal. Starts with &B refers to binary, &H refers to hexadecimal, and numbers without prefix refers to decimal. For example, 125 can be entered such as &H7D or &B01111101.

 

(8)   All relay’s (B, W, L, F) without ‘u’ in the table will be considered as signed value.

For example, be cautious when moving B(8bit)value to W(16bit) in MOV command as it will expand the signed bit. If move RB(-1=&HFF) to RW, it will become 0xFFFF(-1), not &H00FF(255).

However TOD and FRD command that are related to BCD data, and SEG command that convert to 7’ Segment data will be considered as unsigned value.

 

(9)   CALL/END/LBL/JMP command will be supported from the later version of mv30.50-00.