Assembler Syntax

 

.align n

.asciiz str

.byte b1, ..., bn

.data <addr>

.globl sym

.space n

.text <addr>

.word w1, ..., wn

  
Table 1: System services.

Instructions

add Rdest, Rsrc1, Src2 (with overflow)

and Rdest, Rsrc1, Src2

b label instruction

beq Rsrc1, Src2, label on Equal

beqz Rsrc, label on Equal Zero

bge Rsrc1, Src2, label on Greater Than Equal

bgez Rsrc, label on Greater Than Equal Zero

bgt Rsrc1, Src2, label on Greater Than

bgtz Rsrc, label on Greater Than Zero

ble Rsrc1, Src2, label on Less Than Equal

blez Rsrc, label on Less Than Equal Zero

blt Rsrc1, Src2, label on Less Than

bltz Rsrc, label on Less Than Zero

bne Rsrc1, Src2, label on Not Equal

bnez Rsrc, label on Not Equal Zero

div Rdest, Rsrc1, Src2 (with overflow)

j label

jal label and Link

jr Rsrc Register

la Rdest, address Address

lb Rdest, address Byte

li Rdest, imm Immediate

lw Rdest, address Word

move Rdest, Rsrc

mul Rdest, Rsrc1, Src2 (without overflow)

neg Rdest, Rsrc Value (with overflow)

nor Rdest, Rsrc1, Src2

not Rdest, Rsrc

or Rdest, Rsrc1, Src2

rem Rdest, Rsrc1, Src2

rol Rdest, Rsrc1, Src2 Left

ror Rdest, Rsrc1, Src2 Right

sb Rsrc, address Byte

sll Rdest, Rsrc1, Src2 Left Logical

sra Rdest, Rsrc1, Src2 Right Arithmetic

srl Rdest, Rsrc1, Src2 Right Logical

sub Rdest, Rsrc1, Src2 (with overflow)

sw Rsrc, address Word

syscall Call

xor Rdest, Rsrc1, Src2



Thomas P. Kelliher
Mon Dec 15 13:14:56 EST 1997
Tom Kelliher