File: jalr000.u

package info (click to toggle)
alliance 5.0-20120515-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 70,180 kB
  • sloc: ansic: 350,295; vhdl: 34,227; yacc: 27,122; sh: 12,416; cpp: 9,478; makefile: 7,055; lex: 3,684
file content (44 lines) | stat: -rw-r--r-- 787 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

;  ###----------------------------------------------------------------###
;  # file	: jalr000.u						#
;  # date	: Nov 1996						#
;  # descr.	: functional test for mips				#
;  ###----------------------------------------------------------------###

	;  ###--------------------------------------------------------###
	;  #   jump and link resgister					#
	;  ###--------------------------------------------------------###

const		.equ	0x14feb445
adr2		.equ    0x004000a0
		.org	0x00400000

		.start	init

init:
		loadi	r23, const
		loadi	r24, (4 * const)
		loadi   r2, adr2
		jalr	r1, r2
		
		jalr    r1, r2	
		
		nop	
		beq	r24 ,r23, good 
		nop
		j	bad
		nop

	
		.org    0x004000a0	
		addu	r23, r23, r23
		jr	r1
		nop

		.org	0x004000d0
good:		j	good
		nop
bad:		j	bad
		nop
		.end