summaryrefslogtreecommitdiff
path: root/test6.asm
blob: 3c9ab62391698e9f7bd253afe252b2c2fce9fa92 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
.text

addi $t0, $zero, x
addi $v0, $zero, 1
lw $a0, 0($t0)
syscall
addi $v0, $zero, 10
syscall

.data

x: .word 0xFFFFFFFF
cats: .asciiz "cats are cool\n"
c: .byte 0

.rodata

g: .word 50
dogs: .ascii "Dogs are cool\n"
h: .half 255

.bss
fib: .space 40