TITLE ASSEMBLY LANGUAGE DEFINITION FILE FOR UP1 COMPUTER DESIGN
WORD  32
WIDTH 	72
LINES 	50
;__________________________________________________________________
; Register Equates for MIPS
;__________________________________________________________________
R0: 	EQU B#00000
R1: 	EQU B#00001
R2: 	EQU B#00010
R3: 	EQU B#00011
R4:	EQU B#00100
R5: 	EQU B#00101
R6: 	EQU B#00110
R7: 	EQU B#00111
R8: 	EQU B#01000
R9: 	EQU B#01001
R10: 	EQU B#01010
R11: 	EQU B#01011
R12:	EQU B#01100
R13:	EQU B#01101
R14:	EQU B#01110
R15:	EQU B#01111
R16: 	EQU B#10000
R17: 	EQU B#10001
R18: 	EQU B#10010
R19: 	EQU B#10011
R20: 	EQU B#10100
R21: 	EQU B#10101
R22: 	EQU B#10110
R23: 	EQU B#10111
R24: 	EQU B#11000
R25: 	EQU B#11001
R26: 	EQU B#11010
R27: 	EQU B#11011
R28: 	EQU B#11100
R29: 	EQU B#11101
R30: 	EQU B#11110
R31: 	EQU B#11111
;__________________________________________________________________
; MIPS Symbolic Register Names
;__________________________________________________________________
ZERO:	SUB	R0
AT:	SUB	R1
V0:	SUB	R2
V1:	SUB	R3
A0:	SUB	R4
A1:	SUB	R5
A2:	SUB	R6
A3:	SUB	R7
T0:	SUB	R8
T1:	SUB	R9
T2:	SUB	R10
T3:	SUB	R11
T4:	SUB	R12
T5:	SUB	R13
T6:	SUB	R14
T7:	SUB	R15
SO:	SUB	R16
S1:	SUB	R17
S2:	SUB	R18
S3:	SUB	R19
S4:	SUB	R20
S5:	SUB	R21
S6:	SUB	R22
S7:	SUB	R23
T8:	SUB	R24
T9:	SUB	R25
K0:	SUB	R26
K1:	SUB	R27
GP:	SUB	R28
SP:	SUB	R29
FP:	SUB	R30
RA:	SUB	R31
;__________________________________________________________________
; R Format Instructions
;__________________________________________________________________
IADD: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#100000
ISUB: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#100010
IADDU: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#100001
ISUBU: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#100011
MFC0: 	DEF  Q#20,B#00000,5VB#00000,5VB#00000,B#00000,B#100000
IMULT: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#011000
IMULTU: DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#011001
IDIV: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#011010
IDIVU: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#011011
MFHI: 	DEF  Q#00,B#00000,B#00000,5VB#00000,B#00000,B#010000
MFLO: 	DEF  Q#00,B#00000,B#00000,5VB#00000,B#00000,B#010010
IAND: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#100100
IOR: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#100101
ISLL: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#000000
ISRL: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#000010
ISLT: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#101010
ISLTU: 	DEF  Q#00,5VB#00000,5VB#00000,5VB#00000,B#00000,B#101011
JR: 	DEF  Q#00,5VB#00000,B#00000,B#00000,B#00000,B#001000
;__________________________________________________________________
; I Format Instructions
;__________________________________________________________________
IADDI: 	DEF Q#10, 5VB#00000, 5VB#00000,16VH#0000
IADDIU: DEF Q#11, 5VB#00000, 5VB#00000,16VH#0000
IANDI: 	DEF Q#14, 5VB#00000, 5VB#00000,16VH#0000
IORI: 	DEF Q#15, 5VB#00000, 5VB#00000,16VH#0000
ILW: 	DEF Q#43, 5VB#00000, 5VB#00000,16VH#0000
ISW: 	DEF Q#53, 5VB#00000, 5VB#00000,16VH#0000
ILUI:	DEF Q#17, 5B#00000, 5VB#00000,16VH#0000
IBEQ: 	DEF Q#04, 5VB#00000, 5VB#00000,16VH#0000
IBNE: 	DEF Q#05, 5VB#00000, 5VB#00000,16VH#0000
ISLTI: 	DEF Q#12, 5VB#00000, 5VB#00000,16VH#0000
ISLTIU: DEF Q#13, 5VB#00000, 5VB#00000,16VH#0000
;__________________________________________________________________
; J Format Instructions
;__________________________________________________________________
J:	DEF Q#02,26VB#00000000000000000000000000
JAL:	DEF Q#03,26VB#00000000000000000000000000

END
