blob: e67328d94e29b78cd83626145e0aa12e84eddf6e (
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
25
26
|
# The main body of code loops on the variable FLAG, waiting
# for it to be set. When set, the message `Tick' is displayed
# and the flag cleared.
# The interrupt handler, sets the global FLAG variable and
# then resumes normal execution.
.globl _start
.set noreorder
_start:
# write (1, Hello World!\r\n, 14)
li $4, 1
la $5, hello
li $6, 14
la $2,+0xffffffffbfc00504 # write address
lw $2, 0($2)
jal $2
nop
li $4, 0
break 1023
nop
hello: .asciiz "Hello World!\r\n"
|