Estou fazendo meu primeiro programa em Assembly do MIPS no Mars, e estou com dificuldade por onde começar, gostaria que me ajudasse na resolução desse programinha, segue abaixo o que preciso:
Determinar o tamanho das Strings em um arquivo. A String deverá ser lida de um arquivo e terá no máximo 100 caracteres. Serão dispostas exatamente 10 Strings no arquivo, sendo uma por linha. A saída deve ser também um arquivo contendo o tamanho de cada string, também um por linha (correspondência de um para um entre o arquivo de entrada e saída).
Nome do arquivo de entrada é "string.in" e o de saída é "string.out". Os arquivos de saída não será legíveis, pois serão no formato DAT, ou seja, apenas número (não terá caracteres). Lembrando que cada inteiro tem 4 bytes.
Formato do arquivo de entrada:
Teste 1
Teste 2
Oi
Assembly
Opa
Isso pode
Universidade
Teste 3
Teste 4
Teste 5
Formato do arquivo de saída (não é em formato texto):
8
8
3
9
4
10
13
8
8
8
Determinar o tamanho das Strings em um arquivo. A String deverá ser lida de um arquivo e terá no máximo 100 caracteres. Serão dispostas exatamente 10 Strings no arquivo, sendo uma por linha. A saída deve ser também um arquivo contendo o tamanho de cada string, também um por linha (correspondência de um para um entre o arquivo de entrada e saída).
Nome do arquivo de entrada é "string.in" e o de saída é "string.out". Os arquivos de saída não será legíveis, pois serão no formato DAT, ou seja, apenas número (não terá caracteres). Lembrando que cada inteiro tem 4 bytes.
Formato do arquivo de entrada:
Teste 1
Teste 2
Oi
Assembly
Opa
Isso pode
Universidade
Teste 3
Teste 4
Teste 5
Formato do arquivo de saída (não é em formato texto):
8
8
3
9
4
10
13
8
8
8