2021年4月11日星期日

Asking for file path on MIPS

I have this program that shows .ppm files in bitmap.I'm looking for how I can use the given user's path and put it in Arq´s ""

.data    Arq: .asciiz ""    Tam: .space 512    .align 2    Imag: .word    .text      main:                  li $t2, 0      li $t3, 0      li $gp, 0      li $v0, 13            la $a0, Arq      li $a1, 0      li $a2, 0      syscall            move $a0, $v0      li $v0, 14      la $a1, Tam      li $a2, 1      syscall            lbu $t1, 0($a1)      bne $t1, 80, termina            li $t0, 0            li $v0, 14      syscall              
https://stackoverflow.com/questions/67049194/asking-for-file-path-on-mips April 12, 2021 at 03:14AM

没有评论:

发表评论