File: addu003.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 (30 lines) | stat: -rw-r--r-- 676 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
;  ###----------------------------------------------------------------###
;  # file	: addu000.u						#
;  # date	: Mar 26 1996						#
;  # descr.	: functional test for mips				#
;  ###----------------------------------------------------------------###

	;  ###--------------------------------------------------------###
	;  #   unsigned addition					#
	;  ###--------------------------------------------------------###

		.org	0x00400000
const1	.equ	0x07cb
const2	.equ	0xffff07cb
		.start	init

init:
		addiu	r13, r0, const1
		addiu	r14, r0, const2

		bne	r14, r13,bad
		nop
		nop

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