Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how do I span an asm array over multiple lines to make it neat?

Status
Not open for further replies.

redwing26

Programmer
Feb 16, 2006
21
GB
I really read heaps on the web but the examples only covered putting 2 or 3 string values in an array .......I want it to span multiple lines for readability e.g

scodes db "q", "w", "e", "r", "t", "y", "u", "i",
"7", "8", "9", "0", "-", "=", 0 , 0 ,
"q", "w", "e", "r", "t", "y", "u", "i",
"o", "p", "[", "]", "\n", 0 , "a", "s",
"d", "f", "g", "h", "j", "k", "l", ";",
"\", "`", 0 , "\\","z", "x", "c", "v",
"b", "n", "m", ",", ".", "/", 0 , 0 ,

but I get a label or instruction expected at start of line error

stuck
david
 
Code:
scodes db "q", "w", "e", "r", "t", "y", "u", "i",
       db "7", "8", "9", "0", "-", "=",  0 ,  0 ,    
       db "q", "w", "e", "r", "t", "y", "u", "i",
       db "o", "p", "[", "]", "\n", 0 , "a", "s",
       db "d", "f", "g", "h", "j", "k", "l", ";",
       db "\", "`",  0 , "\\","z", "x", "c", "v",
       db "b", "n", "m", ",", ".", "/",  0 ,  0 ,

Like that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top