Mips Open image

AVG goncalves.v.andre at gmail.com
Sun Nov 23 09:36:23 PST 2008


how can i open one imagem in mips? it always give me: "Unknown System call:
13"

I have:

.data	# Data declaration section
image_rgb: .space 786432                            # 512*512 (image size) *
3 (1 bit per colour)
image_gray: .space 262144			     # 512*512
file: .asciiz "lena.rgb"

read:
	
	la $a0, ficheiro	# string containing filename to open			
	li $a1, 0		#								
	li $a2, 0 		# read only								
	li $v0, 13 		# open								
	syscall 		# v0 = file descriptor							
	
	
	move $a0, $v0
	la $a1, image_rgb
	li $a2, 786432
	li $v0, 14
	syscall

	main:		# Start of code section

	j read
	

-- 
View this message in context: http://www.nabble.com/Mips-Open-image-tp20648401p20648401.html
Sent from the freebsd-mips mailing list archive at Nabble.com.



More information about the freebsd-mips mailing list