🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.language.basm
Article #34

Re: integrating assembly and C++ Builder 6

#34
From: Daniel
Date: Thu, 13 Sep 2007 15:51
40 lines
2342 bytes
No, I don't use that in the assembly module. The assembly module is extremly
simple:
.386
.model flat
PUBLIC _externproc
DATASEG
;one or two things here just to define something.
ENDS DATA
CODE
mov eax, 05Ah; just to have something happen
ENDS CODE
END

patterned after a previous post on this group. I created this file by
choosing File->New->Assembly then adding it to the project. Although I can
assemble it with the command-line assembler and add the object file to the
Builder project, it doesn't make any difference whether the asm file or obj
file is part of the project.

Borland's documentation advises to use the same .model in the assembly
module as the C++ program, but nowhere in Builder does it give any
indication of what the model is. Nor can I find anything that says anything
about what the COW32.obj file might be or do.

Any help is much appreciated since I'm going nuts.

D

"Bob Gonder" <notbg@notmindspring.invalid> wrote in message
news:ahiie31op322c33qt9t70a4jfu67mto5ih@4ax.com...
> Daniel wrote:
>
> >But I get an error about "symbol __PublicInfoTable defined in both
> >filename.obj and ...Borland\Lib\COW32.obj"
>
> Does your Asm module contain or use that name?
> define it external in your asm.
> extrn __PublicInfoTable:dword ;or whatever
>
>
Technical Details
Message-ID: <46e95c9e@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <46e947b4$1@newsgroups.borland.com> <ahiie31op322c33qt9t70a4jfu67mto5ih@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 107b11,2b231382bcbeb5c2
X-Google-Attributes: gid107b11,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Daniel" <ddel@bete.com>
From: "Daniel" <ddel@bete.com>
Newsgroups: borland.public.cppbuilder.language.basm
References: <46e947b4$1@newsgroups.borland.com> <ahiie31op322c33qt9t70a4jfu67mto5ih@4ax.com>
Subject: Re: integrating assembly and C++ Builder 6
Date: Thu, 13 Sep 2007 11:51:59 -0400
Lines: 42
Organization: Bete
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
NNTP-Posting-Host: 64.179.88.204
Message-ID: <46e95c9e@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1189698718 64.179.88.204 (13 Sep 2007 08:51:58 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
X-Original-Bytes: 2200