【问题标题】:opening binary file for reading打开二进制文件进行读取
【发布时间】:2012-11-23 20:10:56
【问题描述】:

我正在尝试打开二进制文件以在 mars mips 模拟器中读取:

.data
file: .asciiz "o.bmp"
.text
li $v0, 13
la $a0, file
li $a1, 0
li $a2, 0
syscall         #file descriptor of oepened file in v0
beq $v0, -1, end            #my program every time jumps to end so sth is wrong    

【问题讨论】:

    标签: mips binaryfiles system-calls mars-simulator


    【解决方案1】:

    解决方案:

    文件mars.jar(或其他名称的mars程序)必须与文件“o.bmp”在同一目录中

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-19
      • 1970-01-01
      • 2016-05-02
      • 2021-05-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多