Create DWORD tables in assembler

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
LuNo_297436
Level 3
Level 3
First solution authored 10 replies posted 10 questions asked

Hi every one!

   

Is there a way , in assembler, to define constant tables with DWORD (32 bits)values on it?

   

Or the only way is splitting in 16 bit values?

   

i.e.

   

High_Word_Tab:

   

dw 0x0000

   

​Low_Word_Tab:

   

dw  0xffff

   

Thanks

   

Luis

0 Likes
1 Solution
SampathS_11
Moderator
Moderator
Moderator
250 sign-ins 250 solutions authored 5 questions asked

There is no assembler directive to define a table in terms of 32 bit values. You can also define the 32-bit value table using the Define Byte directive also. When accessing this table, we must make sure we access on the correct 4-byte boundary.

View solution in original post

0 Likes
1 Reply
SampathS_11
Moderator
Moderator
Moderator
250 sign-ins 250 solutions authored 5 questions asked

There is no assembler directive to define a table in terms of 32 bit values. You can also define the 32-bit value table using the Define Byte directive also. When accessing this table, we must make sure we access on the correct 4-byte boundary.

0 Likes