The MASM Forum Archive 2004 to 2012

Project Support Forums => GoAsm Assembler and Tools => Topic started by: alanabbott on July 21, 2008, 03:47:46 PM

Title: Does GoAsm have a ASSUME statement?
Post by: alanabbott on July 21, 2008, 03:47:46 PM
I'm looking for the equivalent to USING in /370 Assembler.
I want to make the fields of external structures symbolically addressable in the code of DLLs that will be dynamically loaded. The actual structures will be in the calling binaries that will be independently linked.

Alan
Title: Re: Does GoAsm have a ASSUME statement?
Post by: Vortex on July 21, 2008, 05:12:03 PM
Hi alanabbott,

GoAsm doesn not support the ASSUME statement. Reading values from structures is similar to MASM.

From GoAsm Manual :

MOV ESI,[EBP+14h]                 ;get the pointer to the OFNOTIFY structure
MOV EAX,[ESI+OFNOTIFY.hdr.idFrom]
MOV EDX,[ESI+OFNOTIFY.pszFile]