1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
|
# Hello-World in MIPS-R2000-Assembler
.data # Umschalten auf das Datensegment
hello: .asciiz "Hello world!\n"# auszugebender Text
.text # jetzt im Codesegment
.globl __start
__start: li $v0,4 # call code fueur print string
la $a0,hello # Textadresse nach Register $a0
syscall # Systemaufruf
jr $ra # Programmende
|