Linux for PlayStation 2 Community - Forums


Summary |  Home Page |  Forums |  Lists |  Tasks |  Docs |  Surveys |  News |  Files | 

Discussion Forums: Developers

Admin

Message: 50180
BY: draconis
DATE: 2006-Dec-30 06:15
SUBJECT: MIPS Assembly - Hello World

Hi,

I've got a problem with the following Assembly-Program on PS2:

#include <regdef.h>

.text
.globl main
.ent main

main:
.frame sp, 0, $31

addi v0, zero, 4
lw a0, msg
syscall

addi $2, zero, 10
syscall

j $31
.end main


.data
msg: .asciiz "Hello World"


I managed to precompile and to compile it, but when I start the resulting binary nothing happens.
No error, no output. Nothing :(

Can anybody please help me?

I wish you a happy new year!
Andre


 

Thread View

Thread Author Date
MIPS Assembly - Hello Worlddraconis2006-Dec-30 06:15
      RE: MIPS Assembly - Hello Worldyosiba2008-Jan-07 21:19

 

Post a followup to this message

You could post if you were [logged in]