1,105,271 Community Members

Any help

Member Avatar
salma.zaki.31
Newbie Poster
1 post since Dec 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
-1
 

Assembly code to display "hello " ?

Member Avatar
deceptikon
Eternally Awesome
4,679 posts since Jan 2012
Reputation Points: 1,341 [?]
Q&As Helped to Solve: 682 [?]
Skill Endorsements: 104 [?]
Administrator
Featured
 
1
 

You're aware that this is the very first program anyone learning assembly will have to write, and it's ALWAYS provided in toto by the teaching resource (ie. book, website, or course notes), right?

So either you're lazy to the point that shocks even me, or you need to ask a more specific question.

Member Avatar
T-Dogg3030
Light Poster
39 posts since Nov 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 5 [?]
Skill Endorsements: 0 [?]
 
0
 
     .global helloWorld
     .section ".data"

str: asciz "hello world!"

     .section ".text"

helloWorld:

     save %sp, -96, %sp

     set str, %o0

     call printf, 1
     nop

     ret
     restore
Member Avatar
Fix_It
Newbie Poster
6 posts since Nov 2012
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]
 
0
 

Which assembler and compiler do you use and do you want a 16 program or 32 bit?

You
This article has been dead for over three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article