| | |
Use string to call variable
![]() |
•
•
Join Date: Nov 2009
Posts: 1
Reputation:
Solved Threads: 0
I am looking to use a string to call a variable in assembly
I have the following:
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?
I have the following:
Assembly Syntax (Toggle Plain Text)
msg_0 db "Random phrase",10,0 msg_1 db "Another Random Phrase",10 ...(more messages) msg_11 db "Final Random Message",10,0 msgIndex db "msg_%d",0
Is there a way that I can do this?
![]() |
Similar Threads
- Unrelated function call changes variable values (apparently) (C++)
- call a variable outside the class (PHP)
- Convert string variable into form object (VB.NET)
- How to call a variable from other class (Java)
- How to add string to an integer variable... (C++)
- Convert string variable into form object in VB6 (Visual Basic 4 / 5 / 6)
- how to cast a string type variable to LPCTSTR type (C++)
- Problem with string variable in void prnt function (C++)
Other Threads in the Assembly Forum
- Previous Thread: divide overflow problem
- Next Thread: Needing some guidance
| Thread Tools | Search this Thread |





