私はMARSプログラムを使用してMIPSアセンブリコードを記述しています。記述しているプログラムは、入力ファイルを取り込んでから、それを反復処理していくつかの数値を変更する必要があります。コードの本文はすべて記述していますが、実際にファイルを取り込む方法がわかりません。入力を読み込んでアドレスを保存する次のコードがあります。
.data 0x0
magicNum: .asciiz "P2" #magic number
zero: .word 0
newLine: .asciiz "\n" #new line character
.text 0x3000
main:
ori $v0, $0, 8 #8 is syscall to read string
ori $a0, $0, 100 #stores address of input buffer
ori $a1, $0, 3 #max character to read in
syscall
#the rest of the code is down here
しかし、実際にファイルをWindowsのどこに置いて、ファイルを取り込むのでしょうか。