SPS2 - Direct PS2 Access Environment - Forums


Summary |  Forums |  Bugs |  News |  Source |  Files | 

Discussion Forums: Developers

Admin

Message: 43819
BY: blackdragon
DATE: 2004-Jun-04 14:01
SUBJECT: MIPS Assembly Question!!!

Sorry for posting this here but this seems to be the only active forum at times.

I am trying to learn MIPS assembly and whenever I compile a simple "Hello World" program on the ps2, I get a segmentation error


.text
.globl main

main:

la $4,msg
li $2, 4
syscall

li $2,10
syscall

.data
msg: .asciiz "Hello World!"



What am I doing wrong? Thanks!


 

Thread View

Thread Author Date
MIPS Assembly Question!!!blackdragon2004-Jun-04 14:01
      RE: MIPS Assembly Question!!!myrkraverk2004-Jun-04 20:05
            RE: MIPS Assembly Question!!!draconis2006-Dec-20 09:11
                  RE: MIPS Assembly Question!!!draconis2006-Dec-20 09:28

 

Post a followup to this message

You could post if you were [logged in]