Mips Open image

View: New views
2 Messages — Rating Filter:   Alert me  

Mips Open image

by AVG :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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
       

Re: Mips Open image

by Bruce Simpson :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

AVG wrote:
> how can i open one imagem in mips? it always give me: "Unknown System call:
> 13"
>  
<snip>

Sure you've got the right mailing list here? This list is about the port
of FreeBSD to MIPS hardware.

It looks like you're writing some app in assembler which needs specific
libraries, and there isn't enough context to go on to be more helpful
than this.

thanks
BMS
_______________________________________________
freebsd-mips@... mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-mips
To unsubscribe, send any mail to "freebsd-mips-unsubscribe@..."