db and dw seems standard; what about 32-bit integers?
Originally, db or defb is for data byte (8 bit value) and dw or defw is for data word (16 bit value), dd or defd is for data double word (32 bit value). The data must be separated by a comma. Tabs and spaces should be ignored.
dd is rarely used by z80 assemblers.
ds or defs is to fill an area with one byte (originally 00h). With recent assemblers, we can specify the data.
There is also dm or defm for character but, db can often do the same thing. Normally, a single character should be enclosed in apostrophes and a string enclosed in quotes. Currently, most assemblers do not distinguish between apostrophes and quotes.
Do they all support hexadecimal in the 0xFF format?
This format is specific to the C language.
Merci GDX for these detailed explanations.
I saw 0xFF format in some assembler code I converted to sdasz80 for MSXgl, but it is a very small minority.
Most of the time I found the forms 0FFh, and less often $FF and #FF.
Sometimes I even find several formats in the same file (I guess some assemblers support several formats).
Ideally, I should make a summary table of all the assemblers used by the MSX community and note each specificity in data storage format...
I wonder if santiontanon hasn't already done this for MDL.
Most of the time I found the forms 0FFh, and less often $FF and #FF.
At the time, several programmers use $xx or #xx instead of 0xxh because it's easier to manage and faster to assemble. After that it remains out of habit.
I wonder if santiontanon hasn't already done this for MDL.
I think he did it