mips 汇编入门——helloworld

源码如下: hello.s

 

# text segment .text .globl main main: # execution starts here la $a0,str # put string address into a0 li $v0,4 # system call to print syscall # out a string li $v0,10 syscall # exit #data segment .data str: .asciiz "hello world/n"  

 

运行结果如下图所示:

 

mips 汇编入门——helloworld_第1张图片

 

欢迎转帖,请注明来自:See-See

你可能感兴趣的:(汇编,String,System)