Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,490,241
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-26-24 11:54 PM
Guest: Register | Login

0 users currently in ROM Hacking | 3 guests | 1 bot

Main - ROM Hacking - .DB means Dummy Byte, But What Does .DW mean? New thread | New reply


GameGenie81
Posted on 07-05-08 12:58 AM Link | Quote | ID: 86836


Koopa
Level: 24

Posts: 63/100
EXP: 78099
Next: 26

Since: 08-15-07
From: Milwaukie, OR

Last post: 5434 days
Last view: 5387 days
I know .DB means a dummy byte, but what does .DW mean?

Thank you,



Ben Edge

____________________
We are a nation with no geographic boundaries, bound together through our beliefs. We are like-minded individuals, sharing a common vision, pushing toward a world rid of color lines.

Omega45889
Posted on 07-05-08 01:06 AM (rev. 2 of 07-05-08 01:08 AM) Link | Quote | ID: 86837


Red Paratroopa
Level: 31

Posts: 93/178
EXP: 183089
Next: 2274

Since: 01-18-08

Last post: 5483 days
Last view: 4790 days
I have no idea of the context, but it probably means Dummy Word.

Dummy Word, as in a 16 bit variable as opposed to an 8 bit variable which the Dummy Byte would be. Itll range from 0 - 65535.

It could also mean dword, which is just a 32 bit variable.

What is the context?

smkdan
Posted on 07-05-08 03:18 AM Link | Quote | ID: 86849


Ninji
Level: 36

Posts: 149/238
EXP: 288661
Next: 19449

Since: 05-26-07

Last post: 4063 days
Last view: 4012 days
I'm guessing he means the assembler directives.

.DB = define / declare byte.

.DW = define / declare word

Some will have define long for 32 bits (I think xkas uses 24bits there).

GameGenie81
Posted on 07-05-08 10:59 PM Link | Quote | ID: 86887


Koopa
Level: 24

Posts: 64/100
EXP: 78099
Next: 26

Since: 08-15-07
From: Milwaukie, OR

Last post: 5434 days
Last view: 5387 days
Posted by smkdan
I'm guessing he means the assembler directives.

.DB = define / declare byte.

.DW = define / declare word

Some will have define long for 32 bits (I think xkas uses 24bits there).


Thank you, a .DB would be an 8-bit address (cf. $2F or 00101111) while a .DW would be a 16-bit address (cf. $1A3E or 0001101000111110).

~Ben

____________________
We are a nation with no geographic boundaries, bound together through our beliefs. We are like-minded individuals, sharing a common vision, pushing toward a world rid of color lines.

Main - ROM Hacking - .DB means Dummy Byte, But What Does .DW mean? New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.019 seconds. (339KB of memory used)
MySQL - queries: 52, rows: 76/76, time: 0.016 seconds.