The MASM Forum

64 bit assembler => UASM Assembler Development => Topic started by: TouEnMasm on February 24, 2016, 07:01:49 PM

Title: RECORD
Post by: TouEnMasm on February 24, 2016, 07:01:49 PM

There is no version of jwasm or Hjwasm who accept 64 bits record ?.
Is it possible to have just that on a stable version ?.
Title: Re: RECORD
Post by: TouEnMasm on February 25, 2016, 04:55:33 AM

Line too long

RECAD3DDDI_RESOURCEFLAGS      RECORD     DGRestrictSharedAccess    : 1,
            DGRestrictedContent       : 1,
            DGTextApi                 : 1,
            DGInterlacedRefresh       : 1,
            DGMatchGdiPrimary         : 1,
            DGOverlay                 : 1,
            DGMightDrawFromLocked     : 1,
            DGCpuOptimized            : 1,
            DGVideoProcessRenderTarget: 1,
            DGDecodeCompressedBuffer  : 1,
            DGDecodeRenderTarget      : 1,
            DGIndexBuffer             : 1,
            DGVertexBuffer            : 1,
            DGVolume                  : 1,
            DGCubeMap                 : 1,
            DGTexture                 : 1,
            DGPrimary                 : 1,
            DGCaptureBuffer           : 1,
            DGVideo                   : 1,
            DGDiscardRenderTarget     : 1,
            DGSharedResource          : 1,
            DGNPatches                : 1,
            DGRtPatches               : 1,
            DGPoints                  : 1,
            DGNotLockable             : 1,
            DGWriteOnly               : 1,
            DGDMap                    : 1,
            DGAutogenMipmap           : 1,
            DGHintStatic              : 1,
            DGDynamic                 : 1,
            DGZBuffer                 : 1,
            DGRenderTarget            : 1
Title: Re: RECORD
Post by: fearless on February 25, 2016, 06:53:36 AM
Seems to be if the text is > 512 it will complain about line too long. Also didnt seem to like spacing between the field name, the : seperator and the width part. Splitting it up works, but thats probably not going to be useful for you (as long as each part is < 512 it seems to compile ok)

RECAD3DDDI_RESOURCEFLAGS1 RECORD DGRestrictSharedAccess:1,
DGRestrictedContent:1,
DGTextApi:1,
DGInterlacedRefresh:1,
DGMatchGdiPrimary:1,
DGOverlay:1,
DGMightDrawFromLocked:1,
DGCpuOptimized:1,
DGVideoProcessRenderTarget:1,
DGDecodeCompressedBuffer:1,
DGDecodeRenderTarget:1,
DGIndexBuffer:1,
DGVertexBuffer:1,
DGVolume:1,
DGCubeMap:1,
DGTexture:1

RECAD3DDDI_RESOURCEFLAGS2 RECORD DGPrimary:1,
DGCaptureBuffer:1,
DGVideo:1,
DGDiscardRenderTarget:1,
DGSharedResource:1,
DGNPatches:1,
DGRtPatches:1,
DGPoints:1,
DGNotLockable:1,
DGWriteOnly:1,
DGDMap:1,
DGAutogenMipmap:1,
DGHintStatic:1,
DGDynamic:1,
DGZBuffer:1,
DGRenderTarget:1
Title: Re: RECORD
Post by: habran on February 25, 2016, 08:57:32 AM
fearless> The newest version of HJWasm will accept 1024 characters and 128 levels of macros
ToutEnMasm> It looks like you are using a wrong structure for your records, because they can not feet in one line
HJWasm is doing a proper job, by letting you know what are you doing wrong 8)

Title: Re: RECORD
Post by: TouEnMasm on February 25, 2016, 06:59:49 PM
Quote
It looks like you are using a wrong structure for your records
wrong in what ?,could you be more clear.
The newest version of HJWasm made only bad object with Windows 10
The 64 bits records are not solved

Title: Re: RECORD
Post by: habran on February 25, 2016, 07:44:11 PM
AFAIK, RECORDs can be created only as many as they feet in one line, if someone knows better please enlighten me
Title: Re: RECORD
Post by: TouEnMasm on February 26, 2016, 01:20:29 AM
End of record is a line without ","
All other's record  perfectly accepted by jwasm are write like that in further lines.
Ml (all version) accept also this form.
You are enlighten.
Title: Re: RECORD
Post by: johnsa on April 11, 2016, 07:18:37 PM
I've fixed this by increasing the line length limit in tokenisation and every combination of the above RECORD appears to be working for me now.

Binary packages updated on the site and source on github.
Title: Re: RECORD
Post by: habran on April 11, 2016, 09:50:39 PM
Good job Johnsa :t
Title: Re: RECORD
Post by: TouEnMasm on April 13, 2016, 01:10:00 AM
Thanks