Author Topic: GoAsm gives error  (Read 2864 times)

shankle

  • Member
  • ****
  • Posts: 868
GoAsm gives error
« 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????
   

qWord

  • Member
  • *****
  • Posts: 1476
  • The base type of a type is the type itself
    • SmplMath macros
Re: GoAsm gives error
« Reply #1 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.
MREAL macros - when you need floating point arithmetic while assembling!

shankle

  • Member
  • ****
  • Posts: 868
Re: GoAsm gives error
« Reply #2 on: September 10, 2014, 06:49:31 AM »
Thank you.
Problem solved....