News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Buffers/concurrent processing

Started by Astro, March 29, 2010, 11:55:21 AM

Previous topic - Next topic

redskull

Your DCB structure is incorrect; members 3-16 are not DWORDS, but a single DWORD split into a RECORD structure

-r
Strange women, lying in ponds, distributing swords, is no basis for a system of government

Astro

I know. :(

How do you create those???

Best regards,
Robin.

redskull

Do it in two steps; declare the RECORD just for the bits, and then nest a structure of that type inside the DCB declaration.  Records are featured at the end of the 'complex data types' chapter of the MASM manual, and are usually altered using the MASK and WIDTH keywords.  It's should already be done in Windows.inc, though...

-r
Strange women, lying in ponds, distributing swords, is no basis for a system of government

Astro

Hi,

Umm...... this is unclear...

I write:

MyRecord RECORDNAME Field1:3,Field2:4

Is Field1 the bits 0-2, and Field2 bits 3-7?

To access part of MyRecord, how do I do it? Treat it like a structure?

Also, there is this thing with { } and < > . Where do you use these, and why? Seems this is a bit of a black art.

Is there a way to do this with straight-forward BYTE/WORD/DWORD?

Best regards,
Robin.


Astro

 :bg :bg :bg :bg

Yes, yes...  :boohoo:

EDIT: EXCELLENT! Thanks!!!!!!!!!!!!!!!!!!  :thumbu

Best regards,
Robin.