ASS Assembly Language

(Aray's Simple System)

Instruction

Code

Operands

Comments

HALT

0



LOAD

1

RD

MS

RD N MS Load data from memory S into register D

SAVE

2

MD

RS

MS N RD Save data from register D into memory S

LADD

3

RD

RA


Load data to RD from memory address specified in RA

SADD

4

RA

RS

Save data from RS into memory address specified in RA

MOVE

5

RD

RS

RD N RS

NOT

6

RD N NOT (RS)

AND

7

RD

RS1

RS2

RD N RS1 AND RS2 (bitwise)

OR

8

RD N RS1 OR RS2 (bitwise)

XOR

9

RD N RS1 XOR RS2 (bitwise)

INC

A

R


R N R + 1 (R++)

DEC

B

R

R N R – 1 (R--)

ADD

C

RD

RS1

RS2

RD N RS1 + RS2

JUMP

D

R

PC=(&MD)

if R!=R0 then GOTO specified line in program.

CSHFT

E

R

n


Circular Shift, n=0 Shift RIGHT else LEFT (no bit loss)

ASHFT

F

R

n


Arithmetic Shift, n=0 Shift RIGHT else LEFT


ASS Assembly Language (sdba/ytea/tut/ass.pdf)