Author Topic: noob questions about uasm64 usage  (Read 468 times)

jimg

  • Member
  • ***
  • Posts: 281
noob questions about uasm64 usage
« on: August 03, 2018, 01:02:06 AM »
After screwing around for several days trying to figure out how to set up my system to produce 64-bit programs using uasm and wininc, it occurred to me that maybe I didn't have to keep both 32 and 64 bit working.  Before jumping to conclusions based upon nebulous trial and error I thought I'd just ask.

(Assuming I'm working on a computer with 64-bit windows running,) If one uses uasm64, can it also produce 32bit programs, or do I also need to keep uasm32 for 32-bit only programs?  If 64 will produce 32bit programs, are there any special s-field options that need to be different?  (Currently I normally use  /nologo /c /coff /Cp /Fl /Sn /Sg)

Also, it this the place to ask such questions, or would the uasm people prefer it be in the generic "64 bit assembler" subforum?

jj2007

  • Member
  • *****
  • Posts: 8823
  • Assembler is fun ;-)
    • MasmBasic
Re: noob questions about uasm64 usage
« Reply #1 on: August 03, 2018, 02:22:40 AM »
\masm32\bin\UAsm64 -Zp8 -win64 somesource.asm should do the job. Probably the -Zp8 is no longer needed, but let's hear the experts on that ;)

And yes, on a 64-bit machine you need only UAsm64. It can generate 32-bit code.

johnsa

  • Member
  • ****
  • Posts: 708
    • Uasm
Re: noob questions about uasm64 usage
« Reply #2 on: August 03, 2018, 03:03:14 AM »
uasm32 and uasm64 can both produce 32bit or 64bit output formats. The only reason both exist is so that you can run it at all on a 32bit system. Additionally uasm32 is built with XP compatibility toolset. :)


LiaoMi

  • Member
  • ***
  • Posts: 324
Re: noob questions about uasm64 usage
« Reply #3 on: August 31, 2018, 02:03:17 AM »
What does this flag mean in uasm -Fs[=<file_name>] - Write symbolic debug info? How can it be used?

johnsa

  • Member
  • ****
  • Posts: 708
    • Uasm
Re: noob questions about uasm64 usage
« Reply #4 on: September 06, 2018, 02:28:47 AM »
It writes out the debugging symbols into a simple format that easy for you to view or use in other debugging applications. It was added mainly as a way to provide symbolic debugging when generating flat binary files. IE: for OS development etc. It's documented in the user guide.