The MASM Forum

Projects => Rarely Used Projects => GoAsm => Topic started by: shankle on September 10, 2014, 06:08:30 AM

Title: GoAsm gives error
Post by: shankle on September 10, 2014, 06:08:30 AM
                             9-9-2014
                     
This is a 64-bit program
Running Windows 7 pro 64-bit and GoAsm
Working program in MASM32
                     
GoAsm.Exe Version 0.58.0.6 - Copyright Jeremy Gordon 2001-2014 - JG@JGnet.co.uk
Error!
Line 288 of assembler source file (wordconv64.asm):-
RDX overwritten by 2nd parameter material: use a register other than RDX
OBJ file not made
J:\codejps>GoLink /unused wordconv64.obj
GoLink.Exe Version 1.0.0.0 - Copyright Jeremy Gordon 2002-2014 - JG@JGnet.co.uk

Saveedx     dd   0                   ; save position in OutFileDat
buf3          db   100 dup (0)     ; used in relative paths
buf4          db   15 dup (0)
OutFileDat  db   'm460.dat',0  ; this is a table         
                db   'm120.dat',0   ; etc 

   lea  edx,offset OutFileDat
   mov [Saveedx],edx

   mov edx,[Saveedx]          ; OutOut File
   invoke GetFullPathName, [Saveedx],100,addr buf3,addr buf4 ; output file
   invoke GetFullPathName, edx,100,addr buf3,addr buf4
   
   Neither one of the GetFullPathName works????
   
Title: Re: GoAsm gives error
Post by: qWord on September 10, 2014, 06:20:22 AM
Working program in MASM32
that's nice, but you are trying to write a x64 program! Think about the pointer size, the calling convention and its register usage.
Title: Re: GoAsm gives error
Post by: shankle on September 10, 2014, 06:49:31 AM
Thank you.
Problem solved....