Reputation: 2463
I work with ASCII bit matrices in assembly x86 which looks like this example:
Sign_plus db 00000000b
db 00001000b
db 00001000b
db 00111110b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
However, I'd like to keep db [sth] in new line to make the sign more visible and aesthetic ie.
Sign_plus
db 00000000b
db 00001000b
db 00001000b
db 00111110b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
But in this format the compiler (MASM/ML) reports an error A2008. Is there any way to continue writing a statement in new line or are we forced to type db/dw/etc. in the same line where label is?
Upvotes: 1
Views: 599
Reputation: 2463
As Shemhamforasch and Jose Manuel Abarca Rodríguez have just said, adding a colon solves the problem.
Sign_plus:
db 00000000b
db 00001000b
db 00001000b
db 00111110b
db 00001000b
db 00001000b
db 00000000b
db 00000000b
Upvotes: 2