News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

GoAsm Builder

Started by travism, May 14, 2009, 08:07:51 AM

Previous topic - Next topic

travism

So my first project for my switching over to GoAsm I made a build.bat maker, basically it makes a build.bat file based on the asm and rc files in the working directory of the program. It's still a bit buggy. Tell me what ya think. I know its not super useful, but I sure did learn alot from making this program.

Edit: Added the source. Go easy on me lol I know its messy and not to efficient.

[attachment deleted by admin]

UtillMasm

 :U
but, i cann't compile the codes.
attach your goasm (i cann't find 0.56.4e), include, head please.

PauloH

Hi Travism.

Nice idea, but why don't you use the new headers provide by Donkey at his website. It will make your projects a lot easier.
RadAsm + goasm are great and need little effort to work together.

By the way, the bat file has a bug to generate the .norc, look the build.bat I have created for test.exe. My goasm path is:
c:\programing\assemblers\compiladores\goasm\


@echo off

if not exist builder.rc goto norc

c:\programing\assemblers\compiladores\goasm\GoRc /r builder.rc
c:\programing\assemblers\compiladores\goasm\GoAsm /fo test.exe.obj builder.asm
c:\programing\assemblers\compiladores\goasm\GoLink kernel32.dll user32.dll test.exe.obj test.exe.RES

:norc
c:\programing\assemblers\compiladores\goasm\GoAsm /fo \assemblers\compiladores\goasm\GoAsm /fo \t.exe test.exe.obj test.exe.RES

:norc
c:\programing\assemblers\compiladores\goasm\GoAsm /fo \assemblers\compiladores\goasm\GoAsm /fo \t.exe
t.exe.RES

:norc
c:\programing\assemblers\compiladores\goasm\GoAsm /fo \assemblers\compiladores\goasm\GoAsm /fo \t.exe
tGoLink \GoAsm /fo \assemblers\compiladores\goasm\GoAsm /fo \t.exe test.exe.obj test.exe.RES

:norc
c:\programing\assemblers\compiladores\goasm\GoAsm /fo \assemblers\compiladores\goasm\GoAsm /fo \t.exe
t.exe.RES

:norc
c:\programing\assemblers\compiladores\goasm\GoAsm /fo \assemblers\compiladores\goasm\GoAsm /fo \t.exe
tGoLink \ \assemblers\compiladores\goasm\GoAsm /fo \assemblers\compiladores\goasm\GoAsm /fo \t.exe test.exe.obj test.exe.RES



Kind regards,

Paulo H.

Vortex

Hi travism,

Nice idea. If it detects multiple asm files, the tool is taking in account of all the source files to create the batch file.

travism

Yeah it detects all asm files, and I will look into that error thanks for posting it! :)

travism

Ah ok, I got the error fixed. And I just got the 2.0 headers also thanks for letting me know about that! :)

[attachment deleted by admin]

UtillMasm

 :toothy
c:\china>\goasm\bin\goasm.exe builder.asm

GoAsm.Exe Version 0.56.6a - Copyright Jeremy Gordon 2001/9 - JG@JGnet.co.uk

Warnings ......................
Line 6 of assembler source file (builder.asm):-
Could not open file:-
#include \goasm\IncludeX\Windows.inc
Line 23 of the include file \goasm\IncludeX\winbase.h:-
Could not evaluate expression in conditional directive (rest of file skipped):-
WINVER
Line 364 of the include file \goasm\IncludeX\winuser.h:-
Could not evaluate expression in conditional directive (rest of file skipped):-
WINVER
Line 331 of the include file \goasm\IncludeX\shellapi.h:-
Could not evaluate expression in conditional directive (rest of file skipped):-
WINVER

Error!
Line 33 of assembler source file (builder.asm):-
Unexpected material:-
<?>

OBJ file not made

c:\china>

:toothy

travism

I have the IncludeA files and in IncludeA is Windows.inc and then the older headers I used are int he headers directory... It assembles fine.

Directory structure is as follows:

IncludeA\Windows.inc
headers\winbase.h
headers\winuser.h
headers\shellapi.h

If its setup like that with the old headers then it will assemble..

UtillMasm

c:\china>\goasm\bin\gorc.exe builder.rc

GoRC.Exe Version 0.90.4 - Copyright Jeremy Gordon 1998/2009 - JG@JGnet.co.uk
Output file: builder.res
Output file: builder.obj format: win32

c:\china>\goasm\bin\goasm.exe builder.asm

GoAsm.Exe Version 0.56.6a - Copyright Jeremy Gordon 2001/9 - JG@JGnet.co.uk

Warnings ......................
Line 6 of assembler source file (builder.asm):-
Could not open file:-
#include IncludeA\Windows.inc
Line 7 of assembler source file (builder.asm):-
Could not open file:-
#include Include\winbase.h
Line 8 of assembler source file (builder.asm):-
Could not open file:-
#include Include\winuser.h
Line 9 of assembler source file (builder.asm):-
Could not open file:-
#include Include\shellapi.h

Error!
Line 33 of assembler source file (builder.asm):-
Unexpected material:-
<?>

OBJ file not made

c:\china>\goasm\bin\golink.exe builder.obj builder.res

GoLink.Exe Version 0.26.10 - Copyright Jeremy Gordon 2002/9 - JG@JGnet.co.uk

Warning!
Assumed entry point (Start) was not found.
Output file: builder.exe
Format: win32 size: 4,608 bytes

c:\china>

headers.zip
  SHA1: 2DEBADFE621244D83604EA6D6445378AC1AF3B4B
IncludeA.zip
  SHA1: 57694C3961F6A24558B6997DCA802E6CE4517578