944,082 Members | Top Members by Rank

Ad:
  • Assembly Discussion Thread
  • Unsolved
  • Views: 549
  • Assembly RSS
Nov 5th, 2009
0

Use string to call variable

Expand Post »
I am looking to use a string to call a variable in assembly

I have the following:

Assembly Syntax (Toggle Plain Text)
  1. msg_0 db "Random phrase",10,0
  2. msg_1 db "Another Random Phrase",10
  3. ...(more messages)
  4. msg_11 db "Final Random Message",10,0
  5. msgIndex db "msg_%d",0
then have the program push msgIndex and a random number to print one of the messages.

Is there a way that I can do this?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
fitztho is offline Offline
1 posts
since Nov 2009

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Assembly Forum Timeline: divide overflow problem
Next Thread in Assembly Forum Timeline: Needing some guidance





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC