MIPS Flashcards

1
Q

Declarar vector

A

MyArray:
.align 2
.space 4*número de posições

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Para guardar valores no vector

A

sw $s0, myarray($registrador_com_posicao)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Como visualizar valor guardado

A

lw $s0, $registrador_com_posicao

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Onde armazenar registradores pontos flutuantes?

A

Float em $f_impar
Double em $f_par

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Como imprimir float?

A

li $v0, 2
lwc1 $f12, registrador ou valor
Syscall

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Como ler float ?

A

valor vai para $f0

li $v0, 6
syscall

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Divisão de inteiros

A

div $t0,$t1

resultado
# mflo $s0

Resto
#mfhi $s1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly