Hello everybody :)

I am trying to declare an array of characters as following (MIPS)

array: .word '1s', '2s', '3s'

unfortunately this is not working, it raises an error : Invalid language element '1s'

how Can I manage this?
I want each element to contain a number and a character
so array[0] = 1s

Please Help?

It looks like that you're trying to program some kind of games ;)
you should use .byte not .word

you should have asked زmiley :P

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.