Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Assembler question

Author: Dezhi Zhao

Date: 18:17:28 01/23/99

Go up one level in this thread


On January 23, 1999 at 16:30:24, James Robertson wrote:

>In my prog I have written:
>
>void Func(int **i) {
>  __asm {
>    mov        eax,i
>    mov        ebx,[eax]
>  }
>}
>
>I am hoping there is some assembler instruction that combines both operations
>into one.
>

I assume you are using VC. Try this:

void __fastcall Func(int **i) {
  __asm {
    mov        eax,[ecx]
  }
}


>Later on in the function I have:
>
>void Func(int **i){
>  __asm {
>    mov        eax,i
>    mov        ebx,something_useful
>    mov        [eax],ebx
>  }
>}
>
>Is there any way to shorten this? Mr. Nalimov mentioned that Intel has a file
>somewhere with all the assembler instuctions explianed, but I downloaded it in
>Acrobat format, and I am too lazy to download Acrobat. Figured it would probably
>be a little easier to post here. :)
>
>James

pls visit
http://announce.com/agner/assem/
there is a book called
"how to optimize the pentium family of microprocessors".
It's the best asm stuff I found in the web.

Rregards

Dezhi Zhao



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.