Convert image to V9990 P1 mode

ページ 4/4
1 | 2 | 3 |

By gdx

Enlighted (6116)

gdx さんの画像

18-11-2022, 11:00

aoineko wrote:

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.

aoineko wrote:

Do they all support hexadecimal in the 0xFF format?

This format is specific to the C language.

By aoineko

Paladin (899)

aoineko さんの画像

18-11-2022, 13:14

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.

By gdx

Enlighted (6116)

gdx さんの画像

18-11-2022, 13:41

aoineko wrote:

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.

By thegeps

Paragon (1175)

thegeps さんの画像

19-11-2022, 19:30

aoineko wrote:

I wonder if santiontanon hasn't already done this for MDL.

I think he did it

ページ 4/4
1 | 2 | 3 |