Article View: borland.public.cppbuilder.language.basm
Article #26Re: ASM conversion from Delphi to C++Builder
From: Bob Gonder
Date: Mon, 23 Jul 2007 16:41
Date: Mon, 23 Jul 2007 16:41
20 lines
1718 bytes
1718 bytes
Ed Mulroy [TeamB] wrote: >> I would also be tempted to turn off stack frames for this function. > >In that case you would be jumping out of a plane without your parachute. It's small enough, and no local variables, so no problems. Feathers don't need parachutes. >Better to use >__declspec(naked) >and write every byte of the assembly code yourself. Oooh, sexy...I like it. That's what I intended to mean. I was thinking a local pragma, but this does the job. __declspec(naked) void __fastcall GetCPUID(unsigned int cmd, TRegisters & regs)
Technical Details
Message-ID:
<rkl9a39ctqn0ims2tejfb8scko90vemda0@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.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-mailReferences:
<46a047d3$1@newsgroups.borland.com> <46a3542c$1@newsgroups.borland.com> <37l6a3dnmrn3m9blstu4dqvmmjah97nbif@4ax.com> <46a4ab6c$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 107b11,b95ef5f9173e844a X-Google-Attributes: gid107b11,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Bob Gonder <notbg@notmindspring.invalid> Newsgroups: borland.public.cppbuilder.language.basm Subject: Re: ASM conversion from Delphi to C++Builder Date: Mon, 23 Jul 2007 09:41:53 -0700 Organization: MindSpring Enterprises, Inc. Reply-To: notbg@notmindspring.invalid Message-ID: <rkl9a39ctqn0ims2tejfb8scko90vemda0@4ax.com> References: <46a047d3$1@newsgroups.borland.com> <46a3542c$1@newsgroups.borland.com> <37l6a3dnmrn3m9blstu4dqvmmjah97nbif@4ax.com> <46a4ab6c$1@newsgroups.borland.com> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 69.69.88.190 X-Trace: newsgroups.borland.com 1185208910 69.69.88.190 (23 Jul 2007 09:41:50 -0700) Lines: 22 Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.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: 1574